Kconfig 4.0 KB

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