mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
hw/i2c/aspeed: Fix R_I2CD_FUN_CTRL reference
Very minor, doesn't effect functionality, but this is supposed to be
R_I2CC_FUN_CTRL (new-mode, not old-mode).
Fixes: ba2cccd64e
("aspeed: i2c: Add new mode support")
Signed-off-by: Peter Delevoryas <pdel@fb.com>
Message-Id: <20220630045133.32251-2-me@pjd.dev>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
2a7a5d5cc4
commit
ceb3ff0e80
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ static void aspeed_i2c_bus_new_write(AspeedI2CBus *bus, hwaddr offset,
|
||||||
__func__);
|
__func__);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bus->regs[R_I2CD_FUN_CTRL] = value & 0x007dc3ff;
|
bus->regs[R_I2CC_FUN_CTRL] = value & 0x007dc3ff;
|
||||||
break;
|
break;
|
||||||
case A_I2CC_AC_TIMING:
|
case A_I2CC_AC_TIMING:
|
||||||
bus->regs[R_I2CC_AC_TIMING] = value & 0x1ffff0ff;
|
bus->regs[R_I2CC_AC_TIMING] = value & 0x1ffff0ff;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue