aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/atmel-mci-regs.h')
-rw-r--r--drivers/mmc/host/atmel-mci-regs.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/mmc/host/atmel-mci-regs.h b/drivers/mmc/host/atmel-mci-regs.h
index c97001e15227..0aa44e679df4 100644
--- a/drivers/mmc/host/atmel-mci-regs.h
+++ b/drivers/mmc/host/atmel-mci-regs.h
@@ -135,10 +135,17 @@
135#define ATMCI_REGS_SIZE 0x100 135#define ATMCI_REGS_SIZE 0x100
136 136
137/* Register access macros */ 137/* Register access macros */
138#define atmci_readl(port,reg) \ 138#ifdef CONFIG_AVR32
139#define atmci_readl(port, reg) \
139 __raw_readl((port)->regs + reg) 140 __raw_readl((port)->regs + reg)
140#define atmci_writel(port,reg,value) \ 141#define atmci_writel(port, reg, value) \
141 __raw_writel((value), (port)->regs + reg) 142 __raw_writel((value), (port)->regs + reg)
143#else
144#define atmci_readl(port, reg) \
145 readl_relaxed((port)->regs + reg)
146#define atmci_writel(port, reg, value) \
147 writel_relaxed((value), (port)->regs + reg)
148#endif
142 149
143/* On AVR chips the Peripheral DMA Controller is not connected to MCI. */ 150/* On AVR chips the Peripheral DMA Controller is not connected to MCI. */
144#ifdef CONFIG_AVR32 151#ifdef CONFIG_AVR32