diff options
author | Trevor Woerner <twoerner@gmail.com> | 2021-06-10 22:37:06 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-06 14:12:15 -0400 |
commit | 3f70acdb7dc8c274a09e4421f78e25eac33fef76 (patch) | |
tree | b9e97248435375204d19f22f0b462eeba69f6728 | |
parent | 1028403f2f53093f7c17dd57055d1e8da815348f (diff) | |
download | u-boot-3f70acdb7dc8c274a09e4421f78e25eac33fef76.zip u-boot-3f70acdb7dc8c274a09e4421f78e25eac33fef76.tar.gz u-boot-3f70acdb7dc8c274a09e4421f78e25eac33fef76.tar.bz2 |
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>
-rw-r--r-- | drivers/i2c/lpc32xx_i2c.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index 0ae1166..6abff26 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -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; } |