blob: 6ce278c6d29678c7062f406530ffc8fb26bd4fa7 [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
27 select ARM64
Stephen Warrend6f47c82016-03-24 22:15:20 -060028
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010029config BCM2711
30 bool "Broadcom BCM2711 SoC support"
31 depends on ARCH_BCM283X
32
33config BCM2711_32B
34 bool "Broadcom BCM2711 SoC 32-bit support"
35 depends on ARCH_BCM283X
36 select BCM2711
37 select ARMV7_LPAE
38 select CPU_V7A
Marek Szyprowskiab9d99a2020-06-03 14:43:44 +020039 select PHYS_64BIT
Andrei Gherzan6f8cba52019-07-24 15:39:06 +010040
41config BCM2711_64B
42 bool "Broadcom BCM2711 SoC 64-bit support"
43 depends on ARCH_BCM283X
44 select BCM2711
45 select ARM64
46
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090047menu "Broadcom BCM283X family"
48 depends on ARCH_BCM283X
49
50choice
51 prompt "Broadcom BCM283X board select"
Joe Hershbergerf0699602015-05-12 14:46:23 -050052 optional
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090053
54config TARGET_RPI
Stephen Warrenafaf43d2016-03-24 22:15:19 -060055 bool "Raspberry Pi (all BCM2835 variants)"
56 help
57 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
58 the A, A+, B, B+, Compute Module, and Zero. This option cannot
59 support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and
60 RPi 3 due to different peripheral address maps.
61
Chris Packham80a0b1c2019-01-13 22:13:21 +130062 This option creates a build targeting the ARM1176 ISA.
Stephen Warren3ef844a2016-03-24 22:15:16 -060063 select BCM2835
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090064
Dmitry Korunov3f887412017-11-26 13:38:53 +040065config TARGET_RPI_0_W
66 bool "Raspberry Pi Zero W"
67 help
68 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
69 the RPi Zero model W.
70
71 This option assumes the VideoCore firmware is configured to use the
72 mini UART (rather than PL011) for the serial console. This is the
73 default on the RPi Zero W. To enable the UART console, the following
74 non-default option must be present in config.txt: enable_uart=1.
75 This is required for U-Boot to operate correctly, even if you only
76 care about the HDMI/usbkbd console.
77
Chris Packham80a0b1c2019-01-13 22:13:21 +130078 This option creates a build targeting the ARMv7/AArch32 ISA.
Dmitry Korunov3f887412017-11-26 13:38:53 +040079 select BCM2835
80
Masahiro Yamadaed22cc72015-03-19 19:42:56 +090081config TARGET_RPI_2
82 bool "Raspberry Pi 2"
Stephen Warrenafaf43d2016-03-24 22:15:19 -060083 help
84 Support for all BCM2836-based Raspberry Pi variants, such as
85 the RPi 2 model B.
86
87 This option also supports BCM2837-based variants such as the RPi 3
88 Model B, when run in 32-bit mode, provided you have configured the
89 VideoCore firmware to select the PL011 UART for the console by:
90 a) config.txt should contain dtoverlay=pi3-miniuart-bt.
91 b) You should run the following to tell the VC FW to process DT when
92 booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
93 card as the kernel image:
94
95 path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
96
97 This works as of firmware.git commit 046effa13ebc "firmware:
98 arm_loader: emmc clock depends on core clock See:
99 https://github.com/raspberrypi/firmware/issues/572".
100
Chris Packham80a0b1c2019-01-13 22:13:21 +1300101 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warren3ef844a2016-03-24 22:15:16 -0600102 select BCM2836
Masahiro Yamadaed22cc72015-03-19 19:42:56 +0900103
Stephen Warrend6f47c82016-03-24 22:15:20 -0600104config TARGET_RPI_3_32B
105 bool "Raspberry Pi 3 32-bit build"
106 help
107 Support for all BCM2837-based Raspberry Pi variants, such as
108 the RPi 3 model B, in AArch32 (32-bit) mode.
109
110 This option assumes the VideoCore firmware is configured to use the
111 mini UART (rather than PL011) for the serial console. This is the
112 default on the RPi 3. To enable the UART console, the following non-
Stephen Warrenb2f48c22016-04-01 21:38:04 -0600113 default option must be present in config.txt: enable_uart=1. This is
114 required for U-Boot to operate correctly, even if you only care
115 about the HDMI/usbkbd console.
Stephen Warrend6f47c82016-03-24 22:15:20 -0600116
Chris Packham80a0b1c2019-01-13 22:13:21 +1300117 This option creates a build targeting the ARMv7/AArch32 ISA.
Stephen Warrend8845db2016-04-04 20:00:41 -0600118 select BCM2837_32B
Stephen Warrend6f47c82016-03-24 22:15:20 -0600119
Stephen Warren93ea5262016-04-01 21:14:15 -0600120config TARGET_RPI_3
121 bool "Raspberry Pi 3 64-bit build"
Stephen Warrenb2f48c22016-04-01 21:38:04 -0600122 help
123 Support for all BCM2837-based Raspberry Pi variants, such as
124 the RPi 3 model B, in AArch64 (64-bit) mode.
125
126 This option assumes the VideoCore firmware is configured to use the
127 mini UART (rather than PL011) for the serial console. This is the
128 default on the RPi 3. To enable the UART console, the following non-
129 default option must be present in config.txt: enable_uart=1. This is
130 required for U-Boot to operate correctly, even if you only care
131 about the HDMI/usbkbd console.
132
133 At the time of writing, the VC FW requires a non-default option in
134 config.txt to request the ARM CPU boot in 64-bit mode:
135 arm_control=0x200
136
137 The VC FW typically provides ARM "stub" code to set up the CPU and
138 quiesce secondary SMP CPUs. This is not currently true in 64-bit
139 mode. In order to boot U-Boot before the VC FW is enhanced, please
140 see the commit description for the commit which added RPi3 support
141 for a workaround. Since the instructions are temporary, they are not
142 duplicated here. The VC FW enhancement is tracked in
143 https://github.com/raspberrypi/firmware/issues/579.
144
Chris Packham80a0b1c2019-01-13 22:13:21 +1300145 This option creates a build targeting the ARMv8/AArch64 ISA.
Stephen Warrend8845db2016-04-04 20:00:41 -0600146 select BCM2837_64B
Stephen Warren93ea5262016-04-01 21:14:15 -0600147
Andrei Gherzan6f8cba52019-07-24 15:39:06 +0100148config TARGET_RPI_4_32B
149 bool "Raspberry Pi 4 32-bit build"
150 help
151 Support for all BCM2711-based Raspberry Pi variants, such as
152 the RPi 4 model B, in AArch32 (32-bit) mode.
153
154 This option assumes the VideoCore firmware is configured to use the
155 mini UART (rather than PL011) for the serial console. This is the
156 default on the RPi 4. To enable the UART console, the following non-
157 default option must be present in config.txt: enable_uart=1. This is
158 required for U-Boot to operate correctly, even if you only care
159 about the HDMI/usbkbd console.
160
161 Due to hardware incompatibilities, this can't be used with
162 BCM283/5/6/7.
163
164 This option creates a build targeting the ARMv7/AArch32 ISA.
165 select BCM2711_32B
Simon Glass94886db2021-12-16 20:59:36 -0700166 imply OF_HAS_PRIOR_STAGE
Andrei Gherzan6f8cba52019-07-24 15:39:06 +0100167
168config TARGET_RPI_4
169 bool "Raspberry Pi 4 64-bit build"
170 help
171 Support for all BCM2711-based Raspberry Pi variants, such as
172 the RPi 4 model B, in AArch64 (64-bit) mode.
173
174 This option assumes the VideoCore firmware is configured to use the
175 mini UART (rather than PL011) for the serial console. This is the
176 default on the RPi 4. To enable the UART console, the following non-
177 default option must be present in config.txt: enable_uart=1. This is
178 required for U-Boot to operate correctly, even if you only care
179 about the HDMI/usbkbd console.
180
181 Due to hardware incompatibilities, this can't be used with
182 BCM283/5/6/7.
183
184 Also, due to a bug in firmware, switching to 64bit mode doesn't
185 happen automatically based on the kernel's image filename. See
186 https://github.com/raspberrypi/firmware/issues/1193 for more details.
187 Until that is resolved, the configuration (config.txt) needs to
188 explicitly set: arm_64bit=1.
189
190 This option creates a build targeting the ARMv8/AArch64 ISA.
191 select BCM2711_64B
Simon Glass94886db2021-12-16 20:59:36 -0700192 imply OF_HAS_PRIOR_STAGE
Andrei Gherzan6f8cba52019-07-24 15:39:06 +0100193
Matthias Brugger81bad092019-11-06 15:41:03 +0100194config TARGET_RPI_ARM64
195 bool "Raspberry Pi one binary 64-bit build"
196 help
197 Support for all armv8 based Raspberry Pi variants, such as
198 the RPi 4 model B, in AArch64 (64-bit) mode.
199 select ARM64
Simon Glass94886db2021-12-16 20:59:36 -0700200 imply OF_HAS_PRIOR_STAGE
Matthias Brugger81bad092019-11-06 15:41:03 +0100201
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