Commit fb7b0e27 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[ARM PATCH] 2111/1: restrict scope of PXA2xx register definitions

Patch from Nicolas Pitre

It's a rather bad idea to have psa-regs.h included all the time.
It's rather large and likely to create namespace clashes, as well
as slowing down the build unnecessarily.

Better include it explicitly where it is actually needed.

Signed-off-by: Nicolas Pitre 
parent 82803ae3
......@@ -35,6 +35,10 @@
#include <asm/hardware/sa1111.h>
#ifdef CONFIG_ARCH_PXA
#include <asm/arch/pxa-regs.h>
#endif
extern void __init sa1110_mb_enable(void);
/*
......
......@@ -23,6 +23,7 @@
#include <asm/hardware.h>
#include <asm/dma.h>
#include <asm/arch/pxa-regs.h>
static struct dma_channel {
char *name;
......
......@@ -30,6 +30,7 @@
#include <asm/pgtable.h>
#include <asm/mach/map.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/udc.h>
#include <asm/arch/pxafb.h>
#include <asm/arch/mmc.h>
......
......@@ -27,6 +27,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/idp.h>
#include "generic.h"
......
......@@ -20,6 +20,7 @@
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include "generic.h"
......
......@@ -17,6 +17,7 @@
#include <asm/hardware.h>
#include <asm/leds.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include "leds.h"
......
......@@ -17,6 +17,7 @@
#include <asm/leds.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include "leds.h"
......
......@@ -29,6 +29,7 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include <asm/arch/udc.h>
#include <asm/arch/pxafb.h>
......
......@@ -31,6 +31,7 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include <asm/arch/pxafb.h>
......
......@@ -19,6 +19,7 @@
#include <asm/hardware.h>
#include <asm/memory.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
......
......@@ -22,6 +22,7 @@
#include <linux/pm.h>
#include <asm/hardware.h>
#include <asm/arch/pxa-regs.h>
#include "generic.h"
......
......@@ -14,6 +14,7 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <asm/arch/pxa-regs.h>
#include <linux/init.h>
#include <linux/pm.h>
......
......@@ -27,6 +27,7 @@
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <asm/arch/pxa-regs.h>
static inline unsigned long pxa_get_rtc_time(void)
......
......@@ -33,6 +33,7 @@
#include <asm/irq.h>
#include <asm/sizes.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mmc.h>
#include "pxamci.h"
......
......@@ -28,6 +28,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/system.h>
#include <asm/arch/pxa-regs.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/ss.h>
......
......@@ -25,6 +25,7 @@
#include <asm/hardware.h>
#include <asm/hardware/sa1111.h>
#include <asm/mach-types.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/lubbock.h>
#include "sa1111_generic.h"
......
......@@ -24,6 +24,7 @@
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/mainstone.h>
#include "soc_common.h"
......
......@@ -49,6 +49,11 @@
#include "soc_common.h"
/* FIXME: platform dependent resource declaration has to move out of this file */
#ifdef CONFIG_ARCH_PXA
#include <asm/arch/pxa-regs.h>
#endif
#ifdef DEBUG
static int pc_debug;
......
......@@ -40,6 +40,7 @@
#include <asm/io.h>
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/arch/pxa-regs.h>
#if defined(CONFIG_SERIAL_PXA_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
#define SUPPORT_SYSRQ
......
......@@ -54,6 +54,7 @@
#include <asm/mach-types.h>
#include <asm/unaligned.h>
#include <asm/hardware.h>
#include <asm/arch/pxa-regs.h>
#include <linux/usb_ch9.h>
#include <linux/usb_gadget.h>
......
......@@ -43,6 +43,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/bitfield.h>
#include <asm/arch/pxafb.h>
......
......@@ -72,8 +72,6 @@ typedef struct { volatile u32 offset[4096]; } __regbase;
#endif
#include "pxa-regs.h"
#ifndef __ASSEMBLY__
/*
......
......@@ -15,17 +15,6 @@
#include <linux/config.h>
// FIXME hack so that SA-1111.h will work [cb]
#ifndef __ASSEMBLY__
typedef unsigned short Word16 ;
typedef unsigned int Word32 ;
typedef Word32 Word ;
typedef Word Quad [4] ;
typedef void *Address ;
typedef void (*ExcpHndlr) (void) ;
#endif
/*
* PXA Chip selects
*/
......
......@@ -11,6 +11,7 @@
*/
#include "hardware.h"
#include "pxa-regs.h"
static inline void arch_idle(void)
{
......
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