blob: 0ef8156c64ad1071da61f78c62f9571aa4eb2894 [file] [log] [blame]
Stephen Warren3ef844a2016-03-24 22:15:16 -06001config BCM2835
2 bool "Broadcom BCM2835 SoC support"
3 depends on ARCH_BCM283X
Stephen Warrend8845db2016-04-04 20:00:41 -06004 select CPU_ARM1176
Stephen Warren3ef844a2016-03-24 22:15:16 -06005
6config BCM2836
7 bool "Broadcom BCM2836 SoC support"
8 depends on ARCH_BCM283X
Stephen Warrend8845db2016-04-04 20:00:41 -06009 select ARMV7_LPAE
Lokesh Vutla81b1a672018-04-26 18:21:26 +053010 select CPU_V7A
Stephen Warren3ef844a2016-03-24 22:15:16 -060011
Stephen Warrend6f47c82016-03-24 22:15:20 -060012config BCM2837
13 bool "Broadcom BCM2837 SoC support"
14 depends on ARCH_BCM283X
Stephen Warrend8845db2016-04-04 20:00:41 -060015
16config BCM2837_32B
17 bool "Broadcom BCM2837 SoC 32-bit support"
18 depends on ARCH_BCM283X
19 select BCM2837
20 select ARMV7_LPAE
Lokesh Vutla81b1a672018-04-26 18:21:26 +053021 select CPU_V7A
Stephen Warrend8845db2016-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
Patrick Rudolph2e978922024-10-23 15:20:16 +020027 select DRIVER_GICV2
Stephen Warrend8845db2016-04-04 20:00:41 -060028 select ARM64
Patrick Rudolph2e978922024-10-23 15:20:16 +020029 select CPU_ARMV8
Stephen Warrend6f47c82016-03-24 22:15:20 -060030
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010031config BCM2711
32 bool "Broadcom BCM2711 SoC support"
33 depends on ARCH_BCM283X
34
35config BCM2711_32B
36 bool "Broadcom BCM2711 SoC 32-bit support"
37 depends on ARCH_BCM283X
38 select BCM2711
39 select ARMV7_LPAE
40 select CPU_V7A
Marek Szyprowskiab9d99a2020-06-03 14:43:44 +020041 select PHYS_64BIT
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010042
43config BCM2711_64B
44 bool "Broadcom BCM2711 SoC 64-bit support"
45 depends on ARCH_BCM283X
46 select BCM2711
Patrick Rudolph2e978922024-10-23 15:20:16 +020047 select DRIVER_GICV2
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010048 select ARM64
Patrick Rudolph2e978922024-10-23 15:20:16 +020049 select CPU_ARMV8
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010050
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090051menu "Broadcom BCM283X family"
52 depends on ARCH_BCM283X
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090053choice
54 prompt "Broadcom BCM283X board select"
Joe Hershbergerf0699602015-05-12 14:46:23 -050055 optional
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090056
57config TARGET_RPI
Stephen Warrenafaf43d2016-03-24 22:15:19 -060058 bool "Raspberry Pi (all BCM2835 variants)"
59 help
60 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
61 the A, A+, B, B+, Compute Module, and Zero. This option cannot
62 support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and
63 RPi 3 due to different peripheral address maps.
64
Chris Packham80a0b1c2019-01-13 22:13:21 +130065 This option creates a build targeting the ARM1176 ISA.
Stephen Warren3ef844a2016-03-24 22:15:16 -060066 select BCM2835
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090067
Dmitry Korunov3f887412017-11-26 13:38:53 +040068config TARGET_RPI_0_W
69 bool "Raspberry Pi Zero W"
70 help
71 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
72 the RPi Zero model W.
73
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 Zero W. To enable the UART console, the following
77 non-default option must be present in config.txt: enable_uart=1.
78 This is required for U-Boot to operate correctly, even if you only
79 care about the HDMI/usbkbd console.
80
Chris Packham80a0b1c2019-01-13 22:13:21 +130081 This option creates a build targeting the ARMv7/AArch32 ISA.
Dmitry Korunov3f887412017-11-26 13:38:53 +040082 select BCM2835
83
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090084config TARGET_RPI_2
85 bool "Raspberry Pi 2"
Stephen Warrenafaf43d2016-03-24 22:15:19 -060086 help
87 Support for all BCM2836-based Raspberry Pi variants, such as
88 the RPi 2 model B.
89
90 This option also supports BCM2837-based variants such as the RPi 3
91 Model B, when run in 32-bit mode, provided you have configured the
92 VideoCore firmware to select the PL011 UART for the console by:
93 a) config.txt should contain dtoverlay=pi3-miniuart-bt.
94 b) You should run the following to tell the VC FW to process DT when
95 booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
96 card as the kernel image:
97
98 path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
99
100 This works as of firmware.git commit 046effa13ebc "firmware:
101 arm_loader: emmc clock depends on core clock See:
102 https://github.com/raspberrypi/firmware/issues/572".
103
Chris Packham80a0b1c2019-01-13 22:13:21 +1300104 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warren3ef844a2016-03-24 22:15:16 -0600105 select BCM2836
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900106
Stephen Warrend6f47c82016-03-24 22:15:20 -0600107config TARGET_RPI_3_32B
108 bool "Raspberry Pi 3 32-bit build"
109 help
110 Support for all BCM2837-based Raspberry Pi variants, such as
111 the RPi 3 model B, in AArch32 (32-bit) mode.
112
113 This option assumes the VideoCore firmware is configured to use the
114 mini UART (rather than PL011) for the serial console. This is the
115 default on the RPi 3. To enable the UART console, the following non-
Stephen Warrenb2f48c22016-04-01 21:38:04 -0600116 default option must be present in config.txt: enable_uart=1. This is
117 required for U-Boot to operate correctly, even if you only care
118 about the HDMI/usbkbd console.
Stephen Warrend6f47c82016-03-24 22:15:20 -0600119
Chris Packham80a0b1c2019-01-13 22:13:21 +1300120 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warrend8845db2016-04-04 20:00:41 -0600121 select BCM2837_32B
Stephen Warrend6f47c82016-03-24 22:15:20 -0600122
Stephen Warren93ea5262016-04-01 21:14:15 -0600123config TARGET_RPI_3
124 bool "Raspberry Pi 3 64-bit build"
Stephen Warrenb2f48c22016-04-01 21:38:04 -0600125 help
126 Support for all BCM2837-based Raspberry Pi variants, such as
127 the RPi 3 model B, in AArch64 (64-bit) mode.
128
129 This option assumes the VideoCore firmware is configured to use the
130 mini UART (rather than PL011) for the serial console. This is the
131 default on the RPi 3. To enable the UART console, the following non-
132 default option must be present in config.txt: enable_uart=1. This is
133 required for U-Boot to operate correctly, even if you only care
134 about the HDMI/usbkbd console.
135
136 At the time of writing, the VC FW requires a non-default option in
137 config.txt to request the ARM CPU boot in 64-bit mode:
138 arm_control=0x200
139
140 The VC FW typically provides ARM "stub" code to set up the CPU and
141 quiesce secondary SMP CPUs. This is not currently true in 64-bit
142 mode. In order to boot U-Boot before the VC FW is enhanced, please
143 see the commit description for the commit which added RPi3 support
144 for a workaround. Since the instructions are temporary, they are not
145 duplicated here. The VC FW enhancement is tracked in
146 https://github.com/raspberrypi/firmware/issues/579.
147
Chris Packham80a0b1c2019-01-13 22:13:21 +1300148 This option creates a build targeting the ARMv8/AArch64 ISA.
Stephen Warrend8845db2016-04-04 20:00:41 -0600149 select BCM2837_64B
Stephen Warren93ea5262016-04-01 21:14:15 -0600150
Andrei Gherzan6f8cba52019-07-24 15:39:06 +0100151config TARGET_RPI_4_32B
152 bool "Raspberry Pi 4 32-bit build"
153 help
154 Support for all BCM2711-based Raspberry Pi variants, such as
155 the RPi 4 model B, in AArch32 (32-bit) mode.
156
157 This option assumes the VideoCore firmware is configured to use the
158 mini UART (rather than PL011) for the serial console. This is the
159 default on the RPi 4. To enable the UART console, the following non-
160 default option must be present in config.txt: enable_uart=1. This is
161 required for U-Boot to operate correctly, even if you only care
162 about the HDMI/usbkbd console.
163
164 Due to hardware incompatibilities, this can't be used with
165 BCM283/5/6/7.
166
167 This option creates a build targeting the ARMv7/AArch32 ISA.
168 select BCM2711_32B
169
170config TARGET_RPI_4
171 bool "Raspberry Pi 4 64-bit build"
172 help
173 Support for all BCM2711-based Raspberry Pi variants, such as
174 the RPi 4 model B, in AArch64 (64-bit) mode.
175
176 This option assumes the VideoCore firmware is configured to use the
177 mini UART (rather than PL011) for the serial console. This is the
178 default on the RPi 4. To enable the UART console, the following non-
179 default option must be present in config.txt: enable_uart=1. This is
180 required for U-Boot to operate correctly, even if you only care
181 about the HDMI/usbkbd console.
182
183 Due to hardware incompatibilities, this can't be used with
184 BCM283/5/6/7.
185
186 Also, due to a bug in firmware, switching to 64bit mode doesn't
187 happen automatically based on the kernel's image filename. See
188 https://github.com/raspberrypi/firmware/issues/1193 for more details.
189 Until that is resolved, the configuration (config.txt) needs to
190 explicitly set: arm_64bit=1.
191
192 This option creates a build targeting the ARMv8/AArch64 ISA.
193 select BCM2711_64B
194
Matthias Brugger81bad092019-11-06 15:41:03 +0100195config TARGET_RPI_ARM64
196 bool "Raspberry Pi one binary 64-bit build"
197 help
198 Support for all armv8 based Raspberry Pi variants, such as
199 the RPi 4 model B, in AArch64 (64-bit) mode.
200 select ARM64
201
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900202endchoice
203
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900204config SYS_BOARD
Stephen Warrend8845db2016-04-04 20:00:41 -0600205 default "rpi"
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900206
207config SYS_VENDOR
208 default "raspberrypi"
209
210config SYS_SOC
Masahiro Yamada82d81a42015-03-19 19:42:57 +0900211 default "bcm283x"
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900212
213config SYS_CONFIG_NAME
Stephen Warrend8845db2016-04-04 20:00:41 -0600214 default "rpi"
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900215
Kyle Evans335faea2020-02-26 15:37:13 -0600216source "board/raspberrypi/rpi/Kconfig"
217
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900218endmenu