mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 15:26:21 +09:00
LF-351 ARM: imx: Correct the soc_id on imx6qp
On i.MX6QP, the soc_id exported to the /sys/devices/soc0/soc_id should be 'i.MX6QP'. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <anson.huang@nxp.com>
This commit is contained in:
parent
03b6fb77ec
commit
2ae1e74241
|
@ -128,7 +128,10 @@ struct device * __init imx_soc_device_init(void)
|
|||
soc_id = "i.MX6SX";
|
||||
break;
|
||||
case MXC_CPU_IMX6Q:
|
||||
soc_id = "i.MX6Q";
|
||||
if (imx_get_soc_revision() >= IMX_CHIP_REVISION_2_0)
|
||||
soc_id = "i.MX6QP";
|
||||
else
|
||||
soc_id = "i.MX6Q";
|
||||
break;
|
||||
case MXC_CPU_IMX6UL:
|
||||
soc_id = "i.MX6UL";
|
||||
|
|
|
@ -324,7 +324,7 @@ static void __init imx6q_init_machine(void)
|
|||
{
|
||||
struct device *parent;
|
||||
|
||||
if (cpu_is_imx6q() && imx_get_soc_revision() == IMX_CHIP_REVISION_2_0)
|
||||
if (cpu_is_imx6q() && imx_get_soc_revision() >= IMX_CHIP_REVISION_2_0)
|
||||
imx_print_silicon_rev("i.MX6QP", IMX_CHIP_REVISION_1_0);
|
||||
else
|
||||
imx_print_silicon_rev(cpu_is_imx6dl() ? "i.MX6DL" : "i.MX6Q",
|
||||
|
|
Loading…
Reference in New Issue
Block a user