Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. menu "Broadcom BCM283X family"
  25. depends on ARCH_BCM283X
  26. choice
  27. prompt "Broadcom BCM283X board select"
  28. optional
  29. config TARGET_RPI
  30. bool "Raspberry Pi (all BCM2835 variants)"
  31. help
  32. Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
  33. the A, A+, B, B+, Compute Module, and Zero. This option cannot
  34. support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and
  35. RPi 3 due to different peripheral address maps.
  36. This option creates a build targetting the ARM1176 ISA.
  37. select BCM2835
  38. config TARGET_RPI_0_W
  39. bool "Raspberry Pi Zero W"
  40. help
  41. Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
  42. the RPi Zero model W.
  43. This option assumes the VideoCore firmware is configured to use the
  44. mini UART (rather than PL011) for the serial console. This is the
  45. default on the RPi Zero W. To enable the UART console, the following
  46. non-default option must be present in config.txt: enable_uart=1.
  47. This is required for U-Boot to operate correctly, even if you only
  48. care about the HDMI/usbkbd console.
  49. This option creates a build targetting the ARMv7/AArch32 ISA.
  50. select BCM2835
  51. config TARGET_RPI_2
  52. bool "Raspberry Pi 2"
  53. help
  54. Support for all BCM2836-based Raspberry Pi variants, such as
  55. the RPi 2 model B.
  56. This option also supports BCM2837-based variants such as the RPi 3
  57. Model B, when run in 32-bit mode, provided you have configured the
  58. VideoCore firmware to select the PL011 UART for the console by:
  59. a) config.txt should contain dtoverlay=pi3-miniuart-bt.
  60. b) You should run the following to tell the VC FW to process DT when
  61. booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
  62. card as the kernel image:
  63. path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
  64. This works as of firmware.git commit 046effa13ebc "firmware:
  65. arm_loader: emmc clock depends on core clock See:
  66. https://github.com/raspberrypi/firmware/issues/572".
  67. This option creates a build targetting the ARMv7/AArch32 ISA.
  68. select BCM2836
  69. config TARGET_RPI_3_32B
  70. bool "Raspberry Pi 3 32-bit build"
  71. help
  72. Support for all BCM2837-based Raspberry Pi variants, such as
  73. the RPi 3 model B, in AArch32 (32-bit) mode.
  74. This option assumes the VideoCore firmware is configured to use the
  75. mini UART (rather than PL011) for the serial console. This is the
  76. default on the RPi 3. To enable the UART console, the following non-
  77. default option must be present in config.txt: enable_uart=1. This is
  78. required for U-Boot to operate correctly, even if you only care
  79. about the HDMI/usbkbd console.
  80. This option creates a build targetting the ARMv7/AArch32 ISA.
  81. select BCM2837_32B
  82. config TARGET_RPI_3
  83. bool "Raspberry Pi 3 64-bit build"
  84. help
  85. Support for all BCM2837-based Raspberry Pi variants, such as
  86. the RPi 3 model B, in AArch64 (64-bit) mode.
  87. This option assumes the VideoCore firmware is configured to use the
  88. mini UART (rather than PL011) for the serial console. This is the
  89. default on the RPi 3. To enable the UART console, the following non-
  90. default option must be present in config.txt: enable_uart=1. This is
  91. required for U-Boot to operate correctly, even if you only care
  92. about the HDMI/usbkbd console.
  93. At the time of writing, the VC FW requires a non-default option in
  94. config.txt to request the ARM CPU boot in 64-bit mode:
  95. arm_control=0x200
  96. The VC FW typically provides ARM "stub" code to set up the CPU and
  97. quiesce secondary SMP CPUs. This is not currently true in 64-bit
  98. mode. In order to boot U-Boot before the VC FW is enhanced, please
  99. see the commit description for the commit which added RPi3 support
  100. for a workaround. Since the instructions are temporary, they are not
  101. duplicated here. The VC FW enhancement is tracked in
  102. https://github.com/raspberrypi/firmware/issues/579.
  103. This option creates a build targetting the ARMv8/AArch64 ISA.
  104. select BCM2837_64B
  105. endchoice
  106. config SYS_BOARD
  107. default "rpi"
  108. config SYS_VENDOR
  109. default "raspberrypi"
  110. config SYS_SOC
  111. default "bcm283x"
  112. config SYS_CONFIG_NAME
  113. default "rpi"
  114. endmenu