BCM2835 (used on Raspberry Pi) and BCM2836 (used on Raspberry Pi 2) are similar enough. One of the biggest differences is the ARM processor. It is reasonable to collect the source files into a single place, arch/arm/mach-bcm283x/. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org>master
parent
326a682358
commit
ddf6bd4876
@ -1,12 +0,0 @@ |
||||
if TARGET_RPI || TARGET_RPI_2 |
||||
|
||||
config DM |
||||
default y |
||||
|
||||
config DM_SERIAL |
||||
default y |
||||
|
||||
config DM_GPIO |
||||
default y |
||||
|
||||
endif |
@ -1,13 +0,0 @@ |
||||
#
|
||||
# (C) Copyright 2012 Stephen Warren
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
src_dir := ../../arm1176/bcm2835/
|
||||
|
||||
obj-y :=
|
||||
obj-y += $(src_dir)/init.o
|
||||
obj-y += $(src_dir)/reset.o
|
||||
obj-y += $(src_dir)/timer.o
|
||||
obj-y += $(src_dir)/mbox.o
|
@ -0,0 +1,40 @@ |
||||
menu "Broadcom BCM283X family" |
||||
depends on ARCH_BCM283X |
||||
|
||||
choice |
||||
prompt "Broadcom BCM283X board select" |
||||
|
||||
config TARGET_RPI |
||||
bool "Raspberry Pi" |
||||
select CPU_ARM1176 |
||||
|
||||
config TARGET_RPI_2 |
||||
bool "Raspberry Pi 2" |
||||
select CPU_V7 |
||||
|
||||
endchoice |
||||
|
||||
config DM |
||||
default y |
||||
|
||||
config DM_SERIAL |
||||
default y |
||||
|
||||
config DM_GPIO |
||||
default y |
||||
|
||||
config SYS_BOARD |
||||
default "rpi" if TARGET_RPI |
||||
default "rpi_2" if TARGET_RPI_2 |
||||
|
||||
config SYS_VENDOR |
||||
default "raspberrypi" |
||||
|
||||
config SYS_SOC |
||||
default "bcm2835" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "rpi" if TARGET_RPI |
||||
default "rpi_2" if TARGET_RPI_2 |
||||
|
||||
endmenu |
@ -1,15 +0,0 @@ |
||||
if TARGET_RPI |
||||
|
||||
config SYS_BOARD |
||||
default "rpi" |
||||
|
||||
config SYS_VENDOR |
||||
default "raspberrypi" |
||||
|
||||
config SYS_SOC |
||||
default "bcm2835" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "rpi" |
||||
|
||||
endif |
@ -1,15 +0,0 @@ |
||||
if TARGET_RPI_2 |
||||
|
||||
config SYS_BOARD |
||||
default "rpi_2" |
||||
|
||||
config SYS_VENDOR |
||||
default "raspberrypi" |
||||
|
||||
config SYS_SOC |
||||
default "bcm2835" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "rpi_2" |
||||
|
||||
endif |
@ -1,2 +1,3 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_BCM283X=y |
||||
CONFIG_TARGET_RPI_2=y |
||||
|
@ -1,2 +1,3 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_BCM283X=y |
||||
CONFIG_TARGET_RPI=y |
||||
|
Loading…
Reference in new issue