Skip to content

Commit

Permalink
ARM: orion5x: clean-up mach/io.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Mar 7, 2012
1 parent 9675b88 commit 8a52dd4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
9 changes: 9 additions & 0 deletions arch/arm/mach-orion5x/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,14 @@ struct meminfo;
struct tag;
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
12 changes: 0 additions & 12 deletions arch/arm/mach-orion5x/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,4 @@
#define __io(a) __typesafe_io(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
1 change: 1 addition & 0 deletions arch/arm/mach-orion5x/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/mach/pci.h>
#include <plat/pcie.h>
#include <plat/addr-map.h>
#include <mach/orion5x.h>
#include "common.h"

/*****************************************************************************
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-orion5x/tsx09-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/mv643xx_eth.h>
#include <linux/timex.h>
#include <linux/serial_reg.h>
#include <mach/orion5x.h>
#include "tsx09-common.h"
#include "common.h"

Expand Down

0 comments on commit 8a52dd4

Please sign in to comment.