mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
lpc32xx: i2c: fix base address
The lpc32xx driver was not obtaining the per-device base address correctly from the device tree. Fix the FIXME in order to get the correct base address. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
parent
1028403f2f
commit
3f70acdb7d
1 changed files with 1 additions and 5 deletions
|
@ -282,11 +282,7 @@ static int lpc32xx_i2c_probe(struct udevice *bus)
|
|||
{
|
||||
struct lpc32xx_i2c_dev *dev = dev_get_plat(bus);
|
||||
|
||||
/*
|
||||
* FIXME: This is not permitted
|
||||
* dev_seq(bus) = dev->index;
|
||||
*/
|
||||
|
||||
dev->base = dev_read_addr_ptr(bus);
|
||||
__i2c_init(dev->base, dev->speed, 0, dev->index);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue