Skip to content

Commit f5f2915

Browse files
committed
Merge tag 'bcm2835-for-3.10-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi into next/multiplatform
From Stephen Warren <swarren@wwwdotorg.org>: ARM: bcm2835: convert to multi-platform This branch (patch) converts BCM2835 to support being built into a multi-platform single zImage. This mostly entails a few small Kconfig tweaks, move the earlyprintk implementation to the standard multi- platform location, and deleting some unnecessary files. * tag 'bcm2835-for-3.10-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi: ARM: bcm2835: convert to multi-platform Conflicts: arch/arm/Kconfig arch/arm/Kconfig.debug Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 806a94f + f1ac922 commit f5f2915

11 files changed

Lines changed: 30 additions & 124 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -361,26 +361,6 @@ config ARCH_AT91
361361
This enables support for systems based on Atmel
362362
AT91RM9200 and AT91SAM9* processors.
363363

364-
config ARCH_BCM2835
365-
bool "Broadcom BCM2835 family"
366-
select ARCH_REQUIRE_GPIOLIB
367-
select ARM_AMBA
368-
select ARM_ERRATA_411920
369-
select ARM_TIMER_SP804
370-
select CLKDEV_LOOKUP
371-
select CLKSRC_OF
372-
select COMMON_CLK
373-
select CPU_V6
374-
select GENERIC_CLOCKEVENTS
375-
select MULTI_IRQ_HANDLER
376-
select PINCTRL
377-
select PINCTRL_BCM2835
378-
select SPARSE_IRQ
379-
select USE_OF
380-
help
381-
This enables support for the Broadcom BCM2835 SoC. This SoC is
382-
use in the Raspberry Pi, and Roku 2 devices.
383-
384364
config ARCH_CLPS711X
385365
bool "Cirrus Logic CLPS711x/EP721x/EP731x-based"
386366
select ARCH_REQUIRE_GPIOLIB
@@ -981,6 +961,8 @@ source "arch/arm/mach-at91/Kconfig"
981961

982962
source "arch/arm/mach-bcm/Kconfig"
983963

964+
source "arch/arm/mach-bcm2835/Kconfig"
965+
984966
source "arch/arm/mach-clps711x/Kconfig"
985967

986968
source "arch/arm/mach-cns3xxx/Kconfig"

‎arch/arm/Kconfig.debug‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ choice
8989
bool "Kernel low-level debugging on 9263 and 9g45"
9090
depends on HAVE_AT91_DBGU1
9191

92+
config DEBUG_BCM2835
93+
bool "Kernel low-level debugging on BCM2835 PL011 UART"
94+
depends on ARCH_BCM2835
95+
9296
config DEBUG_CLPS711X_UART1
9397
bool "Kernel low-level debugging messages via UART1"
9498
depends on ARCH_CLPS711X
@@ -593,6 +597,7 @@ endchoice
593597

594598
config DEBUG_LL_INCLUDE
595599
string
600+
default "debug/bcm2835.S" if DEBUG_BCM2835
596601
default "debug/cns3xxx.S" if DEBUG_CNS3XXX
597602
default "debug/icedcc.S" if DEBUG_ICEDCC
598603
default "debug/imx.S" if DEBUG_IMX1_UART || \

‎arch/arm/configs/bcm2835_defconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ CONFIG_EMBEDDED=y
2929
CONFIG_PROFILING=y
3030
CONFIG_OPROFILE=y
3131
CONFIG_JUMP_LABEL=y
32+
CONFIG_ARCH_MULTI_V6=y
33+
# CONFIG_ARCH_MULTI_V7 is not set
3234
CONFIG_ARCH_BCM2835=y
3335
CONFIG_PREEMPT_VOLUNTARY=y
3436
CONFIG_AEABI=y

arch/arm/mach-bcm2835/include/mach/debug-macro.S renamed to arch/arm/include/debug/bcm2835.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
*
1212
*/
1313

14-
#include <mach/bcm2835_soc.h>
14+
#define BCM2835_DEBUG_PHYS 0x20201000
15+
#define BCM2835_DEBUG_VIRT 0xf0201000
1516

1617
.macro addruart, rp, rv, tmp
1718
ldr \rp, =BCM2835_DEBUG_PHYS

‎arch/arm/mach-bcm2835/Kconfig‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
config ARCH_BCM2835
2+
bool "Broadcom BCM2835 family" if ARCH_MULTI_V6
3+
select ARCH_REQUIRE_GPIOLIB
4+
select ARM_AMBA
5+
select ARM_ERRATA_411920
6+
select ARM_TIMER_SP804
7+
select CLKDEV_LOOKUP
8+
select CLKSRC_OF
9+
select CPU_V6
10+
select GENERIC_CLOCKEVENTS
11+
select PINCTRL
12+
select PINCTRL_BCM2835
13+
help
14+
This enables support for the Broadcom BCM2835 SoC. This SoC is
15+
use in the Raspberry Pi, and Roku 2 devices.

‎arch/arm/mach-bcm2835/Makefile.boot‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎arch/arm/mach-bcm2835/bcm2835.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#include <asm/mach/arch.h>
2424
#include <asm/mach/map.h>
2525

26-
#include <mach/bcm2835_soc.h>
27-
2826
#define PM_RSTC 0x1c
2927
#define PM_RSTS 0x20
3028
#define PM_WDOG 0x24
@@ -34,6 +32,10 @@
3432
#define PM_RSTC_WRCFG_FULL_RESET 0x00000020
3533
#define PM_RSTS_HADWRH_SET 0x00000040
3634

35+
#define BCM2835_PERIPH_PHYS 0x20000000
36+
#define BCM2835_PERIPH_VIRT 0xf0000000
37+
#define BCM2835_PERIPH_SIZE SZ_16M
38+
3739
static void __iomem *wdt_regs;
3840

3941
/*

‎arch/arm/mach-bcm2835/include/mach/bcm2835_soc.h‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎arch/arm/mach-bcm2835/include/mach/gpio.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎arch/arm/mach-bcm2835/include/mach/timex.h‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)