mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
ast2400: externalize revision numbers
AST2400_A0_SILICON_REV is defined twice. Fix this by including the definition in the header file as well as the routine to check if a silicon revision is supported. It will useful to reuse in other controllers. Let's add also AST2500_A0_SILICON_REV for future use. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-id: 1467994016-11678-5-git-send-email-clg@kaod.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2e1f05020b
commit
79a9f323a8
3 changed files with 6 additions and 5 deletions
|
@ -31,4 +31,9 @@ typedef struct AspeedSCUState {
|
|||
uint32_t hw_strap2;
|
||||
} AspeedSCUState;
|
||||
|
||||
#define AST2400_A0_SILICON_REV 0x02000303U
|
||||
#define AST2500_A0_SILICON_REV 0x04000303U
|
||||
|
||||
extern bool is_supported_silicon_rev(uint32_t silicon_rev);
|
||||
|
||||
#endif /* ASPEED_SCU_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue