Stephen Warren | adb91ec | 2016-03-24 22:15:16 -0600 | [diff] [blame] | 1 | config BCM2835 |
| 2 | bool "Broadcom BCM2835 SoC support" |
| 3 | depends on ARCH_BCM283X |
| 4 | |
| 5 | config BCM2836 |
| 6 | bool "Broadcom BCM2836 SoC support" |
| 7 | depends on ARCH_BCM283X |
| 8 | |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 9 | menu "Broadcom BCM283X family" |
| 10 | depends on ARCH_BCM283X |
| 11 | |
| 12 | choice |
| 13 | prompt "Broadcom BCM283X board select" |
Joe Hershberger | a26cd04 | 2015-05-12 14:46:23 -0500 | [diff] [blame] | 14 | optional |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 15 | |
| 16 | config TARGET_RPI |
Stephen Warren | 95a2dda | 2016-03-24 22:15:19 -0600 | [diff] [blame^] | 17 | 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 Warren | adb91ec | 2016-03-24 22:15:16 -0600 | [diff] [blame] | 25 | select BCM2835 |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 26 | select CPU_ARM1176 |
| 27 | |
| 28 | config TARGET_RPI_2 |
| 29 | bool "Raspberry Pi 2" |
Stephen Warren | 95a2dda | 2016-03-24 22:15:19 -0600 | [diff] [blame^] | 30 | 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 Graf | ccd9d51 | 2016-03-16 15:41:23 +0100 | [diff] [blame] | 49 | select ARMV7_LPAE |
Stephen Warren | adb91ec | 2016-03-24 22:15:16 -0600 | [diff] [blame] | 50 | select BCM2836 |
| 51 | select CPU_V7 |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 52 | |
| 53 | endchoice |
| 54 | |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 55 | config SYS_BOARD |
| 56 | default "rpi" if TARGET_RPI |
| 57 | default "rpi_2" if TARGET_RPI_2 |
| 58 | |
| 59 | config SYS_VENDOR |
| 60 | default "raspberrypi" |
| 61 | |
| 62 | config SYS_SOC |
Masahiro Yamada | d6c418e | 2015-03-19 19:42:57 +0900 | [diff] [blame] | 63 | default "bcm283x" |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 64 | |
| 65 | config SYS_CONFIG_NAME |
| 66 | default "rpi" if TARGET_RPI |
| 67 | default "rpi_2" if TARGET_RPI_2 |
| 68 | |
| 69 | endmenu |