]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: cns3xxx: make mach header files local
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Mar 2013 12:15:25 +0000 (13:15 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 16:34:55 +0000 (17:34 +0100)
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>
arch/arm/mach-cns3xxx/cns3420vb.c
arch/arm/mach-cns3xxx/cns3xxx.h [moved from arch/arm/mach-cns3xxx/include/mach/cns3xxx.h with 99% similarity]
arch/arm/mach-cns3xxx/core.c
arch/arm/mach-cns3xxx/devices.c
arch/arm/mach-cns3xxx/include/mach/uncompress.h
arch/arm/mach-cns3xxx/pcie.c
arch/arm/mach-cns3xxx/pm.c
arch/arm/mach-cns3xxx/pm.h [moved from arch/arm/mach-cns3xxx/include/mach/pm.h with 100% similarity]
drivers/mmc/host/sdhci-cns3xxx.c

index a71867e1d8d6c58b591909facb33598bcfc57543..d863d8729edc54c9744cfd4137748727b57673f6 100644 (file)
@@ -31,9 +31,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 #include <asm/mach/time.h>
-#include <mach/cns3xxx.h>
-#include <mach/irqs.h>
-#include <mach/pm.h>
+#include "cns3xxx.h"
+#include "pm.h"
 #include "core.h"
 #include "devices.h"
 
similarity index 99%
rename from arch/arm/mach-cns3xxx/include/mach/cns3xxx.h
rename to arch/arm/mach-cns3xxx/cns3xxx.h
index 191c8e57f2890f09c30610bce584194bc1c3d7f1..d7d3a8d642827d85e9d8b4213cee47db5947ae32 100644 (file)
@@ -553,6 +553,8 @@ int cns3xxx_cpu_clock(void);
 /*
  * ARM11 MPCore interrupt sources (primary GIC)
  */
+#define IRQ_TC11MP_GIC_START   32
+
 #define IRQ_CNS3XXX_PMU                        (IRQ_TC11MP_GIC_START + 0)
 #define IRQ_CNS3XXX_SDIO               (IRQ_TC11MP_GIC_START + 1)
 #define IRQ_CNS3XXX_L2CC               (IRQ_TC11MP_GIC_START + 2)
@@ -624,9 +626,4 @@ int cns3xxx_cpu_clock(void);
 
 #define NR_IRQS_CNS3XXX                        (IRQ_TC11MP_GIC_START + 64)
 
-#if !defined(NR_IRQS) || (NR_IRQS < NR_IRQS_CNS3XXX)
-#undef NR_IRQS
-#define NR_IRQS                                NR_IRQS_CNS3XXX
-#endif
-
 #endif /* __MACH_BOARD_CNS3XXX_H */
index e698f26cc0cb5ed6bd3a62b7effb39b70d619376..012ffdb9e142e5b572d83fcced4eaf2b4b5cceb1 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/mach/time.h>
 #include <asm/mach/irq.h>
 #include <asm/hardware/cache-l2x0.h>
-#include <mach/cns3xxx.h>
+#include "cns3xxx.h"
 #include "core.h"
 
 static struct map_desc cns3xxx_io_desc[] __initdata = {
index 1e40c99b015f7d44c5c0ab19a2f4d9fbff7baede..7da78a2451f1c822c2832dc297ba34734b5d65ec 100644 (file)
@@ -16,9 +16,8 @@
 #include <linux/compiler.h>
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
-#include <mach/cns3xxx.h>
-#include <mach/irqs.h>
-#include <mach/pm.h>
+#include "cns3xxx.h"
+#include "pm.h"
 #include "core.h"
 #include "devices.h"
 
index 7a030b99df8418b0c189f5aca83ffc5633483ddb..e2c642c1c66c3ddaca726877bbf922fca969238c 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <asm/mach-types.h>
-#include <mach/cns3xxx.h>
+#include "cns3xxx.h"
 
 #define AMBA_UART_DR(base)     (*(volatile unsigned char *)((base) + 0x00))
 #define AMBA_UART_LCRH(base)   (*(volatile unsigned char *)((base) + 0x2c))
index 311328314163cbc7f1aa0a3a0336d79c2b26b6a4..c7b204bff3866141d2d8ead8416cfbaef8f57d9b 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/interrupt.h>
 #include <linux/ptrace.h>
 #include <asm/mach/map.h>
-#include <mach/cns3xxx.h>
+#include "cns3xxx.h"
 #include "core.h"
 
 enum cns3xxx_access_type {
index 36458080332ad36ce92bb232bc00fd876f9aa58b..79e3d47aad65d58ed7702bf10f7edc2af90610ff 100644 (file)
@@ -11,8 +11,8 @@
 #include <linux/io.h>
 #include <linux/delay.h>
 #include <linux/atomic.h>
-#include <mach/cns3xxx.h>
-#include <mach/pm.h>
+#include "cns3xxx.h"
+#include "pm.h"
 #include "core.h"
 
 void cns3xxx_pwr_clk_en(unsigned int block)
index 30bfdc4ae52a0351caf5aec4bddd89347447fbdb..6ba8502c1ee262ddf81148e7e324ff0f56a00f68 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/device.h>
 #include <linux/mmc/host.h>
 #include <linux/module.h>
-#include <mach/cns3xxx.h>
 #include "sdhci-pltfm.h"
 
 static unsigned int sdhci_cns3xxx_get_max_clk(struct sdhci_host *host)