Skip to content

Commit

Permalink
ARM: 6788/1: SPEAr: Include mach/hardware.h instead of mach/spear.h
Browse files Browse the repository at this point in the history
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: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
viresh kumar authored and Russell King committed Mar 9, 2011
1 parent 410782b commit 02aa06b
Show file tree
Hide file tree
Showing 22 changed files with 17 additions and 20 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-spear3xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <asm/hardware/vic.h>
#include <mach/hardware.h>
#include <mach/spear.h>

.macro disable_fiq
.endm
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-spear3xx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define __MACH_HARDWARE_H

#include <plat/hardware.h>
#include <mach/spear.h>

/* Vitual to physical translation of statically mapped space */
#define IO_ADDRESS(x) (x | 0xF0000000)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/include/mach/misc_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __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)

Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-spear3xx/include/mach/spear.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef __MACH_SPEAR3XX_H
#define __MACH_SPEAR3XX_H

#include <mach/hardware.h>
#include <mach/spear300.h>
#include <mach/spear310.h>
#include <mach/spear320.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear300.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear300_evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear310.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear310_evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear320.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear320_evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* padmux devices to enable */
static struct pmx_dev *pmx_devs[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <asm/irq.h>
#include <asm/mach/arch.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* Add spear3xx machines common devices here */
/* gpio device registration */
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-spear6xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <asm/hardware/vic.h>
#include <mach/hardware.h>
#include <mach/spear.h>

.macro disable_fiq
.endm
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-spear6xx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define __MACH_HARDWARE_H

#include <plat/hardware.h>
#include <mach/spear.h>

/* Vitual to physical translation of statically mapped space */
#define IO_ADDRESS(x) (x | 0xF0000000)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/include/mach/misc_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __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)

Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-spear6xx/include/mach/spear.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef __MACH_SPEAR6XX_H
#define __MACH_SPEAR6XX_H

#include <mach/hardware.h>
#include <mach/spear600.h>

#define SPEAR6XX_ML_SDRAM_BASE 0x00000000
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/spear600.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/ptrace.h>
#include <asm/irq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

/* Add spear600 specific devices here */

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/spear600_evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <mach/hardware.h>

static struct amba_device *amba_devs[] __initdata = {
&gpio_device[0],
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/spear6xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <asm/irq.h>
#include <asm/mach/arch.h>
#include <mach/generic.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/spear.h>

/* Add spear6xx machines common devices here */
/* uart device registration */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-spear/include/plat/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

#include <linux/amba/serial.h>
#include <mach/spear.h>
#include <mach/hardware.h>

.macro addruart, rp, rv
mov \rp, #SPEAR_DBG_UART_BASE @ Physical base
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-spear/include/plat/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <linux/io.h>
#include <asm/hardware/sp810.h>
#include <mach/spear.h>
#include <mach/hardware.h>

static inline void arch_idle(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-spear/include/plat/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <linux/io.h>
#include <linux/amba/serial.h>
#include <mach/spear.h>
#include <mach/hardware.h>

#ifndef __PLAT_UNCOMPRESS_H
#define __PLAT_UNCOMPRESS_H
Expand Down
1 change: 0 additions & 1 deletion arch/arm/plat-spear/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <mach/generic.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/spear.h>

/*
* We would use TIMER0 and TIMER1 as clockevent and clocksource.
Expand Down

0 comments on commit 02aa06b

Please sign in to comment.