diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-03-14 12:32:59 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-03-14 12:34:57 -0400 |
commit | 15bc1fe67f66644c8093cc2d3304217d1c7de797 (patch) | |
tree | bf7cce158e34650f8563d2f35f2ec70cafe58e78 | |
parent | 29c9b7be7574c486534a79c45982ede00f6a25a9 (diff) |
ARM: cns3xxx: enable multiplatform support
This moves the cns3xxx configuration option inside of ARCH_MULTIPLATFORM,
since there is no reason for not doing it now. We can then also remove
the three header files that become obsolete.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/Kconfig | 12 | ||||
-rw-r--r-- | arch/arm/configs/cns3420vb_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/Kconfig | 11 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/include/mach/timex.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/include/mach/uncompress.h | 53 |
5 files changed, 13 insertions, 77 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8bad33e4f2bd..78ffcc62ae93 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -382,18 +382,6 @@ config ARCH_BCM2835 | |||
382 | This enables support for the Broadcom BCM2835 SoC. This SoC is | 382 | This enables support for the Broadcom BCM2835 SoC. This SoC is |
383 | use in the Raspberry Pi, and Roku 2 devices. | 383 | use in the Raspberry Pi, and Roku 2 devices. |
384 | 384 | ||
385 | config ARCH_CNS3XXX | ||
386 | bool "Cavium Networks CNS3XXX family" | ||
387 | select ARM_GIC | ||
388 | select CPU_V6K | ||
389 | select GENERIC_CLOCKEVENTS | ||
390 | select MIGHT_HAVE_CACHE_L2X0 | ||
391 | select MIGHT_HAVE_PCI | ||
392 | select PCI_DOMAINS if PCI | ||
393 | select SPARSE_IRQ | ||
394 | help | ||
395 | Support for Cavium Networks CNS3XXX platform. | ||
396 | |||
397 | config ARCH_CLPS711X | 385 | config ARCH_CLPS711X |
398 | bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" | 386 | bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" |
399 | select ARCH_REQUIRE_GPIOLIB | 387 | select ARCH_REQUIRE_GPIOLIB |
diff --git a/arch/arm/configs/cns3420vb_defconfig b/arch/arm/configs/cns3420vb_defconfig index b79e98465dd9..b1ff5cdba9a1 100644 --- a/arch/arm/configs/cns3420vb_defconfig +++ b/arch/arm/configs/cns3420vb_defconfig | |||
@@ -19,6 +19,8 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
19 | CONFIG_MODVERSIONS=y | 19 | CONFIG_MODVERSIONS=y |
20 | # CONFIG_BLK_DEV_BSG is not set | 20 | # CONFIG_BLK_DEV_BSG is not set |
21 | CONFIG_IOSCHED_CFQ=m | 21 | CONFIG_IOSCHED_CFQ=m |
22 | CONFIG_ARCH_MULTI_V6=y | ||
23 | #CONFIG_ARCH_MULTI_V7 is not set | ||
22 | CONFIG_ARCH_CNS3XXX=y | 24 | CONFIG_ARCH_CNS3XXX=y |
23 | CONFIG_MACH_CNS3420VB=y | 25 | CONFIG_MACH_CNS3420VB=y |
24 | CONFIG_DEBUG_CNS3XXX=y | 26 | CONFIG_DEBUG_CNS3XXX=y |
diff --git a/arch/arm/mach-cns3xxx/Kconfig b/arch/arm/mach-cns3xxx/Kconfig index 9ebfcc46feb1..5720f3df1af2 100644 --- a/arch/arm/mach-cns3xxx/Kconfig +++ b/arch/arm/mach-cns3xxx/Kconfig | |||
@@ -1,3 +1,14 @@ | |||
1 | config ARCH_CNS3XXX | ||
2 | bool "Cavium Networks CNS3XXX family" if ARCH_MULTI_V6 | ||
3 | select ARM_GIC | ||
4 | select CPU_V6K | ||
5 | select GENERIC_CLOCKEVENTS | ||
6 | select MIGHT_HAVE_CACHE_L2X0 | ||
7 | select MIGHT_HAVE_PCI | ||
8 | select PCI_DOMAINS if PCI | ||
9 | help | ||
10 | Support for Cavium Networks CNS3XXX platform. | ||
11 | |||
1 | menu "CNS3XXX platform type" | 12 | menu "CNS3XXX platform type" |
2 | depends on ARCH_CNS3XXX | 13 | depends on ARCH_CNS3XXX |
3 | 14 | ||
diff --git a/arch/arm/mach-cns3xxx/include/mach/timex.h b/arch/arm/mach-cns3xxx/include/mach/timex.h deleted file mode 100644 index 1fd04217cacb..000000000000 --- a/arch/arm/mach-cns3xxx/include/mach/timex.h +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | /* | ||
2 | * Cavium Networks architecture timex specifications | ||
3 | * | ||
4 | * Copyright 2003 ARM Limited | ||
5 | * Copyright 2008 Cavium Networks | ||
6 | * | ||
7 | * This file is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License, Version 2, as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #define CLOCK_TICK_RATE (50000000 / 16) | ||
diff --git a/arch/arm/mach-cns3xxx/include/mach/uncompress.h b/arch/arm/mach-cns3xxx/include/mach/uncompress.h deleted file mode 100644 index e2c642c1c66c..000000000000 --- a/arch/arm/mach-cns3xxx/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 ARM Limited | ||
3 | * Copyright 2008 Cavium Networks | ||
4 | * | ||
5 | * This file is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License, Version 2, as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #include <asm/mach-types.h> | ||
11 | #include "cns3xxx.h" | ||
12 | |||
13 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) | ||
14 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) | ||
15 | #define AMBA_UART_CR(base) (*(volatile unsigned char *)((base) + 0x30)) | ||
16 | #define AMBA_UART_FR(base) (*(volatile unsigned char *)((base) + 0x18)) | ||
17 | |||
18 | /* | ||
19 | * Return the UART base address | ||
20 | */ | ||
21 | static inline unsigned long get_uart_base(void) | ||
22 | { | ||
23 | if (machine_is_cns3420vb()) | ||
24 | return CNS3XXX_UART0_BASE; | ||
25 | else | ||
26 | return 0; | ||
27 | } | ||
28 | |||
29 | /* | ||
30 | * This does not append a newline | ||
31 | */ | ||
32 | static inline void putc(int c) | ||
33 | { | ||
34 | unsigned long base = get_uart_base(); | ||
35 | |||
36 | while (AMBA_UART_FR(base) & (1 << 5)) | ||
37 | barrier(); | ||
38 | |||
39 | AMBA_UART_DR(base) = c; | ||
40 | } | ||
41 | |||
42 | static inline void flush(void) | ||
43 | { | ||
44 | unsigned long base = get_uart_base(); | ||
45 | |||
46 | while (AMBA_UART_FR(base) & (1 << 3)) | ||
47 | barrier(); | ||
48 | } | ||
49 | |||
50 | /* | ||
51 | * nothing to do | ||
52 | */ | ||
53 | #define arch_decomp_setup() | ||