Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91200
b: refs/heads/master
c: b590bc5
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Nicolas Pitre committed Mar 27, 2008
1 parent 8e6c4e5 commit ca008f8
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da14d88e90d476b315e5e9c3e3ffa940cb670c6d
refs/heads/master: b590bc5cd0ced1019f02ca7c9b8594482304987f
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-orion/addr-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/init.h>
#include <linux/mbus.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include "common.h"

/*
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-orion/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/spinlock.h>
#include <linux/bitops.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/arch/orion.h>
#include "common.h"

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-orion/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/init.h>
#include <linux/irq.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/arch/orion.h>
#include <asm/plat-orion/irq.h>
#include "common.h"
Expand Down
15 changes: 15 additions & 0 deletions trunk/include/asm-arm/arch-orion/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,19 @@ static inline void __iomem *__io(unsigned long addr)
#define __io(a) __io(a)
#define __mem_pci(a) (a)


/*****************************************************************************
* Helpers to access Orion registers
****************************************************************************/
#define orion_read(r) __raw_readl(r)
#define orion_write(r, val) __raw_writel(val, r)

/*
* These are not preempt-safe. Locks, if needed, must be taken
* care of by the caller.
*/
#define orion_setbits(r, mask) orion_write((r), orion_read(r) | (mask))
#define orion_clrbits(r, mask) orion_write((r), orion_read(r) & ~(mask))


#endif
20 changes: 1 addition & 19 deletions trunk/include/asm-arm/arch-orion/orion.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,5 @@

#define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300)

#ifndef __ASSEMBLY__

/*******************************************************************************
* Helpers to access Orion registers
******************************************************************************/
#include <asm/types.h>
#include <asm/io.h>

#define orion_read(r) __raw_readl(r)
#define orion_write(r, val) __raw_writel(val, r)

/*
* These are not preempt safe. Locks, if needed, must be taken care by caller.
*/
#define orion_setbits(r, mask) orion_write((r), orion_read(r) | (mask))
#define orion_clrbits(r, mask) orion_write((r), orion_read(r) & ~(mask))

#endif /* __ASSEMBLY__ */

#endif /* __ASM_ARCH_ORION_H__ */
#endif

0 comments on commit ca008f8

Please sign in to comment.