summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-10-10 03:42:34 -0500
committerYe Li <ye.li@nxp.com>2017-10-10 20:59:46 -0500
commit8fe8d6d2ede6dc355dffb0e772fc610744313b9e (patch)
tree716096a3671fad1eca232393ecc33227abfceec4
parent32bb4c706c09bc2253e0a816edcb8a0fb43685e3 (diff)
MLK-16562 imx8qxp: Fix MAC fuse address for QXP
Since i.MX8QXP only use one 16K fuse array, it has different fuse address for 2nd half 256 fuse words with QM. According to its fuse map, the fuse addresses for MAC1 and MAC2 are 708-711. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--arch/arm/cpu/armv8/imx8/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/imx8/cpu.c b/arch/arm/cpu/armv8/imx8/cpu.c
index cafc70c79f..eae935b320 100644
--- a/arch/arm/cpu/armv8/imx8/cpu.c
+++ b/arch/arm/cpu/armv8/imx8/cpu.c
@@ -284,10 +284,18 @@ int imx8qxp_wake_secondary_cores(void)
return 0;
}
+#if defined(CONFIG_IMX8QM)
#define FUSE_MAC0_WORD0 452
#define FUSE_MAC0_WORD1 453
#define FUSE_MAC1_WORD0 454
#define FUSE_MAC1_WORD1 455
+#elif defined(CONFIG_IMX8QXP)
+#define FUSE_MAC0_WORD0 708
+#define FUSE_MAC0_WORD1 709
+#define FUSE_MAC1_WORD0 710
+#define FUSE_MAC1_WORD1 711
+#endif
+
void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
{
sc_err_t err;