1adb91ec7SStephen Warrenconfig BCM2835 2adb91ec7SStephen Warren bool "Broadcom BCM2835 SoC support" 3adb91ec7SStephen Warren depends on ARCH_BCM283X 4fe84ebf0SStephen Warren select CPU_ARM1176 5adb91ec7SStephen Warren 6adb91ec7SStephen Warrenconfig BCM2836 7adb91ec7SStephen Warren bool "Broadcom BCM2836 SoC support" 8adb91ec7SStephen Warren depends on ARCH_BCM283X 9fe84ebf0SStephen Warren select ARMV7_LPAE 10acf15001SLokesh Vutla select CPU_V7A 11adb91ec7SStephen Warren 12f031f501SStephen Warrenconfig BCM2837 13f031f501SStephen Warren bool "Broadcom BCM2837 SoC support" 14f031f501SStephen Warren depends on ARCH_BCM283X 15f031f501SStephen Warren 16fe84ebf0SStephen Warrenconfig BCM2837_32B 17fe84ebf0SStephen Warren bool "Broadcom BCM2837 SoC 32-bit support" 18fe84ebf0SStephen Warren depends on ARCH_BCM283X 19fe84ebf0SStephen Warren select BCM2837 20fe84ebf0SStephen Warren select ARMV7_LPAE 21acf15001SLokesh Vutla select CPU_V7A 22fe84ebf0SStephen Warren 23fe84ebf0SStephen Warrenconfig BCM2837_64B 24fe84ebf0SStephen Warren bool "Broadcom BCM2837 SoC 64-bit support" 25fe84ebf0SStephen Warren depends on ARCH_BCM283X 26fe84ebf0SStephen Warren select BCM2837 27fe84ebf0SStephen Warren select ARM64 28fe84ebf0SStephen Warren 29ddf6bd48SMasahiro Yamadamenu "Broadcom BCM283X family" 30ddf6bd48SMasahiro Yamada depends on ARCH_BCM283X 31ddf6bd48SMasahiro Yamada 32ddf6bd48SMasahiro Yamadachoice 33ddf6bd48SMasahiro Yamada prompt "Broadcom BCM283X board select" 34a26cd049SJoe Hershberger optional 35ddf6bd48SMasahiro Yamada 36ddf6bd48SMasahiro Yamadaconfig TARGET_RPI 3795a2ddaeSStephen Warren bool "Raspberry Pi (all BCM2835 variants)" 3895a2ddaeSStephen Warren help 3995a2ddaeSStephen Warren Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as 4095a2ddaeSStephen Warren the A, A+, B, B+, Compute Module, and Zero. This option cannot 4195a2ddaeSStephen Warren support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and 4295a2ddaeSStephen Warren RPi 3 due to different peripheral address maps. 4395a2ddaeSStephen Warren 44*d7cf868fSChris Packham This option creates a build targeting the ARM1176 ISA. 45adb91ec7SStephen Warren select BCM2835 46ddf6bd48SMasahiro Yamada 478993056fSDmitry Korunovconfig TARGET_RPI_0_W 488993056fSDmitry Korunov bool "Raspberry Pi Zero W" 498993056fSDmitry Korunov help 508993056fSDmitry Korunov Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as 518993056fSDmitry Korunov the RPi Zero model W. 528993056fSDmitry Korunov 538993056fSDmitry Korunov This option assumes the VideoCore firmware is configured to use the 548993056fSDmitry Korunov mini UART (rather than PL011) for the serial console. This is the 558993056fSDmitry Korunov default on the RPi Zero W. To enable the UART console, the following 568993056fSDmitry Korunov non-default option must be present in config.txt: enable_uart=1. 578993056fSDmitry Korunov This is required for U-Boot to operate correctly, even if you only 588993056fSDmitry Korunov care about the HDMI/usbkbd console. 598993056fSDmitry Korunov 60*d7cf868fSChris Packham This option creates a build targeting the ARMv7/AArch32 ISA. 618993056fSDmitry Korunov select BCM2835 628993056fSDmitry Korunov 63ddf6bd48SMasahiro Yamadaconfig TARGET_RPI_2 64ddf6bd48SMasahiro Yamada bool "Raspberry Pi 2" 6595a2ddaeSStephen Warren help 6695a2ddaeSStephen Warren Support for all BCM2836-based Raspberry Pi variants, such as 6795a2ddaeSStephen Warren the RPi 2 model B. 6895a2ddaeSStephen Warren 6995a2ddaeSStephen Warren This option also supports BCM2837-based variants such as the RPi 3 7095a2ddaeSStephen Warren Model B, when run in 32-bit mode, provided you have configured the 7195a2ddaeSStephen Warren VideoCore firmware to select the PL011 UART for the console by: 7295a2ddaeSStephen Warren a) config.txt should contain dtoverlay=pi3-miniuart-bt. 7395a2ddaeSStephen Warren b) You should run the following to tell the VC FW to process DT when 7495a2ddaeSStephen Warren booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD 7595a2ddaeSStephen Warren card as the kernel image: 7695a2ddaeSStephen Warren 7795a2ddaeSStephen Warren path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img 7895a2ddaeSStephen Warren 7995a2ddaeSStephen Warren This works as of firmware.git commit 046effa13ebc "firmware: 8095a2ddaeSStephen Warren arm_loader: emmc clock depends on core clock See: 8195a2ddaeSStephen Warren https://github.com/raspberrypi/firmware/issues/572". 8295a2ddaeSStephen Warren 83*d7cf868fSChris Packham This option creates a build targeting the ARMv7/AArch32 ISA. 84adb91ec7SStephen Warren select BCM2836 85ddf6bd48SMasahiro Yamada 86f031f501SStephen Warrenconfig TARGET_RPI_3_32B 87f031f501SStephen Warren bool "Raspberry Pi 3 32-bit build" 88f031f501SStephen Warren help 89f031f501SStephen Warren Support for all BCM2837-based Raspberry Pi variants, such as 90f031f501SStephen Warren the RPi 3 model B, in AArch32 (32-bit) mode. 91f031f501SStephen Warren 92f031f501SStephen Warren This option assumes the VideoCore firmware is configured to use the 93f031f501SStephen Warren mini UART (rather than PL011) for the serial console. This is the 94f031f501SStephen Warren default on the RPi 3. To enable the UART console, the following non- 95158c9c78SStephen Warren default option must be present in config.txt: enable_uart=1. This is 96158c9c78SStephen Warren required for U-Boot to operate correctly, even if you only care 97158c9c78SStephen Warren about the HDMI/usbkbd console. 98f031f501SStephen Warren 99*d7cf868fSChris Packham This option creates a build targeting the ARMv7/AArch32 ISA. 100fe84ebf0SStephen Warren select BCM2837_32B 101f031f501SStephen Warren 102d22a7657SStephen Warrenconfig TARGET_RPI_3 103d22a7657SStephen Warren bool "Raspberry Pi 3 64-bit build" 104158c9c78SStephen Warren help 105158c9c78SStephen Warren Support for all BCM2837-based Raspberry Pi variants, such as 106158c9c78SStephen Warren the RPi 3 model B, in AArch64 (64-bit) mode. 107158c9c78SStephen Warren 108158c9c78SStephen Warren This option assumes the VideoCore firmware is configured to use the 109158c9c78SStephen Warren mini UART (rather than PL011) for the serial console. This is the 110158c9c78SStephen Warren default on the RPi 3. To enable the UART console, the following non- 111158c9c78SStephen Warren default option must be present in config.txt: enable_uart=1. This is 112158c9c78SStephen Warren required for U-Boot to operate correctly, even if you only care 113158c9c78SStephen Warren about the HDMI/usbkbd console. 114158c9c78SStephen Warren 115158c9c78SStephen Warren At the time of writing, the VC FW requires a non-default option in 116158c9c78SStephen Warren config.txt to request the ARM CPU boot in 64-bit mode: 117158c9c78SStephen Warren arm_control=0x200 118158c9c78SStephen Warren 119158c9c78SStephen Warren The VC FW typically provides ARM "stub" code to set up the CPU and 120158c9c78SStephen Warren quiesce secondary SMP CPUs. This is not currently true in 64-bit 121158c9c78SStephen Warren mode. In order to boot U-Boot before the VC FW is enhanced, please 122158c9c78SStephen Warren see the commit description for the commit which added RPi3 support 123158c9c78SStephen Warren for a workaround. Since the instructions are temporary, they are not 124158c9c78SStephen Warren duplicated here. The VC FW enhancement is tracked in 125158c9c78SStephen Warren https://github.com/raspberrypi/firmware/issues/579. 126158c9c78SStephen Warren 127*d7cf868fSChris Packham This option creates a build targeting the ARMv8/AArch64 ISA. 128fe84ebf0SStephen Warren select BCM2837_64B 129d22a7657SStephen Warren 130ddf6bd48SMasahiro Yamadaendchoice 131ddf6bd48SMasahiro Yamada 132ddf6bd48SMasahiro Yamadaconfig SYS_BOARD 133fe84ebf0SStephen Warren default "rpi" 134ddf6bd48SMasahiro Yamada 135ddf6bd48SMasahiro Yamadaconfig SYS_VENDOR 136ddf6bd48SMasahiro Yamada default "raspberrypi" 137ddf6bd48SMasahiro Yamada 138ddf6bd48SMasahiro Yamadaconfig SYS_SOC 139d6c418e4SMasahiro Yamada default "bcm283x" 140ddf6bd48SMasahiro Yamada 141ddf6bd48SMasahiro Yamadaconfig SYS_CONFIG_NAME 142fe84ebf0SStephen Warren default "rpi" 143ddf6bd48SMasahiro Yamada 144ddf6bd48SMasahiro Yamadaendmenu 145