blob: 3eb5a9a897b19ddbf3e85627dfd278585a1c8ac8 [file] [log] [blame]
Stephen Warrenadb91ec2016-03-24 22:15:16 -06001config BCM2835
2 bool "Broadcom BCM2835 SoC support"
3 depends on ARCH_BCM283X
Stephen Warrenfe84ebf2016-04-04 20:00:41 -06004 select CPU_ARM1176
Stephen Warrenadb91ec2016-03-24 22:15:16 -06005
6config BCM2836
7 bool "Broadcom BCM2836 SoC support"
8 depends on ARCH_BCM283X
Stephen Warrenfe84ebf2016-04-04 20:00:41 -06009 select ARMV7_LPAE
Lokesh Vutlaacf15002018-04-26 18:21:26 +053010 select CPU_V7A
Stephen Warrenadb91ec2016-03-24 22:15:16 -060011
Stephen Warrenf031f502016-03-24 22:15:20 -060012config BCM2837
13 bool "Broadcom BCM2837 SoC support"
14 depends on ARCH_BCM283X
15
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060016config BCM2837_32B
17 bool "Broadcom BCM2837 SoC 32-bit support"
18 depends on ARCH_BCM283X
19 select BCM2837
20 select ARMV7_LPAE
Lokesh Vutlaacf15002018-04-26 18:21:26 +053021 select CPU_V7A
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060022
23config BCM2837_64B
24 bool "Broadcom BCM2837 SoC 64-bit support"
25 depends on ARCH_BCM283X
26 select BCM2837
27 select ARM64
28
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090029menu "Broadcom BCM283X family"
30 depends on ARCH_BCM283X
31
32choice
33 prompt "Broadcom BCM283X board select"
Joe Hershbergera26cd042015-05-12 14:46:23 -050034 optional
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090035
36config TARGET_RPI
Stephen Warren95a2dda2016-03-24 22:15:19 -060037 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
Chris Packhamd7cf8682019-01-13 22:13:21 +130044 This option creates a build targeting the ARM1176 ISA.
Stephen Warrenadb91ec2016-03-24 22:15:16 -060045 select BCM2835
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090046
Dmitry Korunov89930562017-11-26 13:38:53 +040047config TARGET_RPI_0_W
48 bool "Raspberry Pi Zero W"
49 help
50 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
51 the RPi Zero model W.
52
53 This option assumes the VideoCore firmware is configured to use the
54 mini UART (rather than PL011) for the serial console. This is the
55 default on the RPi Zero W. To enable the UART console, the following
56 non-default option must be present in config.txt: enable_uart=1.
57 This is required for U-Boot to operate correctly, even if you only
58 care about the HDMI/usbkbd console.
59
Chris Packhamd7cf8682019-01-13 22:13:21 +130060 This option creates a build targeting the ARMv7/AArch32 ISA.
Dmitry Korunov89930562017-11-26 13:38:53 +040061 select BCM2835
62
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090063config TARGET_RPI_2
64 bool "Raspberry Pi 2"
Stephen Warren95a2dda2016-03-24 22:15:19 -060065 help
66 Support for all BCM2836-based Raspberry Pi variants, such as
67 the RPi 2 model B.
68
69 This option also supports BCM2837-based variants such as the RPi 3
70 Model B, when run in 32-bit mode, provided you have configured the
71 VideoCore firmware to select the PL011 UART for the console by:
72 a) config.txt should contain dtoverlay=pi3-miniuart-bt.
73 b) You should run the following to tell the VC FW to process DT when
74 booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
75 card as the kernel image:
76
77 path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
78
79 This works as of firmware.git commit 046effa13ebc "firmware:
80 arm_loader: emmc clock depends on core clock See:
81 https://github.com/raspberrypi/firmware/issues/572".
82
Chris Packhamd7cf8682019-01-13 22:13:21 +130083 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warrenadb91ec2016-03-24 22:15:16 -060084 select BCM2836
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090085
Stephen Warrenf031f502016-03-24 22:15:20 -060086config TARGET_RPI_3_32B
87 bool "Raspberry Pi 3 32-bit build"
88 help
89 Support for all BCM2837-based Raspberry Pi variants, such as
90 the RPi 3 model B, in AArch32 (32-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-
Stephen Warren158c9c72016-04-01 21:38:04 -060095 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.
Stephen Warrenf031f502016-03-24 22:15:20 -060098
Chris Packhamd7cf8682019-01-13 22:13:21 +130099 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warrenfe84ebf2016-04-04 20:00:41 -0600100 select BCM2837_32B
Stephen Warrenf031f502016-03-24 22:15:20 -0600101
Stephen Warrend22a7652016-04-01 21:14:15 -0600102config TARGET_RPI_3
103 bool "Raspberry Pi 3 64-bit build"
Stephen Warren158c9c72016-04-01 21:38:04 -0600104 help
105 Support for all BCM2837-based Raspberry Pi variants, such as
106 the RPi 3 model B, in AArch64 (64-bit) mode.
107
108 This option assumes the VideoCore firmware is configured to use the
109 mini UART (rather than PL011) for the serial console. This is the
110 default on the RPi 3. To enable the UART console, the following non-
111 default option must be present in config.txt: enable_uart=1. This is
112 required for U-Boot to operate correctly, even if you only care
113 about the HDMI/usbkbd console.
114
115 At the time of writing, the VC FW requires a non-default option in
116 config.txt to request the ARM CPU boot in 64-bit mode:
117 arm_control=0x200
118
119 The VC FW typically provides ARM "stub" code to set up the CPU and
120 quiesce secondary SMP CPUs. This is not currently true in 64-bit
121 mode. In order to boot U-Boot before the VC FW is enhanced, please
122 see the commit description for the commit which added RPi3 support
123 for a workaround. Since the instructions are temporary, they are not
124 duplicated here. The VC FW enhancement is tracked in
125 https://github.com/raspberrypi/firmware/issues/579.
126
Chris Packhamd7cf8682019-01-13 22:13:21 +1300127 This option creates a build targeting the ARMv8/AArch64 ISA.
Stephen Warrenfe84ebf2016-04-04 20:00:41 -0600128 select BCM2837_64B
Stephen Warrend22a7652016-04-01 21:14:15 -0600129
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +0900130endchoice
131
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +0900132config SYS_BOARD
Stephen Warrenfe84ebf2016-04-04 20:00:41 -0600133 default "rpi"
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +0900134
135config SYS_VENDOR
136 default "raspberrypi"
137
138config SYS_SOC
Masahiro Yamadad6c418e2015-03-19 19:42:57 +0900139 default "bcm283x"
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +0900140
141config SYS_CONFIG_NAME
Stephen Warrenfe84ebf2016-04-04 20:00:41 -0600142 default "rpi"
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +0900143
144endmenu