ARM: orion5x: clean-up mach/io.h
Move orion5x specific mach/io.h parts into common.h. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Lennert Buytenhek <kernel@wantstofly.org> Acked-by: Nicolas Pitre <nico@linaro.org>
This commit is contained in:
@@ -57,5 +57,14 @@ struct meminfo;
|
|||||||
struct tag;
|
struct tag;
|
||||||
extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
|
extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
* Helpers to access Orion registers
|
||||||
|
****************************************************************************/
|
||||||
|
/*
|
||||||
|
* These are not preempt-safe. Locks, if needed, must be taken
|
||||||
|
* care of by the caller.
|
||||||
|
*/
|
||||||
|
#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
|
||||||
|
#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -18,16 +18,4 @@
|
|||||||
#define __io(a) __typesafe_io(a)
|
#define __io(a) __typesafe_io(a)
|
||||||
#define __mem_pci(a) (a)
|
#define __mem_pci(a) (a)
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
|
||||||
* Helpers to access Orion registers
|
|
||||||
****************************************************************************/
|
|
||||||
/*
|
|
||||||
* These are not preempt-safe. Locks, if needed, must be taken
|
|
||||||
* care of by the caller.
|
|
||||||
*/
|
|
||||||
#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
|
|
||||||
#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include <asm/mach/pci.h>
|
#include <asm/mach/pci.h>
|
||||||
#include <plat/pcie.h>
|
#include <plat/pcie.h>
|
||||||
#include <plat/addr-map.h>
|
#include <plat/addr-map.h>
|
||||||
|
#include <mach/orion5x.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
#include <linux/mv643xx_eth.h>
|
#include <linux/mv643xx_eth.h>
|
||||||
#include <linux/timex.h>
|
#include <linux/timex.h>
|
||||||
#include <linux/serial_reg.h>
|
#include <linux/serial_reg.h>
|
||||||
|
#include <mach/orion5x.h>
|
||||||
#include "tsx09-common.h"
|
#include "tsx09-common.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user