Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130574
b: refs/heads/master
c: 4ca3803
h: refs/heads/master
v: v3
  • Loading branch information
Phil Sutter authored and Ralf Baechle committed Jan 30, 2009
1 parent 06440e2 commit 8fd1dba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36f2db4b9c01689b1311d57a6297022d82000185
refs/heads/master: 4ca3803f81bca9081f17ef67ffca8b11790f608d
27 changes: 0 additions & 27 deletions trunk/arch/mips/rb532/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,6 @@ static struct resource rb532_gpio_reg0_res[] = {
}
};

void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val)
{
unsigned long flags;
unsigned data;
unsigned i = 0;

spin_lock_irqsave(&dev3.lock, flags);

data = readl(IDT434_REG_BASE + reg_offs);
for (i = 0; i != len; ++i) {
if (val & (1 << i))
data |= (1 << (i + bit));
else
data &= ~(1 << (i + bit));
}
writel(data, (IDT434_REG_BASE + reg_offs));

spin_unlock_irqrestore(&dev3.lock, flags);
}
EXPORT_SYMBOL(set_434_reg);

unsigned get_434_reg(unsigned reg_offs)
{
return readl(IDT434_REG_BASE + reg_offs);
}
EXPORT_SYMBOL(get_434_reg);

/* rb532_set_bit - sanely set a bit
*
* bitval: new value for the bit
Expand Down

0 comments on commit 8fd1dba

Please sign in to comment.