blob: 1f3031d8123f28c3c81541e8bb27384a74c02576 [file] [log] [blame]
Stephen Warrenadb91ec2016-03-24 22:15:16 -06001config BCM2835
2 bool "Broadcom BCM2835 SoC support"
3 depends on ARCH_BCM283X
4
5config BCM2836
6 bool "Broadcom BCM2836 SoC support"
7 depends on ARCH_BCM283X
8
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +09009menu "Broadcom BCM283X family"
10 depends on ARCH_BCM283X
11
12choice
13 prompt "Broadcom BCM283X board select"
Joe Hershbergera26cd042015-05-12 14:46:23 -050014 optional
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090015
16config TARGET_RPI
Stephen Warren95a2dda2016-03-24 22:15:19 -060017 bool "Raspberry Pi (all BCM2835 variants)"
18 help
19 Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as
20 the A, A+, B, B+, Compute Module, and Zero. This option cannot
21 support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and
22 RPi 3 due to different peripheral address maps.
23
24 This option creates a build targetting the ARM1176 ISA.
Stephen Warrenadb91ec2016-03-24 22:15:16 -060025 select BCM2835
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090026 select CPU_ARM1176
27
28config TARGET_RPI_2
29 bool "Raspberry Pi 2"
Stephen Warren95a2dda2016-03-24 22:15:19 -060030 help
31 Support for all BCM2836-based Raspberry Pi variants, such as
32 the RPi 2 model B.
33
34 This option also supports BCM2837-based variants such as the RPi 3
35 Model B, when run in 32-bit mode, provided you have configured the
36 VideoCore firmware to select the PL011 UART for the console by:
37 a) config.txt should contain dtoverlay=pi3-miniuart-bt.
38 b) You should run the following to tell the VC FW to process DT when
39 booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD
40 card as the kernel image:
41
42 path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img
43
44 This works as of firmware.git commit 046effa13ebc "firmware:
45 arm_loader: emmc clock depends on core clock See:
46 https://github.com/raspberrypi/firmware/issues/572".
47
48 This option creates a build targetting the ARMv7/AArch32 ISA.
Alexander Grafccd9d512016-03-16 15:41:23 +010049 select ARMV7_LPAE
Stephen Warrenadb91ec2016-03-24 22:15:16 -060050 select BCM2836
51 select CPU_V7
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090052
53endchoice
54
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090055config SYS_BOARD
56 default "rpi" if TARGET_RPI
57 default "rpi_2" if TARGET_RPI_2
58
59config SYS_VENDOR
60 default "raspberrypi"
61
62config SYS_SOC
Masahiro Yamadad6c418e2015-03-19 19:42:57 +090063 default "bcm283x"
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +090064
65config SYS_CONFIG_NAME
66 default "rpi" if TARGET_RPI
67 default "rpi_2" if TARGET_RPI_2
68
69endmenu