Skip to contentSkip to conversation

ARM: imx: fix i.MX35 CPU architecture

PATCH New Benoît Thébaudeau 2 participants 4 messages Jun 27, 2012 – Jun 29, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: imx: fix i.MX35 CPU architecture

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.

---
 .../arch/arm/mach-imx/Kconfig                      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/Kconfig +1 -1
index eff4db5..0345e85 100644
@@ -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
maintainer
#1 lore raw

PATCH 1/1 ARM: imx: fix i.MX35 CPU architecture

Quoted 4 lines · Beno?t Th?baudeau

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

Quoted 26 lines
---
 .../arch/arm/mach-imx/Kconfig                      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/Kconfig +1 -1
index eff4db5..0345e85 100644
@@ -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

Signature · 4 lines
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 |
#2 lore raw

PATCH 1/1 ARM: imx: fix i.MX35 CPU architecture

Quoted 10 lines · Sascha Hauer
Quoted 7 lines · Beno?t Th?baudeau

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.

Quoted 3 lines

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

maintainer
#3 lore raw

PATCH 1/1 ARM: imx: fix i.MX35 CPU architecture

Quoted 14 lines · Beno?t Th?baudeau
Quoted 10 lines · Sascha Hauer
Quoted 7 lines · Beno?t Th?baudeau

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.

Quoted 7 lines
Quoted 3 lines

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

Signature · 4 lines
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 |