diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-03-13 08:15:25 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-03-14 12:34:55 -0400 |
commit | 3f9fb2a08f55c79b4c6cde423c1e8ddcc5a49781 (patch) | |
tree | 35a78bd1e63edb8c7f836bf20cf5032f8b9ed5ea /arch/arm/mach-cns3xxx | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) |
ARM: cns3xxx: make mach header files local
The mach/cns3xxx.h and mach/pm.h header files are used only
in the platform code itself, so there is no need to make
them globally visible. This gets us closer to multiplatform
configuration for cns3xxx.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-cns3xxx')
-rw-r--r-- | arch/arm/mach-cns3xxx/cns3420vb.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/cns3xxx.h (renamed from arch/arm/mach-cns3xxx/include/mach/cns3xxx.h) | 7 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/devices.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/include/mach/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/pcie.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/pm.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-cns3xxx/pm.h (renamed from arch/arm/mach-cns3xxx/include/mach/pm.h) | 0 |
8 files changed, 11 insertions, 16 deletions
diff --git a/arch/arm/mach-cns3xxx/cns3420vb.c b/arch/arm/mach-cns3xxx/cns3420vb.c index a71867e1d8d6..d863d8729edc 100644 --- a/arch/arm/mach-cns3xxx/cns3420vb.c +++ b/arch/arm/mach-cns3xxx/cns3420vb.c | |||
@@ -31,9 +31,8 @@ | |||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
33 | #include <asm/mach/time.h> | 33 | #include <asm/mach/time.h> |
34 | #include <mach/cns3xxx.h> | 34 | #include "cns3xxx.h" |
35 | #include <mach/irqs.h> | 35 | #include "pm.h" |
36 | #include <mach/pm.h> | ||
37 | #include "core.h" | 36 | #include "core.h" |
38 | #include "devices.h" | 37 | #include "devices.h" |
39 | 38 | ||
diff --git a/arch/arm/mach-cns3xxx/include/mach/cns3xxx.h b/arch/arm/mach-cns3xxx/cns3xxx.h index 191c8e57f289..d7d3a8d64282 100644 --- a/arch/arm/mach-cns3xxx/include/mach/cns3xxx.h +++ b/arch/arm/mach-cns3xxx/cns3xxx.h | |||
@@ -553,6 +553,8 @@ int cns3xxx_cpu_clock(void); | |||
553 | /* | 553 | /* |
554 | * ARM11 MPCore interrupt sources (primary GIC) | 554 | * ARM11 MPCore interrupt sources (primary GIC) |
555 | */ | 555 | */ |
556 | #define IRQ_TC11MP_GIC_START 32 | ||
557 | |||
556 | #define IRQ_CNS3XXX_PMU (IRQ_TC11MP_GIC_START + 0) | 558 | #define IRQ_CNS3XXX_PMU (IRQ_TC11MP_GIC_START + 0) |
557 | #define IRQ_CNS3XXX_SDIO (IRQ_TC11MP_GIC_START + 1) | 559 | #define IRQ_CNS3XXX_SDIO (IRQ_TC11MP_GIC_START + 1) |
558 | #define IRQ_CNS3XXX_L2CC (IRQ_TC11MP_GIC_START + 2) | 560 | #define IRQ_CNS3XXX_L2CC (IRQ_TC11MP_GIC_START + 2) |
@@ -624,9 +626,4 @@ int cns3xxx_cpu_clock(void); | |||
624 | 626 | ||
625 | #define NR_IRQS_CNS3XXX (IRQ_TC11MP_GIC_START + 64) | 627 | #define NR_IRQS_CNS3XXX (IRQ_TC11MP_GIC_START + 64) |
626 | 628 | ||
627 | #if !defined(NR_IRQS) || (NR_IRQS < NR_IRQS_CNS3XXX) | ||
628 | #undef NR_IRQS | ||
629 | #define NR_IRQS NR_IRQS_CNS3XXX | ||
630 | #endif | ||
631 | |||
632 | #endif /* __MACH_BOARD_CNS3XXX_H */ | 629 | #endif /* __MACH_BOARD_CNS3XXX_H */ |
diff --git a/arch/arm/mach-cns3xxx/core.c b/arch/arm/mach-cns3xxx/core.c index e698f26cc0cb..012ffdb9e142 100644 --- a/arch/arm/mach-cns3xxx/core.c +++ b/arch/arm/mach-cns3xxx/core.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/mach/time.h> | 17 | #include <asm/mach/time.h> |
18 | #include <asm/mach/irq.h> | 18 | #include <asm/mach/irq.h> |
19 | #include <asm/hardware/cache-l2x0.h> | 19 | #include <asm/hardware/cache-l2x0.h> |
20 | #include <mach/cns3xxx.h> | 20 | #include "cns3xxx.h" |
21 | #include "core.h" | 21 | #include "core.h" |
22 | 22 | ||
23 | static struct map_desc cns3xxx_io_desc[] __initdata = { | 23 | static struct map_desc cns3xxx_io_desc[] __initdata = { |
diff --git a/arch/arm/mach-cns3xxx/devices.c b/arch/arm/mach-cns3xxx/devices.c index 1e40c99b015f..7da78a2451f1 100644 --- a/arch/arm/mach-cns3xxx/devices.c +++ b/arch/arm/mach-cns3xxx/devices.c | |||
@@ -16,9 +16,8 @@ | |||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/dma-mapping.h> | 17 | #include <linux/dma-mapping.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <mach/cns3xxx.h> | 19 | #include "cns3xxx.h" |
20 | #include <mach/irqs.h> | 20 | #include "pm.h" |
21 | #include <mach/pm.h> | ||
22 | #include "core.h" | 21 | #include "core.h" |
23 | #include "devices.h" | 22 | #include "devices.h" |
24 | 23 | ||
diff --git a/arch/arm/mach-cns3xxx/include/mach/uncompress.h b/arch/arm/mach-cns3xxx/include/mach/uncompress.h index 7a030b99df84..e2c642c1c66c 100644 --- a/arch/arm/mach-cns3xxx/include/mach/uncompress.h +++ b/arch/arm/mach-cns3xxx/include/mach/uncompress.h | |||
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <asm/mach-types.h> | 10 | #include <asm/mach-types.h> |
11 | #include <mach/cns3xxx.h> | 11 | #include "cns3xxx.h" |
12 | 12 | ||
13 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) | 13 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) |
14 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) | 14 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) |
diff --git a/arch/arm/mach-cns3xxx/pcie.c b/arch/arm/mach-cns3xxx/pcie.c index 311328314163..c7b204bff386 100644 --- a/arch/arm/mach-cns3xxx/pcie.c +++ b/arch/arm/mach-cns3xxx/pcie.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/ptrace.h> | 21 | #include <linux/ptrace.h> |
22 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
23 | #include <mach/cns3xxx.h> | 23 | #include "cns3xxx.h" |
24 | #include "core.h" | 24 | #include "core.h" |
25 | 25 | ||
26 | enum cns3xxx_access_type { | 26 | enum cns3xxx_access_type { |
diff --git a/arch/arm/mach-cns3xxx/pm.c b/arch/arm/mach-cns3xxx/pm.c index 36458080332a..79e3d47aad65 100644 --- a/arch/arm/mach-cns3xxx/pm.c +++ b/arch/arm/mach-cns3xxx/pm.c | |||
@@ -11,8 +11,8 @@ | |||
11 | #include <linux/io.h> | 11 | #include <linux/io.h> |
12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
13 | #include <linux/atomic.h> | 13 | #include <linux/atomic.h> |
14 | #include <mach/cns3xxx.h> | 14 | #include "cns3xxx.h" |
15 | #include <mach/pm.h> | 15 | #include "pm.h" |
16 | #include "core.h" | 16 | #include "core.h" |
17 | 17 | ||
18 | void cns3xxx_pwr_clk_en(unsigned int block) | 18 | void cns3xxx_pwr_clk_en(unsigned int block) |
diff --git a/arch/arm/mach-cns3xxx/include/mach/pm.h b/arch/arm/mach-cns3xxx/pm.h index c2588cc991d1..c2588cc991d1 100644 --- a/arch/arm/mach-cns3xxx/include/mach/pm.h +++ b/arch/arm/mach-cns3xxx/pm.h | |||