mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
hw: arm: allwinner-sramc: Add SRAM Controller support for R40
Only a few important registers are added, especially the SRAM_VER register. Signed-off-by: qianfan Zhao <qianfanguijin@163.com> Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
0de1b69315
commit
05def917e1
8 changed files with 271 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "hw/sd/allwinner-sdhost.h"
|
||||
#include "hw/misc/allwinner-r40-ccu.h"
|
||||
#include "hw/misc/allwinner-r40-dramc.h"
|
||||
#include "hw/misc/allwinner-sramc.h"
|
||||
#include "hw/i2c/allwinner-i2c.h"
|
||||
#include "hw/net/allwinner_emac.h"
|
||||
#include "hw/net/allwinner-sun8i-emac.h"
|
||||
|
@ -38,6 +39,7 @@ enum {
|
|||
AW_R40_DEV_SRAM_A2,
|
||||
AW_R40_DEV_SRAM_A3,
|
||||
AW_R40_DEV_SRAM_A4,
|
||||
AW_R40_DEV_SRAMC,
|
||||
AW_R40_DEV_EMAC,
|
||||
AW_R40_DEV_MMC0,
|
||||
AW_R40_DEV_MMC1,
|
||||
|
@ -102,6 +104,7 @@ struct AwR40State {
|
|||
|
||||
ARMCPU cpus[AW_R40_NUM_CPUS];
|
||||
const hwaddr *memmap;
|
||||
AwSRAMCState sramc;
|
||||
AwA10PITState timer;
|
||||
AwSdHostState mmc[AW_R40_NUM_MMCS];
|
||||
AwR40ClockCtlState ccu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue