diff options
author | Hao Wu <wuhaotsh@google.com> | 2025-02-19 10:45:56 -0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-20 15:22:21 +0000 |
commit | c99064e63748f993457f1fe658d05c662c0134f1 (patch) | |
tree | 96de67605cdff874c4364ca467e9e54ade82bd8e /include/hw/misc/npcm_gcr.h | |
parent | 506af2330cd0ef684a48aad12640a7bea8e95247 (diff) | |
download | qemu-c99064e63748f993457f1fe658d05c662c0134f1.zip qemu-c99064e63748f993457f1fe658d05c662c0134f1.tar.gz qemu-c99064e63748f993457f1fe658d05c662c0134f1.tar.bz2 |
hw/misc: Move NPCM7XX GCR to NPCM GCR
A lot of NPCM7XX and NPCM8XX GCR modules share the same code,
this commit moves the NPCM7XX GCR to NPCM GCR for these
properties.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20250219184609.1839281-6-wuhaotsh@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/misc/npcm_gcr.h')
-rw-r--r-- | include/hw/misc/npcm_gcr.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/hw/misc/npcm_gcr.h b/include/hw/misc/npcm_gcr.h index 9b49989..6d3d00d 100644 --- a/include/hw/misc/npcm_gcr.h +++ b/include/hw/misc/npcm_gcr.h @@ -55,7 +55,7 @@ */ #define NPCM7XX_GCR_NR_REGS (0x148 / sizeof(uint32_t)) -struct NPCM7xxGCRState { +typedef struct NPCMGCRState { SysBusDevice parent; MemoryRegion iomem; @@ -65,9 +65,10 @@ struct NPCM7xxGCRState { uint32_t reset_pwron; uint32_t reset_mdlr; uint32_t reset_intcr3; -}; +} NPCMGCRState; +#define TYPE_NPCM_GCR "npcm-gcr" #define TYPE_NPCM7XX_GCR "npcm7xx-gcr" -OBJECT_DECLARE_SIMPLE_TYPE(NPCM7xxGCRState, NPCM7XX_GCR) +OBJECT_DECLARE_SIMPLE_TYPE(NPCMGCRState, NPCM_GCR) #endif /* NPCM_GCR_H */ |