diff options
author | Bai Ping <ping.bai@nxp.com> | 2016-02-02 11:01:38 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-02-14 04:07:17 +0100 |
commit | c5a890a445d06b0dfe5fc954b7391c1ec0afb76d (patch) | |
tree | fe517e75e576d8fb6b111b14f79bf9c115f127c9 /arch/arm/mach-imx/anatop.c | |
parent | ARM: imx: enable big endian mode (diff) | |
download | linux-c5a890a445d06b0dfe5fc954b7391c1ec0afb76d.tar.xz linux-c5a890a445d06b0dfe5fc954b7391c1ec0afb76d.zip |
ARM: imx: Add msl code support for imx6qp
The i.MX6QP is a different SOC, but internally we treate it as i.MX6Q
Rev_2.0 to maximum the code reusability. The chip silicon number we
read from the ANADIG_DIGPROG is 0x630100. This patch add code to
identify it as i.MX6QP Rev_1.0 when print out the silicon version.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/anatop.c')
-rw-r--r-- | arch/arm/mach-imx/anatop.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index bd3555ee88c8..649a84c251ad 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -129,7 +129,14 @@ void __init imx_init_revision_from_anatop(void) switch (digprog & 0xff) { case 0: - revision = IMX_CHIP_REVISION_1_0; + /* + * For i.MX6QP, most of the code for i.MX6Q can be resued, + * so internally, we identify it as i.MX6Q Rev 2.0 + */ + if (digprog >> 8 & 0x01) + revision = IMX_CHIP_REVISION_2_0; + else + revision = IMX_CHIP_REVISION_1_0; break; case 1: revision = IMX_CHIP_REVISION_1_1; |