* [U-Boot] [PATCH] imx6dq: Fix chip version issue for rev1.3
@ 2019-07-10 10:38 Ye Li
0 siblings, 0 replies; 2+ messages in thread
From: Ye Li @ 2019-07-10 10:38 UTC (permalink / raw)
To: u-boot
According to iMX6DQ RM, the minor field (low 8 bits) in DIGPROG is not
aligned on silicon revision 1.3. So update get_cpu_rev to correct the
revision.
0x00630002 Silicon revision 1.2
0x00630005 Silicon revision 1.3
0x00630006 Silicon revision 1.6
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---
arch/arm/mach-imx/mx6/soc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index e80f1d4..4084ab7 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -95,6 +95,11 @@ u32 get_cpu_rev(void)
type = MXC_CPU_MX6DP;
}
reg &= 0xff; /* mx6 silicon revision */
+
+ /* For 6DQ, the value 0x00630005 is Silicon revision 1.3*/
+ if (((type == MXC_CPU_MX6Q) || (type == MXC_CPU_MX6D)) && (reg == 0x5))
+ reg = 0x3;
+
return (type << 12) | (reg + (0x10 * (major + 1)));
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] imx6dq: Fix chip version issue for rev1.3
@ 2019-07-20 8:46 sbabic at denx.de
0 siblings, 0 replies; 2+ messages in thread
From: sbabic at denx.de @ 2019-07-20 8:46 UTC (permalink / raw)
To: u-boot
> According to iMX6DQ RM, the minor field (low 8 bits) in DIGPROG is not
> aligned on silicon revision 1.3. So update get_cpu_rev to correct the
> revision.
> 0x00630002 Silicon revision 1.2
> 0x00630005 Silicon revision 1.3
> 0x00630006 Silicon revision 1.6
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-20 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-20 8:46 [U-Boot] [PATCH] imx6dq: Fix chip version issue for rev1.3 sbabic at denx.de
-- strict thread matches above, loose matches on Subject: below --
2019-07-10 10:38 Ye Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox