Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. config BCM2835
  2. bool "Broadcom BCM2835 SoC support"
  3. depends on ARCH_BCM283X
  4. select CPU_ARM1176
  5. config BCM2836
  6. bool "Broadcom BCM2836 SoC support"
  7. depends on ARCH_BCM283X
  8. select ARMV7_LPAE
  9. select CPU_V7A
  10. config BCM2837
  11. bool "Broadcom BCM2837 SoC support"
  12. depends on ARCH_BCM283X
  13. config BCM2837_32B
  14. bool "Broadcom BCM2837 SoC 32-bit support"
  15. depends on ARCH_BCM283X
  16. select BCM2837
  17. select ARMV7_LPAE
  18. select CPU_V7A
  19. config BCM2837_64B
  20. bool "Broadcom BCM2837 SoC 64-bit support"
  21. depends on ARCH_BCM283X
  22. select BCM2837
  23. select ARM64
  24. config BCM2711
  25. bool "Broadcom BCM2711 SoC support"
  26. depends on ARCH_BCM283X
  27. config BCM2711_32B
  28. bool "Broadcom BCM2711 SoC 32-bit support"
  29. depends on ARCH_BCM283X
  30. select BCM2711
  31. select ARMV7_LPAE
  32. select CPU_V7A
  33. config BCM2711_64B
  34. bool "Broadcom BCM2711 SoC 64-bit support"
  35. depends on ARCH_BCM283X
  36. select BCM2711
  37. select ARM64
  38. menu "Broadcom BCM283X family"
  39. depends on ARCH_BCM283X
  40. choice
  41. prompt "Broadcom BCM283X board select"
  42. optional
  43. config TARGET_RPI
  44. bool "Raspberry Pi (all BCM2835 variants)"
  45. help
  46. Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
  47. the A, A+, B, B+, Compute Module, and Zero. This option cannot
  48. support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and
  49. RPi 3 due to different peripheral address maps.
  50. This option creates a build targeting the ARM1176 ISA.
  51. select BCM2835
  52. config TARGET_RPI_0_W
  53. bool "Raspberry Pi Zero W"
  54. help
  55. Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
  56. the RPi Zero model W.
  57. This option assumes the VideoCore firmware is configured to use the
  58. mini UART (rather than PL011) for the serial console. This is the
  59. default on the RPi Zero W. To enable the UART console, the following
  60. non-default option must be present in config.txt: enable_uart=1.
  61. This is required for U-Boot to operate correctly, even if you only
  62. care about the HDMI/usbkbd console.
  63. This option creates a build targeting the ARMv7/AArch32 ISA.
  64. select BCM2835
  65. config TARGET_RPI_2
  66. bool "Raspberry Pi 2"
  67. help
  68. Support for all BCM2836-based Raspberry Pi variants, such as
  69. the RPi 2 model B.
  70. This option also supports BCM2837-based variants such as the RPi 3
  71. Model B, when run in 32-bit mode, provided you have configured the
  72. VideoCore firmware to select the PL011 UART for the console by:
  73. a) config.txt should contain dtoverlay=pi3-miniuart-bt.
  74. b) You should run the following to tell the VC FW to process DT when
  75. booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
  76. card as the kernel image:
  77. path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
  78. This works as of firmware.git commit 046effa13ebc "firmware:
  79. arm_loader: emmc clock depends on core clock See:
  80. https://github.com/raspberrypi/firmware/issues/572".
  81. This option creates a build targeting the ARMv7/AArch32 ISA.
  82. select BCM2836
  83. config TARGET_RPI_3_32B
  84. bool "Raspberry Pi 3 32-bit build"
  85. help
  86. Support for all BCM2837-based Raspberry Pi variants, such as
  87. the RPi 3 model B, in AArch32 (32-bit) mode.
  88. This option assumes the VideoCore firmware is configured to use the
  89. mini UART (rather than PL011) for the serial console. This is the
  90. default on the RPi 3. To enable the UART console, the following non-
  91. default option must be present in config.txt: enable_uart=1. This is
  92. required for U-Boot to operate correctly, even if you only care
  93. about the HDMI/usbkbd console.
  94. This option creates a build targeting the ARMv7/AArch32 ISA.
  95. select BCM2837_32B
  96. config TARGET_RPI_3
  97. bool "Raspberry Pi 3 64-bit build"
  98. help
  99. Support for all BCM2837-based Raspberry Pi variants, such as
  100. the RPi 3 model B, in AArch64 (64-bit) mode.
  101. This option assumes the VideoCore firmware is configured to use the
  102. mini UART (rather than PL011) for the serial console. This is the
  103. default on the RPi 3. To enable the UART console, the following non-
  104. default option must be present in config.txt: enable_uart=1. This is
  105. required for U-Boot to operate correctly, even if you only care
  106. about the HDMI/usbkbd console.
  107. At the time of writing, the VC FW requires a non-default option in
  108. config.txt to request the ARM CPU boot in 64-bit mode:
  109. arm_control=0x200
  110. The VC FW typically provides ARM "stub" code to set up the CPU and
  111. quiesce secondary SMP CPUs. This is not currently true in 64-bit
  112. mode. In order to boot U-Boot before the VC FW is enhanced, please
  113. see the commit description for the commit which added RPi3 support
  114. for a workaround. Since the instructions are temporary, they are not
  115. duplicated here. The VC FW enhancement is tracked in
  116. https://github.com/raspberrypi/firmware/issues/579.
  117. This option creates a build targeting the ARMv8/AArch64 ISA.
  118. select BCM2837_64B
  119. config TARGET_RPI_4_32B
  120. bool "Raspberry Pi 4 32-bit build"
  121. help
  122. Support for all BCM2711-based Raspberry Pi variants, such as
  123. the RPi 4 model B, in AArch32 (32-bit) mode.
  124. This option assumes the VideoCore firmware is configured to use the
  125. mini UART (rather than PL011) for the serial console. This is the
  126. default on the RPi 4. To enable the UART console, the following non-
  127. default option must be present in config.txt: enable_uart=1. This is
  128. required for U-Boot to operate correctly, even if you only care
  129. about the HDMI/usbkbd console.
  130. Due to hardware incompatibilities, this can't be used with
  131. BCM283/5/6/7.
  132. This option creates a build targeting the ARMv7/AArch32 ISA.
  133. select BCM2711_32B
  134. config TARGET_RPI_4
  135. bool "Raspberry Pi 4 64-bit build"
  136. help
  137. Support for all BCM2711-based Raspberry Pi variants, such as
  138. the RPi 4 model B, in AArch64 (64-bit) mode.
  139. This option assumes the VideoCore firmware is configured to use the
  140. mini UART (rather than PL011) for the serial console. This is the
  141. default on the RPi 4. To enable the UART console, the following non-
  142. default option must be present in config.txt: enable_uart=1. This is
  143. required for U-Boot to operate correctly, even if you only care
  144. about the HDMI/usbkbd console.
  145. Due to hardware incompatibilities, this can't be used with
  146. BCM283/5/6/7.
  147. Also, due to a bug in firmware, switching to 64bit mode doesn't
  148. happen automatically based on the kernel's image filename. See
  149. https://github.com/raspberrypi/firmware/issues/1193 for more details.
  150. Until that is resolved, the configuration (config.txt) needs to
  151. explicitly set: arm_64bit=1.
  152. This option creates a build targeting the ARMv8/AArch64 ISA.
  153. select BCM2711_64B
  154. config TARGET_RPI_ARM64
  155. bool "Raspberry Pi one binary 64-bit build"
  156. help
  157. Support for all armv8 based Raspberry Pi variants, such as
  158. the RPi 4 model B, in AArch64 (64-bit) mode.
  159. select ARM64
  160. endchoice
  161. config SYS_BOARD
  162. default "rpi"
  163. config SYS_VENDOR
  164. default "raspberrypi"
  165. config SYS_SOC
  166. default "bcm283x"
  167. config SYS_CONFIG_NAME
  168. default "rpi"
  169. endmenu