OSDN Git Service

hw/i2c/aspeed: Add support for buffer organization
authorHang Yu <francis_yuu@stu.pku.edu.cn>
Sat, 12 Aug 2023 06:52:30 +0000 (14:52 +0800)
committerCédric Le Goater <clg@kaod.org>
Fri, 1 Sep 2023 09:40:04 +0000 (11:40 +0200)
commitacc3d20ab21b1e55619089d15ac29cf26e373fc9
treefc777a4932eff4240ac29d371b2e8f487e177872
parent961faf3ddbd8ffcdf776bbcf88af0bc97218114a
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>
hw/i2c/aspeed_i2c.c
include/hw/i2c/aspeed_i2c.h