1adb91ec7SStephen Warrenconfig BCM2835 2adb91ec7SStephen Warren bool "Broadcom BCM2835 SoC support" 3adb91ec7SStephen Warren depends on ARCH_BCM283X 4*fe84ebf0SStephen Warren select CPU_ARM1176 5adb91ec7SStephen Warren 6adb91ec7SStephen Warrenconfig BCM2836 7adb91ec7SStephen Warren bool "Broadcom BCM2836 SoC support" 8adb91ec7SStephen Warren depends on ARCH_BCM283X 9*fe84ebf0SStephen Warren select ARMV7_LPAE 10*fe84ebf0SStephen Warren select CPU_V7 11adb91ec7SStephen Warren 12f031f501SStephen Warrenconfig BCM2837 13f031f501SStephen Warren bool "Broadcom BCM2837 SoC support" 14f031f501SStephen Warren depends on ARCH_BCM283X 15f031f501SStephen Warren 16*fe84ebf0SStephen Warrenconfig BCM2837_32B 17*fe84ebf0SStephen Warren bool "Broadcom BCM2837 SoC 32-bit support" 18*fe84ebf0SStephen Warren depends on ARCH_BCM283X 19*fe84ebf0SStephen Warren select BCM2837 20*fe84ebf0SStephen Warren select ARMV7_LPAE 21*fe84ebf0SStephen Warren select CPU_V7 22*fe84ebf0SStephen Warren 23*fe84ebf0SStephen Warrenconfig BCM2837_64B 24*fe84ebf0SStephen Warren bool "Broadcom BCM2837 SoC 64-bit support" 25*fe84ebf0SStephen Warren depends on ARCH_BCM283X 26*fe84ebf0SStephen Warren select BCM2837 27*fe84ebf0SStephen Warren select ARM64 28*fe84ebf0SStephen 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 4495a2ddaeSStephen Warren This option creates a build targetting the ARM1176 ISA. 45adb91ec7SStephen Warren select BCM2835 46ddf6bd48SMasahiro Yamada 47ddf6bd48SMasahiro Yamadaconfig TARGET_RPI_2 48ddf6bd48SMasahiro Yamada bool "Raspberry Pi 2" 4995a2ddaeSStephen Warren help 5095a2ddaeSStephen Warren Support for all BCM2836-based Raspberry Pi variants, such as 5195a2ddaeSStephen Warren the RPi 2 model B. 5295a2ddaeSStephen Warren 5395a2ddaeSStephen Warren This option also supports BCM2837-based variants such as the RPi 3 5495a2ddaeSStephen Warren Model B, when run in 32-bit mode, provided you have configured the 5595a2ddaeSStephen Warren VideoCore firmware to select the PL011 UART for the console by: 5695a2ddaeSStephen Warren a) config.txt should contain dtoverlay=pi3-miniuart-bt. 5795a2ddaeSStephen Warren b) You should run the following to tell the VC FW to process DT when 5895a2ddaeSStephen Warren booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD 5995a2ddaeSStephen Warren card as the kernel image: 6095a2ddaeSStephen Warren 6195a2ddaeSStephen Warren path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img 6295a2ddaeSStephen Warren 6395a2ddaeSStephen Warren This works as of firmware.git commit 046effa13ebc "firmware: 6495a2ddaeSStephen Warren arm_loader: emmc clock depends on core clock See: 6595a2ddaeSStephen Warren https://github.com/raspberrypi/firmware/issues/572". 6695a2ddaeSStephen Warren 6795a2ddaeSStephen Warren This option creates a build targetting the ARMv7/AArch32 ISA. 68adb91ec7SStephen Warren select BCM2836 69ddf6bd48SMasahiro Yamada 70f031f501SStephen Warrenconfig TARGET_RPI_3_32B 71f031f501SStephen Warren bool "Raspberry Pi 3 32-bit build" 72f031f501SStephen Warren help 73f031f501SStephen Warren Support for all BCM2837-based Raspberry Pi variants, such as 74f031f501SStephen Warren the RPi 3 model B, in AArch32 (32-bit) mode. 75f031f501SStephen Warren 76f031f501SStephen Warren This option assumes the VideoCore firmware is configured to use the 77f031f501SStephen Warren mini UART (rather than PL011) for the serial console. This is the 78f031f501SStephen Warren default on the RPi 3. To enable the UART console, the following non- 79158c9c78SStephen Warren default option must be present in config.txt: enable_uart=1. This is 80158c9c78SStephen Warren required for U-Boot to operate correctly, even if you only care 81158c9c78SStephen Warren about the HDMI/usbkbd console. 82f031f501SStephen Warren 83f031f501SStephen Warren This option creates a build targetting the ARMv7/AArch32 ISA. 84*fe84ebf0SStephen Warren select BCM2837_32B 85f031f501SStephen Warren 86d22a7657SStephen Warrenconfig TARGET_RPI_3 87d22a7657SStephen Warren bool "Raspberry Pi 3 64-bit build" 88158c9c78SStephen Warren help 89158c9c78SStephen Warren Support for all BCM2837-based Raspberry Pi variants, such as 90158c9c78SStephen Warren the RPi 3 model B, in AArch64 (64-bit) mode. 91158c9c78SStephen Warren 92158c9c78SStephen Warren This option assumes the VideoCore firmware is configured to use the 93158c9c78SStephen Warren mini UART (rather than PL011) for the serial console. This is the 94158c9c78SStephen 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. 98158c9c78SStephen Warren 99158c9c78SStephen Warren At the time of writing, the VC FW requires a non-default option in 100158c9c78SStephen Warren config.txt to request the ARM CPU boot in 64-bit mode: 101158c9c78SStephen Warren arm_control=0x200 102158c9c78SStephen Warren 103158c9c78SStephen Warren The VC FW typically provides ARM "stub" code to set up the CPU and 104158c9c78SStephen Warren quiesce secondary SMP CPUs. This is not currently true in 64-bit 105158c9c78SStephen Warren mode. In order to boot U-Boot before the VC FW is enhanced, please 106158c9c78SStephen Warren see the commit description for the commit which added RPi3 support 107158c9c78SStephen Warren for a workaround. Since the instructions are temporary, they are not 108158c9c78SStephen Warren duplicated here. The VC FW enhancement is tracked in 109158c9c78SStephen Warren https://github.com/raspberrypi/firmware/issues/579. 110158c9c78SStephen Warren 111158c9c78SStephen Warren This option creates a build targetting the ARMv8/AArch64 ISA. 112*fe84ebf0SStephen Warren select BCM2837_64B 113d22a7657SStephen Warren 114ddf6bd48SMasahiro Yamadaendchoice 115ddf6bd48SMasahiro Yamada 116ddf6bd48SMasahiro Yamadaconfig SYS_BOARD 117*fe84ebf0SStephen Warren default "rpi" 118ddf6bd48SMasahiro Yamada 119ddf6bd48SMasahiro Yamadaconfig SYS_VENDOR 120ddf6bd48SMasahiro Yamada default "raspberrypi" 121ddf6bd48SMasahiro Yamada 122ddf6bd48SMasahiro Yamadaconfig SYS_SOC 123d6c418e4SMasahiro Yamada default "bcm283x" 124ddf6bd48SMasahiro Yamada 125ddf6bd48SMasahiro Yamadaconfig SYS_CONFIG_NAME 126*fe84ebf0SStephen Warren default "rpi" 127ddf6bd48SMasahiro Yamada 128ddf6bd48SMasahiro Yamadaendmenu 129