[PATCH 4/5] BCM2835: add support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Oct 12 05:33:59 EDT 2012


On 23:52 Thu 11 Oct     , Carlo Caione wrote:
> Signed-off-by: Carlo Caione <carlo.caione at gmail.com>
> ---
>  arch/arm/Kconfig                              |   8 ++
>  arch/arm/Makefile                             |   1 +
>  arch/arm/mach-bcm2835/Kconfig                 |  14 ++++
>  arch/arm/mach-bcm2835/Makefile                |   2 +
>  arch/arm/mach-bcm2835/clock.c                 |  39 ++++++++++
>  arch/arm/mach-bcm2835/core.c                  | 102 ++++++++++++++++++++++++++
>  arch/arm/mach-bcm2835/include/mach/clkdev.h   |   7 ++
>  arch/arm/mach-bcm2835/include/mach/clock.h    |   8 ++
>  arch/arm/mach-bcm2835/include/mach/core.h     |  27 +++++++
>  arch/arm/mach-bcm2835/include/mach/gpio.h     |   1 +
>  arch/arm/mach-bcm2835/include/mach/platform.h |  53 +++++++++++++
>  arch/arm/mach-bcm2835/include/mach/wd.h       |  50 +++++++++++++
>  12 files changed, 312 insertions(+)
>  create mode 100644 arch/arm/mach-bcm2835/Kconfig
>  create mode 100644 arch/arm/mach-bcm2835/Makefile
>  create mode 100644 arch/arm/mach-bcm2835/clock.c
>  create mode 100644 arch/arm/mach-bcm2835/core.c
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/clkdev.h
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/clock.h
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/core.h
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/gpio.h
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/platform.h
>  create mode 100644 arch/arm/mach-bcm2835/include/mach/wd.h
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 1e45ebf..daedc00 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -31,6 +31,13 @@ config ARCH_AT91
>  	select HAS_DEBUG_LL
>  	select HAVE_MACH_ARM_HEAD
>  
> +config ARCH_BCM2835
> +	bool "Broadcom BCM2835 boards"
> +	select GPIOLIB
> +	select CPU_ARM1176
> +	select CLKDEV_LOOKUP
> +	select CLOCKSOURCE_BCM2835
> +
>  config ARCH_EP93XX
>  	bool "Cirrus Logic EP93xx"
>  	select CPU_ARM920T
> @@ -101,6 +108,7 @@ endchoice
>  
>  source arch/arm/cpu/Kconfig
>  source arch/arm/mach-at91/Kconfig
> +source arch/arm/mach-bcm2835/Kconfig
>  source arch/arm/mach-ep93xx/Kconfig
>  source arch/arm/mach-imx/Kconfig
>  source arch/arm/mach-mxs/Kconfig
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index 855043a..2ea11d6 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -52,6 +52,7 @@ AFLAGS   += -include asm/unified.h -msoft-float $(AFLAGS_THUMB2)
>  # Machine directory name.  This list is sorted alphanumerically
>  # by CONFIG_* macro name.
>  machine-$(CONFIG_ARCH_AT91)		:= at91
> +machine-$(CONFIG_ARCH_BCM2835)		:= bcm2835
>  machine-$(CONFIG_ARCH_EP93XX)		:= ep93xx
>  machine-$(CONFIG_ARCH_IMX)		:= imx
>  machine-$(CONFIG_ARCH_MXS)		:= mxs
> diff --git a/arch/arm/mach-bcm2835/Kconfig b/arch/arm/mach-bcm2835/Kconfig
> new file mode 100644
> index 0000000..1090955
> --- /dev/null
> +++ b/arch/arm/mach-bcm2835/Kconfig
> @@ -0,0 +1,14 @@
> +if ARCH_BCM2835
> +
> +choice
> +	prompt "Broadcom Board type"
> +
> +config MACH_RPI
> +	bool "RaspberryPi (BCM2835/ARM1176JZF-S)"
> +	select ARM_AMBA
here again ARM_AMBA is SOC not board

move it to
config ARCH_BCMxx
	select ARM_AMBA
> +
> +endchoice
> +
> +source arch/arm/boards/raspberry-pi/Kconfig
> +
> +endif
> diff --git a/arch/arm/mach-bcm2835/Makefile b/arch/arm/mach-bcm2835/Makefile
> new file mode 100644
> index 0000000..f0aa2e0
> --- /dev/null
> +++ b/arch/arm/mach-bcm2835/Makefile
> @@ -0,0 +1,2 @@
> +obj-y += core.o
> +obj-y += clock.o
> \ No newline at end of file
> diff --git a/arch/arm/mach-bcm2835/clock.c b/arch/arm/mach-bcm2835/clock.c
> new file mode 100644
> index 0000000..31400ea
> --- /dev/null
Best Regards,
J.



More information about the barebox mailing list