diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-04-23 15:58:17 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2007-04-23 15:58:17 -0500 |
commit | 396955fed24c301701c83558fc6f7eadd909397b (patch) | |
tree | e022bf6f768718ce06a29280f3dfa3a0a60f90f3 /cpu/at32ap/pio2.h | |
parent | 6fbf261f8df294e589cfadebebe5468e3c0f29e9 (diff) | |
parent | 14da5f7675bbb427c469e3f45006e027b6e21db9 (diff) |
Merge git://www.denx.de/git/u-boot
Diffstat (limited to 'cpu/at32ap/pio2.h')
-rw-r--r-- | cpu/at32ap/pio2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu/at32ap/pio2.h b/cpu/at32ap/pio2.h index 6b79de3c7..9719ea8c4 100644 --- a/cpu/at32ap/pio2.h +++ b/cpu/at32ap/pio2.h @@ -36,9 +36,9 @@ #define PIO2_OWSR 0x00a8 /* Register access macros */ -#define pio2_readl(port,reg) \ - readl((port)->regs + PIO2_##reg) -#define pio2_writel(port,reg,value) \ - writel((value), (port)->regs + PIO2_##reg) +#define pio2_readl(base,reg) \ + readl((void *)base + PIO2_##reg) +#define pio2_writel(base,reg,value) \ + writel((value), (void *)base + PIO2_##reg) #endif /* __CPU_AT32AP_PIO2_H__ */ |