Commit 9cdae914 authored by Paul Mundt's avatar Paul Mundt

sh: pfc: Convert from ctrl_xxx() to __raw_xxx() I/O routines.

Now that the PFC code is exposed for other architectures, use the common
__raw_xxx() routines instead of the ctrl_xxx() ones. This will be needed
for ARM-based SH-Mobiles amongst others.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent e6d8460a
...@@ -35,11 +35,11 @@ static unsigned long gpio_read_raw_reg(unsigned long reg, ...@@ -35,11 +35,11 @@ static unsigned long gpio_read_raw_reg(unsigned long reg,
{ {
switch (reg_width) { switch (reg_width) {
case 8: case 8:
return ctrl_inb(reg); return __raw_readb(reg);
case 16: case 16:
return ctrl_inw(reg); return __raw_readw(reg);
case 32: case 32:
return ctrl_inl(reg); return __raw_readl(reg);
} }
BUG(); BUG();
...@@ -52,13 +52,13 @@ static void gpio_write_raw_reg(unsigned long reg, ...@@ -52,13 +52,13 @@ static void gpio_write_raw_reg(unsigned long reg,
{ {
switch (reg_width) { switch (reg_width) {
case 8: case 8:
ctrl_outb(data, reg); __raw_writeb(data, reg);
return; return;
case 16: case 16:
ctrl_outw(data, reg); __raw_writew(data, reg);
return; return;
case 32: case 32:
ctrl_outl(data, reg); __raw_writel(data, reg);
return; return;
} }
...@@ -125,13 +125,13 @@ static void gpio_write_reg(unsigned long reg, unsigned long reg_width, ...@@ -125,13 +125,13 @@ static void gpio_write_reg(unsigned long reg, unsigned long reg_width,
switch (reg_width) { switch (reg_width) {
case 8: case 8:
ctrl_outb((ctrl_inb(reg) & mask) | value, reg); __raw_writeb((__raw_readb(reg) & mask) | value, reg);
break; break;
case 16: case 16:
ctrl_outw((ctrl_inw(reg) & mask) | value, reg); __raw_writew((__raw_readw(reg) & mask) | value, reg);
break; break;
case 32: case 32:
ctrl_outl((ctrl_inl(reg) & mask) | value, reg); __raw_writel((__raw_readl(reg) & mask) | value, reg);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment