mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/i2c/aspeed: support to set the different memory size
According to the datasheet of ASPEED SOCs, an I2C controller owns 8KB of register space for AST2700, owns 4KB of register space for AST2600, AST2500 and AST2400, and owns 64KB of register space for AST1030. It set the memory region size 4KB by default and it does not compatible register space for AST2700. Introduce a new class attribute to set the I2C controller memory size for different ASPEED SOCs. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
11bea810f7
commit
f2202be278
2 changed files with 6 additions and 2 deletions
|
@ -283,7 +283,7 @@ struct AspeedI2CClass {
|
|||
uint8_t *(*bus_pool_base)(AspeedI2CBus *);
|
||||
bool check_sram;
|
||||
bool has_dma;
|
||||
|
||||
uint64_t mem_size;
|
||||
};
|
||||
|
||||
static inline bool aspeed_i2c_is_new_mode(AspeedI2CState *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue