linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: imx: fix i.MX35 CPU architecture
@ 2012-06-27 20:28 Benoît Thébaudeau
  2012-06-28 10:57 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Benoît Thébaudeau @ 2012-06-27 20:28 UTC (permalink / raw)
  To: linux-arm-kernel

The data sheet of the i.MX35 says it is an ARM1136JF-S processor, version r1p3,
which, according to section "B.1. New instructions" of the ARM1136JF-S and
ARM1136J-S Technical Reference Manual, makes the i.MX35 CPU architecture not
only ARMv6, but ARMv6k.

Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
---
 .../arch/arm/mach-imx/Kconfig                      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git linux-next-HEAD-49289f3.orig/arch/arm/mach-imx/Kconfig linux-next-HEAD-49289f3/arch/arm/mach-imx/Kconfig
index eff4db5..0345e85 100644
--- linux-next-HEAD-49289f3.orig/arch/arm/mach-imx/Kconfig
+++ linux-next-HEAD-49289f3/arch/arm/mach-imx/Kconfig
@@ -73,7 +73,7 @@ config SOC_IMX31
 
 config SOC_IMX35
 	bool
-	select CPU_V6
+	select CPU_V6K
 	select ARCH_MXC_IOMUX_V3
 	select COMMON_CLK
 	select HAVE_EPIT

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ARM: imx: fix i.MX35 CPU architecture
  2012-06-27 20:28 [PATCH] ARM: imx: fix i.MX35 CPU architecture Benoît Thébaudeau
@ 2012-06-28 10:57 ` Sascha Hauer
  2012-06-28 15:08   ` Benoît Thébaudeau
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-06-28 10:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Jun 27, 2012 at 10:28:26PM +0200, Beno?t Th?baudeau wrote:
> The data sheet of the i.MX35 says it is an ARM1136JF-S processor, version r1p3,
> which, according to section "B.1. New instructions" of the ARM1136JF-S and
> ARM1136J-S Technical Reference Manual, makes the i.MX35 CPU architecture not
> only ARMv6, but ARMv6k.

Is this true for i.MX31 aswell? If not, we would have to add additional
magic to enable CPU_V6K only when SOC_IMX31 is not selected.

Sascha

> 
> Cc: Sascha Hauer <kernel@pengutronix.de>
> Cc: <linux-arm-kernel@lists.infradead.org>
> Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
> ---
>  .../arch/arm/mach-imx/Kconfig                      |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git linux-next-HEAD-49289f3.orig/arch/arm/mach-imx/Kconfig linux-next-HEAD-49289f3/arch/arm/mach-imx/Kconfig
> index eff4db5..0345e85 100644
> --- linux-next-HEAD-49289f3.orig/arch/arm/mach-imx/Kconfig
> +++ linux-next-HEAD-49289f3/arch/arm/mach-imx/Kconfig
> @@ -73,7 +73,7 @@ config SOC_IMX31
>  
>  config SOC_IMX35
>  	bool
> -	select CPU_V6
> +	select CPU_V6K
>  	select ARCH_MXC_IOMUX_V3
>  	select COMMON_CLK
>  	select HAVE_EPIT
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
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] 4+ messages in thread

* [PATCH] ARM: imx: fix i.MX35 CPU architecture
  2012-06-28 10:57 ` Sascha Hauer
@ 2012-06-28 15:08   ` Benoît Thébaudeau
  2012-06-29  9:15     ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Benoît Thébaudeau @ 2012-06-28 15:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 28, 2012 at 12:57:20PM +0200, Sascha Hauer wrote:
> On Wed, Jun 27, 2012 at 10:28:26PM +0200, Beno?t Th?baudeau wrote:
> > The data sheet of the i.MX35 says it is an ARM1136JF-S processor,
> > version r1p3,
> > which, according to section "B.1. New instructions" of the
> > ARM1136JF-S and
> > ARM1136J-S Technical Reference Manual, makes the i.MX35 CPU
> > architecture not
> > only ARMv6, but ARMv6k.
> 
> Is this true for i.MX31 aswell?

No.

> If not, we would have to add
> additional
> magic to enable CPU_V6K only when SOC_IMX31 is not selected.

Why? That could be "select CPU_V6K if !SOC_IMX31", but e.g. CPU_V7 is selected
by SOC_IMX5 whether or not SOC_IMX31 or SOC_IMX35 is selected, and CPU_V6/6K/7
conflicts are handled with priorities by the ARM infrastructure.

Regards,
Beno?t

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: imx: fix i.MX35 CPU architecture
  2012-06-28 15:08   ` Benoît Thébaudeau
@ 2012-06-29  9:15     ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-06-29  9:15 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 28, 2012 at 05:08:30PM +0200, Beno?t Th?baudeau wrote:
> On Thu, Jun 28, 2012 at 12:57:20PM +0200, Sascha Hauer wrote:
> > On Wed, Jun 27, 2012 at 10:28:26PM +0200, Beno?t Th?baudeau wrote:
> > > The data sheet of the i.MX35 says it is an ARM1136JF-S processor,
> > > version r1p3,
> > > which, according to section "B.1. New instructions" of the
> > > ARM1136JF-S and
> > > ARM1136J-S Technical Reference Manual, makes the i.MX35 CPU
> > > architecture not
> > > only ARMv6, but ARMv6k.
> > 
> > Is this true for i.MX31 aswell?
> 
> No.
> 
> > If not, we would have to add
> > additional
> > magic to enable CPU_V6K only when SOC_IMX31 is not selected.
> 
> Why? That could be "select CPU_V6K if !SOC_IMX31", but e.g. CPU_V7 is selected
> by SOC_IMX5 whether or not SOC_IMX31 or SOC_IMX35 is selected, and CPU_V6/6K/7
> conflicts are handled with priorities by the ARM infrastructure.

A boot test on i.MX31 shows that you are probably right. I remember a
time when enabling CPU_V6K caused trouble, but it seems this has been
sorted out.

So, applied this one.

Sascha

-- 
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] 4+ messages in thread

end of thread, other threads:[~2012-06-29  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 20:28 [PATCH] ARM: imx: fix i.MX35 CPU architecture Benoît Thébaudeau
2012-06-28 10:57 ` Sascha Hauer
2012-06-28 15:08   ` Benoît Thébaudeau
2012-06-29  9:15     ` 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).