Skip to content

Commit 4acaf8b

Browse files
MrVanShawn Guo
authored andcommitted
soc: imx: Spport i.MX9[4,52]
Add i.MX9[4,52] machine compatible to allow soc device could be created. SOC_ID is 16bit format data: - i.MX943: 0x9430 - i.MX952: 0x9520 Update SOC_ID macro to get the accurate data. Co-developed-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 36ca529 commit 4acaf8b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/soc/imx/soc-imx9.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <linux/sys_soc.h>
1313

1414
#define IMX_SIP_GET_SOC_INFO 0xc2000006
15-
#define SOC_ID(x) (((x) & 0xFFFF) >> 8)
15+
#define SOC_ID(x) (((x) & 0xFF) ? ((x) & 0xFFFF) >> 4 : ((x) & 0xFFFF) >> 8)
1616
#define SOC_REV_MAJOR(x) ((((x) >> 28) & 0xF) - 0x9)
1717
#define SOC_REV_MINOR(x) (((x) >> 24) & 0xF)
1818

@@ -68,7 +68,9 @@ static int imx9_soc_probe(struct platform_device *pdev)
6868

6969
static __maybe_unused const struct of_device_id imx9_soc_match[] = {
7070
{ .compatible = "fsl,imx93", },
71+
{ .compatible = "fsl,imx94", },
7172
{ .compatible = "fsl,imx95", },
73+
{ .compatible = "fsl,imx952", },
7274
{ }
7375
};
7476

0 commit comments

Comments
 (0)