Commit 3f9fb2a0 authored by Arnd Bergmann's avatar Arnd Bergmann

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: default avatarArnd Bergmann <arnd@arndb.de>
parent f6161aa1
...@@ -31,9 +31,8 @@ ...@@ -31,9 +31,8 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <mach/cns3xxx.h> #include "cns3xxx.h"
#include <mach/irqs.h> #include "pm.h"
#include <mach/pm.h>
#include "core.h" #include "core.h"
#include "devices.h" #include "devices.h"
......
...@@ -553,6 +553,8 @@ int cns3xxx_cpu_clock(void); ...@@ -553,6 +553,8 @@ int cns3xxx_cpu_clock(void);
/* /*
* ARM11 MPCore interrupt sources (primary GIC) * ARM11 MPCore interrupt sources (primary GIC)
*/ */
#define IRQ_TC11MP_GIC_START 32
#define IRQ_CNS3XXX_PMU (IRQ_TC11MP_GIC_START + 0) #define IRQ_CNS3XXX_PMU (IRQ_TC11MP_GIC_START + 0)
#define IRQ_CNS3XXX_SDIO (IRQ_TC11MP_GIC_START + 1) #define IRQ_CNS3XXX_SDIO (IRQ_TC11MP_GIC_START + 1)
#define IRQ_CNS3XXX_L2CC (IRQ_TC11MP_GIC_START + 2) #define IRQ_CNS3XXX_L2CC (IRQ_TC11MP_GIC_START + 2)
...@@ -624,9 +626,4 @@ int cns3xxx_cpu_clock(void); ...@@ -624,9 +626,4 @@ int cns3xxx_cpu_clock(void);
#define NR_IRQS_CNS3XXX (IRQ_TC11MP_GIC_START + 64) #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 */ #endif /* __MACH_BOARD_CNS3XXX_H */
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <asm/hardware/cache-l2x0.h> #include <asm/hardware/cache-l2x0.h>
#include <mach/cns3xxx.h> #include "cns3xxx.h"
#include "core.h" #include "core.h"
static struct map_desc cns3xxx_io_desc[] __initdata = { static struct map_desc cns3xxx_io_desc[] __initdata = {
......
...@@ -16,9 +16,8 @@ ...@@ -16,9 +16,8 @@
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <mach/cns3xxx.h> #include "cns3xxx.h"
#include <mach/irqs.h> #include "pm.h"
#include <mach/pm.h>
#include "core.h" #include "core.h"
#include "devices.h" #include "devices.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
*/ */
#include <asm/mach-types.h> #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_DR(base) (*(volatile unsigned char *)((base) + 0x00))
#define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c))
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <mach/cns3xxx.h> #include "cns3xxx.h"
#include "core.h" #include "core.h"
enum cns3xxx_access_type { enum cns3xxx_access_type {
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/atomic.h> #include <linux/atomic.h>
#include <mach/cns3xxx.h> #include "cns3xxx.h"
#include <mach/pm.h> #include "pm.h"
#include "core.h" #include "core.h"
void cns3xxx_pwr_clk_en(unsigned int block) void cns3xxx_pwr_clk_en(unsigned int block)
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/mmc/host.h> #include <linux/mmc/host.h>
#include <linux/module.h> #include <linux/module.h>
#include <mach/cns3xxx.h>
#include "sdhci-pltfm.h" #include "sdhci-pltfm.h"
static unsigned int sdhci_cns3xxx_get_max_clk(struct sdhci_host *host) static unsigned int sdhci_cns3xxx_get_max_clk(struct sdhci_host *host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment