diff options
Diffstat (limited to 'arch/sh/drivers/dma/dmabrg.c')
-rw-r--r-- | arch/sh/drivers/dma/dmabrg.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/sh/drivers/dma/dmabrg.c b/arch/sh/drivers/dma/dmabrg.c index 5e22689c2fcf..72622e307613 100644 --- a/arch/sh/drivers/dma/dmabrg.c +++ b/arch/sh/drivers/dma/dmabrg.c | |||
@@ -86,8 +86,8 @@ static irqreturn_t dmabrg_irq(int irq, void *data) | |||
86 | unsigned long dcr; | 86 | unsigned long dcr; |
87 | unsigned int i; | 87 | unsigned int i; |
88 | 88 | ||
89 | dcr = ctrl_inl(DMABRGCR); | 89 | dcr = __raw_readl(DMABRGCR); |
90 | ctrl_outl(dcr & ~0x00ff0003, DMABRGCR); /* ack all */ | 90 | __raw_writel(dcr & ~0x00ff0003, DMABRGCR); /* ack all */ |
91 | dcr &= dcr >> 8; /* ignore masked */ | 91 | dcr &= dcr >> 8; /* ignore masked */ |
92 | 92 | ||
93 | /* USB stuff, get it out of the way first */ | 93 | /* USB stuff, get it out of the way first */ |
@@ -109,17 +109,17 @@ static irqreturn_t dmabrg_irq(int irq, void *data) | |||
109 | static void dmabrg_disable_irq(unsigned int dmairq) | 109 | static void dmabrg_disable_irq(unsigned int dmairq) |
110 | { | 110 | { |
111 | unsigned long dcr; | 111 | unsigned long dcr; |
112 | dcr = ctrl_inl(DMABRGCR); | 112 | dcr = __raw_readl(DMABRGCR); |
113 | dcr &= ~(1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); | 113 | dcr &= ~(1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); |
114 | ctrl_outl(dcr, DMABRGCR); | 114 | __raw_writel(dcr, DMABRGCR); |
115 | } | 115 | } |
116 | 116 | ||
117 | static void dmabrg_enable_irq(unsigned int dmairq) | 117 | static void dmabrg_enable_irq(unsigned int dmairq) |
118 | { | 118 | { |
119 | unsigned long dcr; | 119 | unsigned long dcr; |
120 | dcr = ctrl_inl(DMABRGCR); | 120 | dcr = __raw_readl(DMABRGCR); |
121 | dcr |= (1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); | 121 | dcr |= (1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); |
122 | ctrl_outl(dcr, DMABRGCR); | 122 | __raw_writel(dcr, DMABRGCR); |
123 | } | 123 | } |
124 | 124 | ||
125 | int dmabrg_request_irq(unsigned int dmairq, void(*handler)(void*), | 125 | int dmabrg_request_irq(unsigned int dmairq, void(*handler)(void*), |
@@ -165,13 +165,13 @@ static int __init dmabrg_init(void) | |||
165 | printk(KERN_INFO "DMABRG: DMAC ch0 not reserved!\n"); | 165 | printk(KERN_INFO "DMABRG: DMAC ch0 not reserved!\n"); |
166 | #endif | 166 | #endif |
167 | 167 | ||
168 | ctrl_outl(0, DMABRGCR); | 168 | __raw_writel(0, DMABRGCR); |
169 | ctrl_outl(0, DMACHCR0); | 169 | __raw_writel(0, DMACHCR0); |
170 | ctrl_outl(0x94000000, DMARSRA); /* enable DMABRG in DMAC 0 */ | 170 | __raw_writel(0x94000000, DMARSRA); /* enable DMABRG in DMAC 0 */ |
171 | 171 | ||
172 | /* enable DMABRG mode, enable the DMAC */ | 172 | /* enable DMABRG mode, enable the DMAC */ |
173 | or = ctrl_inl(DMAOR); | 173 | or = __raw_readl(DMAOR); |
174 | ctrl_outl(or | DMAOR_BRG | DMAOR_DMEN, DMAOR); | 174 | __raw_writel(or | DMAOR_BRG | DMAOR_DMEN, DMAOR); |
175 | 175 | ||
176 | ret = request_irq(DMABRGI0, dmabrg_irq, IRQF_DISABLED, | 176 | ret = request_irq(DMABRGI0, dmabrg_irq, IRQF_DISABLED, |
177 | "DMABRG USB address error", NULL); | 177 | "DMABRG USB address error", NULL); |