summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorJason Liu <jason.hui.liu@nxp.com>2017-07-13 10:40:54 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:27:28 +0800
commit4c998a8ec68aa49a7dab3ca1224045b1d37ec944 (patch)
treeec2f7065688d3890de446748822df592a98e14e8 /include/soc
parent29958f4fb3294d74b831f109815041d582da2c50 (diff)
MLK-16005-1 drivers: soc: refine the imx8 soc revision support
This patch is to refine the imx8 soc revision support. The imx8qm and imx8qxp will go through the SCU API to get the silicon ID and REVISION. imx8mq will go through the anatop interface to get the ID/REV. Since the silicon ID/REV need be set as early as possible, thus refine it by using the early_initcall for the early initialization. For the SCU API interface, this need be called after the MU interface initialized. Signed-off-by: Jason Liu <jason.hui.liu@nxp.com> Reviewed-by: Anson Huang <anson.huang@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx8/soc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/soc/imx8/soc.h b/include/soc/imx8/soc.h
new file mode 100644
index 000000000000..70c75fada62b
--- /dev/null
+++ b/include/soc/imx8/soc.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+
+#ifndef __SOC_IMX8_SOC_H__
+#define __SOC_IMX8_SOC_H__
+
+#define IMX_SOC_IMX8QM 0x01
+#define IMX_SOC_IMX8QXP 0x02
+#define IMX_SOC_IMX8MQ 0x82
+
+bool cpu_is_imx8qm(void);
+bool cpu_is_imx8mq(void);
+bool cpu_is_imx8qxp(void);
+
+extern bool TKT340553_SW_WORKAROUND;
+unsigned int imx8_get_soc_revision(void);
+
+#endif