aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2016-07-14 16:51:39 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-07-14 16:51:39 +0100
commit79a9f323a80b802ca98895d1c2d4aaf23cff815a (patch)
treec114f5c1d43f43419fbc550c8ce0333520fe3127 /include
parent2e1f05020b80677f66b14277b7b1e8d4bb175640 (diff)
downloadqemu-79a9f323a80b802ca98895d1c2d4aaf23cff815a.zip
qemu-79a9f323a80b802ca98895d1c2d4aaf23cff815a.tar.gz
qemu-79a9f323a80b802ca98895d1c2d4aaf23cff815a.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/misc/aspeed_scu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/misc/aspeed_scu.h b/include/hw/misc/aspeed_scu.h
index 6b8e46f..fdfd982 100644
--- a/include/hw/misc/aspeed_scu.h
+++ b/include/hw/misc/aspeed_scu.h
@@ -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 */