mirror of
https://github.com/smaeul/u-boot.git
synced 2025-11-26 22:01:10 +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
@ -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…
x
Reference in New Issue
Block a user