summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2018-05-04 17:27:23 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:31:34 +0800
commitdee907b0f66fa88bc852bfe1887fa033cdf06ceb (patch)
tree918ada308bd44915f05cd865ad5f4e2e80264f19 /drivers/soc
parent633a7c3b042f6abcb02ec796af29f2c0a311f4fb (diff)
MLK-18205-7 soc: imx: add i.MX8MM SoC driver support
Add i.MX8MM SoC ID driver support. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/soc-imx8.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/soc/imx/soc-imx8.c b/drivers/soc/imx/soc-imx8.c
index f609c763c1a5..81f7b8759ef0 100644
--- a/drivers/soc/imx/soc-imx8.c
+++ b/drivers/soc/imx/soc-imx8.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
- * Copyright 2017 NXP
+ * Copyright 2017-2018 NXP
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -198,6 +198,12 @@ static u32 imx8mq_soc_revision(void)
return imx_init_revision_from_atf();
}
+static u32 imx8mm_soc_revision(void)
+{
+ imx8_soc_uid = imx8mq_soc_get_soc_uid();
+ return imx_init_revision_from_atf();
+}
+
static struct imx8_soc_data imx8qm_soc_data = {
.name = "i.MX8QM",
.soc_revision = imx8qm_soc_revision,
@@ -213,10 +219,16 @@ static struct imx8_soc_data imx8mq_soc_data = {
.soc_revision = imx8mq_soc_revision,
};
+static struct imx8_soc_data imx8mm_soc_data = {
+ .name = "i.MX8MM",
+ .soc_revision = imx8mm_soc_revision,
+};
+
static const struct of_device_id imx8_soc_match[] = {
{ .compatible = "fsl,imx8qm", .data = &imx8qm_soc_data, },
{ .compatible = "fsl,imx8qxp", .data = &imx8qxp_soc_data, },
{ .compatible = "fsl,imx8mq", .data = &imx8mq_soc_data, },
+ { .compatible = "fsl,imx8mm", .data = &imx8mm_soc_data, },
/* Fixme: this is a hack for big/little xen guest, b0 no need this */
{ .compatible = "xen,xenvm", .data = &imx8qm_soc_data, },
{ }