* [PATCH v2] ARM: i.MX6: add more chip revision support
@ 2014-07-22 4:32 Shawn Guo
2014-07-22 5:44 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2014-07-22 4:32 UTC (permalink / raw)
To: linux-arm-kernel
From: Jason Liu <r64343@freescale.com>
Add more revision support for the new i.MX6DQ tape-out (TO1.5). This
TO1.5 is the Rev 1.3 as documented in i.MX6DQ data sheet, because TO1.3
and TO1.4 are never revealed.
Signed-off-by: Jason Liu <r64343@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
---
Changes since v1:
- Add a note in code for the numbering mismatch between code and
data sheet
- Fix a typo of tape-out in commit log
arch/arm/mach-imx/anatop.c | 13 +++++++++++++
arch/arm/mach-imx/mxc.h | 2 ++
2 files changed, 15 insertions(+)
diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c
index 4a40bbb46183..8259a625a920 100644
--- a/arch/arm/mach-imx/anatop.c
+++ b/arch/arm/mach-imx/anatop.c
@@ -104,6 +104,19 @@ void __init imx_init_revision_from_anatop(void)
case 2:
revision = IMX_CHIP_REVISION_1_2;
break;
+ case 3:
+ revision = IMX_CHIP_REVISION_1_3;
+ break;
+ case 4:
+ revision = IMX_CHIP_REVISION_1_4;
+ break;
+ case 5:
+ /*
+ * i.MX6DQ TO1.5 is defined as Rev 1.3 in Data Sheet, marked
+ * as 'D' in Part Number last character.
+ */
+ revision = IMX_CHIP_REVISION_1_5;
+ break;
default:
revision = IMX_CHIP_REVISION_UNKNOWN;
}
diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h
index a39b69ef4301..17a41ca65acf 100644
--- a/arch/arm/mach-imx/mxc.h
+++ b/arch/arm/mach-imx/mxc.h
@@ -43,6 +43,8 @@
#define IMX_CHIP_REVISION_1_1 0x11
#define IMX_CHIP_REVISION_1_2 0x12
#define IMX_CHIP_REVISION_1_3 0x13
+#define IMX_CHIP_REVISION_1_4 0x14
+#define IMX_CHIP_REVISION_1_5 0x15
#define IMX_CHIP_REVISION_2_0 0x20
#define IMX_CHIP_REVISION_2_1 0x21
#define IMX_CHIP_REVISION_2_2 0x22
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] ARM: i.MX6: add more chip revision support
2014-07-22 4:32 [PATCH v2] ARM: i.MX6: add more chip revision support Shawn Guo
@ 2014-07-22 5:44 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-07-22 5:44 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 22, 2014 at 12:32:54PM +0800, Shawn Guo wrote:
> From: Jason Liu <r64343@freescale.com>
>
> Add more revision support for the new i.MX6DQ tape-out (TO1.5). This
> TO1.5 is the Rev 1.3 as documented in i.MX6DQ data sheet, because TO1.3
> and TO1.4 are never revealed.
>
> Signed-off-by: Jason Liu <r64343@freescale.com>
> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha
> ---
> Changes since v1:
> - Add a note in code for the numbering mismatch between code and
> data sheet
> - Fix a typo of tape-out in commit log
>
> arch/arm/mach-imx/anatop.c | 13 +++++++++++++
> arch/arm/mach-imx/mxc.h | 2 ++
> 2 files changed, 15 insertions(+)
>
> diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c
> index 4a40bbb46183..8259a625a920 100644
> --- a/arch/arm/mach-imx/anatop.c
> +++ b/arch/arm/mach-imx/anatop.c
> @@ -104,6 +104,19 @@ void __init imx_init_revision_from_anatop(void)
> case 2:
> revision = IMX_CHIP_REVISION_1_2;
> break;
> + case 3:
> + revision = IMX_CHIP_REVISION_1_3;
> + break;
> + case 4:
> + revision = IMX_CHIP_REVISION_1_4;
> + break;
> + case 5:
> + /*
> + * i.MX6DQ TO1.5 is defined as Rev 1.3 in Data Sheet, marked
> + * as 'D' in Part Number last character.
> + */
> + revision = IMX_CHIP_REVISION_1_5;
> + break;
> default:
> revision = IMX_CHIP_REVISION_UNKNOWN;
> }
> diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h
> index a39b69ef4301..17a41ca65acf 100644
> --- a/arch/arm/mach-imx/mxc.h
> +++ b/arch/arm/mach-imx/mxc.h
> @@ -43,6 +43,8 @@
> #define IMX_CHIP_REVISION_1_1 0x11
> #define IMX_CHIP_REVISION_1_2 0x12
> #define IMX_CHIP_REVISION_1_3 0x13
> +#define IMX_CHIP_REVISION_1_4 0x14
> +#define IMX_CHIP_REVISION_1_5 0x15
> #define IMX_CHIP_REVISION_2_0 0x20
> #define IMX_CHIP_REVISION_2_1 0x21
> #define IMX_CHIP_REVISION_2_2 0x22
> --
> 1.9.1
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-22 5:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-22 4:32 [PATCH v2] ARM: i.MX6: add more chip revision support Shawn Guo
2014-07-22 5:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).