mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
i2c: imx_lpi2c: fix typo and register base address format
Output the register base address in hex notation. Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
517066a709
commit
7677c0de14
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ static int bus_i2c_send(struct udevice *bus, u8 *txbuf, int len)
|
||||||
while (len--) {
|
while (len--) {
|
||||||
result = bus_i2c_wait_for_tx_ready(regs);
|
result = bus_i2c_wait_for_tx_ready(regs);
|
||||||
if (result) {
|
if (result) {
|
||||||
debug("i2c: send wait fot tx ready: %d\n", result);
|
debug("i2c: send wait for tx ready: %d\n", result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
writel(*txbuf++, ®s->mtdr);
|
writel(*txbuf++, ®s->mtdr);
|
||||||
|
@ -482,7 +482,7 @@ static int imx_lpi2c_probe(struct udevice *bus)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
debug("i2c : controller bus %d at %lu , speed %d: ",
|
debug("i2c : controller bus %d at 0x%lx , speed %d: ",
|
||||||
bus->seq, i2c_bus->base,
|
bus->seq, i2c_bus->base,
|
||||||
i2c_bus->speed);
|
i2c_bus->speed);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue