Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8983
b: refs/heads/master
c: 917afce
h: refs/heads/master
i:
  8981: 56bc44e
  8979: 9d24a25
  8975: 7a3228f
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Sep 15, 2005
1 parent 5cd2502 commit c9263aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: fea2efe3bba15f0aa8f840fbe052699808187cb6
refs/heads/master: 917afce1000d978dfd3f07da5da9d864bc49c77e
14 changes: 9 additions & 5 deletions trunk/include/asm-arm/arch-ixp2000/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,24 @@

#include <asm/system.h> /* Pickup local_irq_ functions */

static inline void ixp2000_reg_write(volatile unsigned long *reg, unsigned long val)
static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
{
volatile unsigned long dummy;
unsigned long dummy;
unsigned long flags;

local_irq_save(flags);
*reg = val;
*((volatile unsigned long *)reg) = val;
barrier();
dummy = *reg;
dummy = *((volatile unsigned long *)reg);
local_irq_restore(flags);
}
#else
#define ixp2000_reg_write(reg, val) (*reg = val)
static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
{
*((volatile unsigned long *)reg) = val;
}
#endif /* IXDP2400 || IXDP2401 */
#define ixp2000_reg_read(reg) (*((volatile unsigned long *)reg))

/*
* Boards may multiplex different devices on the 2nd channel of
Expand Down

0 comments on commit c9263aa

Please sign in to comment.