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