Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56345
b: refs/heads/master
c: 030f481
h: refs/heads/master
i:
  56343: ab426aa
v: v3
  • Loading branch information
Andrew Victor authored and Russell King committed May 11, 2007
1 parent 6009ddd commit 2810a9f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 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: f7538ac95200fd122fd84c8f85ff1130ee7645b5
refs/heads/master: 030f4810e782e541468d36c27e721b582b7820a4
17 changes: 0 additions & 17 deletions trunk/include/asm-arm/arch-at91/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,5 @@
/* Clocks */
#define AT91_SLOW_CLOCK 32768 /* slow clock */

#ifndef __ASSEMBLY__
#include <asm/io.h>

static inline unsigned int at91_sys_read(unsigned int reg_offset)
{
void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;

return __raw_readl(addr + reg_offset);
}

static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
{
void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;

__raw_writel(value, addr + reg_offset);
}
#endif

#endif
18 changes: 18 additions & 0 deletions trunk/include/asm-arm/arch-at91/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,22 @@
#define __mem_pci(a) (a)


#ifndef __ASSEMBLY__

static inline unsigned int at91_sys_read(unsigned int reg_offset)
{
void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;

return __raw_readl(addr + reg_offset);
}

static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
{
void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;

__raw_writel(value, addr + reg_offset);
}

#endif

#endif
1 change: 1 addition & 0 deletions trunk/include/asm-arm/arch-at91/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef __ASM_ARCH_IRQS_H
#define __ASM_ARCH_IRQS_H

#include <asm/io.h>
#include <asm/arch/at91_aic.h>

#define NR_AIC_IRQS 32
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/arch-at91/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef __ASM_ARCH_UNCOMPRESS_H
#define __ASM_ARCH_UNCOMPRESS_H

#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/arch/at91_dbgu.h>

/*
Expand Down

0 comments on commit 2810a9f

Please sign in to comment.