Commit 02aa06bc authored by viresh kumar's avatar viresh kumar Committed by Russell King

ARM: 6788/1: SPEAr: Include mach/hardware.h instead of mach/spear.h

This patch makes inclusion of hardware.h and spear.h consistent over all spear
variants. Now we will include hardware.h, wherever we need to use hardware
macros. spear.h will be automatically included by hardware.h
Signed-off-by: default avatarViresh Kumar <viresh.kumar@st.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 410782be
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <asm/hardware/vic.h> #include <asm/hardware/vic.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/spear.h>
.macro disable_fiq .macro disable_fiq
.endm .endm
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define __MACH_HARDWARE_H #define __MACH_HARDWARE_H
#include <plat/hardware.h> #include <plat/hardware.h>
#include <mach/spear.h>
/* Vitual to physical translation of statically mapped space */ /* Vitual to physical translation of statically mapped space */
#define IO_ADDRESS(x) (x | 0xF0000000) #define IO_ADDRESS(x) (x | 0xF0000000)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef __MACH_MISC_REGS_H #ifndef __MACH_MISC_REGS_H
#define __MACH_MISC_REGS_H #define __MACH_MISC_REGS_H
#include <mach/spear.h> #include <mach/hardware.h>
#define MISC_BASE IOMEM(VA_SPEAR3XX_ICM3_MISC_REG_BASE) #define MISC_BASE IOMEM(VA_SPEAR3XX_ICM3_MISC_REG_BASE)
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#ifndef __MACH_SPEAR3XX_H #ifndef __MACH_SPEAR3XX_H
#define __MACH_SPEAR3XX_H #define __MACH_SPEAR3XX_H
#include <mach/hardware.h>
#include <mach/spear300.h> #include <mach/spear300.h>
#include <mach/spear310.h> #include <mach/spear310.h>
#include <mach/spear320.h> #include <mach/spear320.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <plat/shirq.h> #include <plat/shirq.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* pad multiplexing support */ /* pad multiplexing support */
/* muxing registers */ /* muxing registers */
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* padmux devices to enable */ /* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = { static struct pmx_dev *pmx_devs[] = {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <plat/shirq.h> #include <plat/shirq.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* pad multiplexing support */ /* pad multiplexing support */
/* muxing registers */ /* muxing registers */
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* padmux devices to enable */ /* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = { static struct pmx_dev *pmx_devs[] = {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <plat/shirq.h> #include <plat/shirq.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* pad multiplexing support */ /* pad multiplexing support */
/* muxing registers */ /* muxing registers */
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* padmux devices to enable */ /* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = { static struct pmx_dev *pmx_devs[] = {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* Add spear3xx machines common devices here */ /* Add spear3xx machines common devices here */
/* gpio device registration */ /* gpio device registration */
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <asm/hardware/vic.h> #include <asm/hardware/vic.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/spear.h>
.macro disable_fiq .macro disable_fiq
.endm .endm
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define __MACH_HARDWARE_H #define __MACH_HARDWARE_H
#include <plat/hardware.h> #include <plat/hardware.h>
#include <mach/spear.h>
/* Vitual to physical translation of statically mapped space */ /* Vitual to physical translation of statically mapped space */
#define IO_ADDRESS(x) (x | 0xF0000000) #define IO_ADDRESS(x) (x | 0xF0000000)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef __MACH_MISC_REGS_H #ifndef __MACH_MISC_REGS_H
#define __MACH_MISC_REGS_H #define __MACH_MISC_REGS_H
#include <mach/spear.h> #include <mach/hardware.h>
#define MISC_BASE IOMEM(VA_SPEAR6XX_ICM3_MISC_REG_BASE) #define MISC_BASE IOMEM(VA_SPEAR6XX_ICM3_MISC_REG_BASE)
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#ifndef __MACH_SPEAR6XX_H #ifndef __MACH_SPEAR6XX_H
#define __MACH_SPEAR6XX_H #define __MACH_SPEAR6XX_H
#include <mach/hardware.h>
#include <mach/spear600.h> #include <mach/spear600.h>
#define SPEAR6XX_ML_SDRAM_BASE 0x00000000 #define SPEAR6XX_ML_SDRAM_BASE 0x00000000
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
/* Add spear600 specific devices here */ /* Add spear600 specific devices here */
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/spear.h> #include <mach/hardware.h>
static struct amba_device *amba_devs[] __initdata = { static struct amba_device *amba_devs[] __initdata = {
&gpio_device[0], &gpio_device[0],
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/hardware.h>
#include <mach/irqs.h> #include <mach/irqs.h>
#include <mach/spear.h>
/* Add spear6xx machines common devices here */ /* Add spear6xx machines common devices here */
/* uart device registration */ /* uart device registration */
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
*/ */
#include <linux/amba/serial.h> #include <linux/amba/serial.h>
#include <mach/spear.h> #include <mach/hardware.h>
.macro addruart, rp, rv .macro addruart, rp, rv
mov \rp, #SPEAR_DBG_UART_BASE @ Physical base mov \rp, #SPEAR_DBG_UART_BASE @ Physical base
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <asm/hardware/sp810.h> #include <asm/hardware/sp810.h>
#include <mach/spear.h> #include <mach/hardware.h>
static inline void arch_idle(void) static inline void arch_idle(void)
{ {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/amba/serial.h> #include <linux/amba/serial.h>
#include <mach/spear.h> #include <mach/hardware.h>
#ifndef __PLAT_UNCOMPRESS_H #ifndef __PLAT_UNCOMPRESS_H
#define __PLAT_UNCOMPRESS_H #define __PLAT_UNCOMPRESS_H
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <mach/generic.h> #include <mach/generic.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/irqs.h> #include <mach/irqs.h>
#include <mach/spear.h>
/* /*
* We would use TIMER0 and TIMER1 as clockevent and clocksource. * We would use TIMER0 and TIMER1 as clockevent and clocksource.
......
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