diff options
Diffstat (limited to 'arch/mips/rb532/gpio.c')
-rw-r--r-- | arch/mips/rb532/gpio.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index 6229173946ad..f33868159826 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c | |||
@@ -50,33 +50,6 @@ static struct resource rb532_gpio_reg0_res[] = { | |||
50 | } | 50 | } |
51 | }; | 51 | }; |
52 | 52 | ||
53 | void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val) | ||
54 | { | ||
55 | unsigned long flags; | ||
56 | unsigned data; | ||
57 | unsigned i = 0; | ||
58 | |||
59 | spin_lock_irqsave(&dev3.lock, flags); | ||
60 | |||
61 | data = readl(IDT434_REG_BASE + reg_offs); | ||
62 | for (i = 0; i != len; ++i) { | ||
63 | if (val & (1 << i)) | ||
64 | data |= (1 << (i + bit)); | ||
65 | else | ||
66 | data &= ~(1 << (i + bit)); | ||
67 | } | ||
68 | writel(data, (IDT434_REG_BASE + reg_offs)); | ||
69 | |||
70 | spin_unlock_irqrestore(&dev3.lock, flags); | ||
71 | } | ||
72 | EXPORT_SYMBOL(set_434_reg); | ||
73 | |||
74 | unsigned get_434_reg(unsigned reg_offs) | ||
75 | { | ||
76 | return readl(IDT434_REG_BASE + reg_offs); | ||
77 | } | ||
78 | EXPORT_SYMBOL(get_434_reg); | ||
79 | |||
80 | /* rb532_set_bit - sanely set a bit | 53 | /* rb532_set_bit - sanely set a bit |
81 | * | 54 | * |
82 | * bitval: new value for the bit | 55 | * bitval: new value for the bit |