aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i2c
diff options
context:
space:
mode:
authorHang Yu <francis_yuu@stu.pku.edu.cn>2023-08-12 14:52:30 +0800
committerCédric Le Goater <clg@kaod.org>2023-09-01 11:40:04 +0200
commitacc3d20ab21b1e55619089d15ac29cf26e373fc9 (patch)
treefc777a4932eff4240ac29d371b2e8f487e177872 /include/hw/i2c
parent961faf3ddbd8ffcdf776bbcf88af0bc97218114a (diff)
downloadqemu-acc3d20ab21b1e55619089d15ac29cf26e373fc9.zip
qemu-acc3d20ab21b1e55619089d15ac29cf26e373fc9.tar.gz
qemu-acc3d20ab21b1e55619089d15ac29cf26e373fc9.tar.bz2
hw/i2c/aspeed: Add support for buffer organization
Added support for the buffer organization option in pool buffer control register.when set to 1,The buffer is split into two parts: Lower 16 bytes for Tx and higher 16 bytes for Rx. Signed-off-by: Hang Yu <francis_yuu@stu.pku.edu.cn> Reviewed-by: Cédric Le Goater <clg@kaod.org> [ clg: checkpatch fixes ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/i2c')
-rw-r--r--include/hw/i2c/aspeed_i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i2c/aspeed_i2c.h b/include/hw/i2c/aspeed_i2c.h
index 2e1e15a..a064479 100644
--- a/include/hw/i2c/aspeed_i2c.h
+++ b/include/hw/i2c/aspeed_i2c.h
@@ -143,6 +143,7 @@ REG32(I2CD_POOL_CTRL, 0x1C) /* Pool Buffer Control */
SHARED_FIELD(RX_SIZE, 16, 5)
SHARED_FIELD(TX_COUNT, 8, 5)
FIELD(I2CD_POOL_CTRL, OFFSET, 2, 6) /* AST2400 */
+ SHARED_FIELD(BUF_ORGANIZATION, 0, 1) /* AST2600 */
REG32(I2CD_BYTE_BUF, 0x20) /* Transmit/Receive Byte Buffer */
SHARED_FIELD(RX_BUF, 8, 8)
SHARED_FIELD(TX_BUF, 0, 8)