mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
aspeed/smc: Introduce a new addr_width() class handler
The AST2400 SPI controller has a transitional HW interface and it stores the address width currently in use in a different register than all the other SMC controllers. It needs special handling when working in 4B mode. Make it clear through a class handler. This also removes another use of the segments array. Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
71255c48e7
commit
a779e37c68
2 changed files with 13 additions and 7 deletions
|
@ -111,6 +111,7 @@ struct AspeedSMCClass {
|
|||
void (*reg_to_segment)(const AspeedSMCState *s, uint32_t reg,
|
||||
AspeedSegments *seg);
|
||||
void (*dma_ctrl)(AspeedSMCState *s, uint32_t value);
|
||||
int (*addr_width)(const AspeedSMCState *s);
|
||||
};
|
||||
|
||||
#endif /* ASPEED_SMC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue