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 | |
Stephen Warren | f031f50 | 2016-03-24 22:15:20 -0600 | [diff] [blame^] | 9 | config BCM2837 |
| 10 | bool "Broadcom BCM2837 SoC support" |
| 11 | depends on ARCH_BCM283X |
| 12 | |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 13 | menu "Broadcom BCM283X family" |
| 14 | depends on ARCH_BCM283X |
| 15 | |
| 16 | choice |
| 17 | prompt "Broadcom BCM283X board select" |
Joe Hershberger | a26cd04 | 2015-05-12 14:46:23 -0500 | [diff] [blame] | 18 | optional |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 19 | |
| 20 | config TARGET_RPI |
Stephen Warren | 95a2dda | 2016-03-24 22:15:19 -0600 | [diff] [blame] | 21 | bool "Raspberry Pi (all BCM2835 variants)" |
| 22 | help |
| 23 | Support for all ARM1176-/BCM2835-based Raspberry Pi variants, such as |
| 24 | the A, A+, B, B+, Compute Module, and Zero. This option cannot |
| 25 | support BCM2836/BCM2837-based Raspberry Pis such as the RPi 2 and |
| 26 | RPi 3 due to different peripheral address maps. |
| 27 | |
| 28 | This option creates a build targetting the ARM1176 ISA. |
Stephen Warren | adb91ec | 2016-03-24 22:15:16 -0600 | [diff] [blame] | 29 | select BCM2835 |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 30 | select CPU_ARM1176 |
| 31 | |
| 32 | config TARGET_RPI_2 |
| 33 | bool "Raspberry Pi 2" |
Stephen Warren | 95a2dda | 2016-03-24 22:15:19 -0600 | [diff] [blame] | 34 | help |
| 35 | Support for all BCM2836-based Raspberry Pi variants, such as |
| 36 | the RPi 2 model B. |
| 37 | |
| 38 | This option also supports BCM2837-based variants such as the RPi 3 |
| 39 | Model B, when run in 32-bit mode, provided you have configured the |
| 40 | VideoCore firmware to select the PL011 UART for the console by: |
| 41 | a) config.txt should contain dtoverlay=pi3-miniuart-bt. |
| 42 | b) You should run the following to tell the VC FW to process DT when |
| 43 | booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD |
| 44 | card as the kernel image: |
| 45 | |
| 46 | path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img |
| 47 | |
| 48 | This works as of firmware.git commit 046effa13ebc "firmware: |
| 49 | arm_loader: emmc clock depends on core clock See: |
| 50 | https://github.com/raspberrypi/firmware/issues/572". |
| 51 | |
| 52 | This option creates a build targetting the ARMv7/AArch32 ISA. |
Alexander Graf | ccd9d51 | 2016-03-16 15:41:23 +0100 | [diff] [blame] | 53 | select ARMV7_LPAE |
Stephen Warren | adb91ec | 2016-03-24 22:15:16 -0600 | [diff] [blame] | 54 | select BCM2836 |
| 55 | select CPU_V7 |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 56 | |
Stephen Warren | f031f50 | 2016-03-24 22:15:20 -0600 | [diff] [blame^] | 57 | config TARGET_RPI_3_32B |
| 58 | bool "Raspberry Pi 3 32-bit build" |
| 59 | help |
| 60 | Support for all BCM2837-based Raspberry Pi variants, such as |
| 61 | the RPi 3 model B, in AArch32 (32-bit) mode. |
| 62 | |
| 63 | This option assumes the VideoCore firmware is configured to use the |
| 64 | mini UART (rather than PL011) for the serial console. This is the |
| 65 | default on the RPi 3. To enable the UART console, the following non- |
| 66 | default option must be present in config.txt: enable_uart=1. |
| 67 | |
| 68 | This option creates a build targetting the ARMv7/AArch32 ISA. |
| 69 | select ARMV7_LPAE |
| 70 | select BCM2837 |
| 71 | select CPU_V7 |
| 72 | |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 73 | endchoice |
| 74 | |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 75 | config SYS_BOARD |
| 76 | default "rpi" if TARGET_RPI |
| 77 | default "rpi_2" if TARGET_RPI_2 |
Stephen Warren | f031f50 | 2016-03-24 22:15:20 -0600 | [diff] [blame^] | 78 | default "rpi_3_32b" if TARGET_RPI_3_32B |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 79 | |
| 80 | config SYS_VENDOR |
| 81 | default "raspberrypi" |
| 82 | |
| 83 | config SYS_SOC |
Masahiro Yamada | d6c418e | 2015-03-19 19:42:57 +0900 | [diff] [blame] | 84 | default "bcm283x" |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 85 | |
| 86 | config SYS_CONFIG_NAME |
| 87 | default "rpi" if TARGET_RPI |
| 88 | default "rpi_2" if TARGET_RPI_2 |
Stephen Warren | f031f50 | 2016-03-24 22:15:20 -0600 | [diff] [blame^] | 89 | default "rpi_3_32b" if TARGET_RPI_3_32B |
Masahiro Yamada | ddf6bd4 | 2015-03-19 19:42:56 +0900 | [diff] [blame] | 90 | |
| 91 | endmenu |