Skip to contentSkip to conversation

Couple of SA11x0 cpufreq fixes

PATCH New Dmitry Artamonow 3 participants 7 messages Apr 21, 2010 – Apr 22, 2010

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

cover Couple of SA11x0 cpufreq fixes

Hi!

Here's couple of simple sa11x0 cpufreq-related fixes:

Dmitry Artamonow (2):
SA1100: fix wrong CPU type for h3100 and h3600
SA1100: add processor check to sa1110-cpufreq driver

 arch/arm/mach-sa1100/Kconfig      |    4 ++--
 arch/arm/mach-sa1100/cpu-sa1110.c |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
#1 lore raw

PATCH 1/2 SA1100: fix wrong CPU type for h3100 and h3600

They have StrongARM SA1110, not SA1100.

---
 arch/arm/mach-sa1100/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-sa1100/Kconfig +2 -2
index b17d52f..fd4c52b 100644
@@ -57,7 +57,7 @@ config SA1100_COLLIE
 config SA1100_H3100
 	bool "Compaq iPAQ H3100"
 	select HTC_EGPIO
-	select CPU_FREQ_SA1100
+	select CPU_FREQ_SA1110
 	help
 	  Say Y here if you intend to run this kernel on the Compaq iPAQ
 	  H3100 handheld computer.  Information about this machine and the
@@ -68,7 +68,7 @@ config SA1100_H3100
 config SA1100_H3600
 	bool "Compaq iPAQ H3600/H3700"
 	select HTC_EGPIO
-	select CPU_FREQ_SA1100
+	select CPU_FREQ_SA1110
 	help
 	  Say Y here if you intend to run this kernel on the Compaq iPAQ
 	  H3600 handheld computer.  Information about this machine and the
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 1/2 SA1100: fix wrong CPU type for h3100 and h3600

Quoted 3 lines · Dmitry Artamonow

They have StrongARM SA1110, not SA1100.

Looks correct to me.

Quoted 35 lines

---
?arch/arm/mach-sa1100/Kconfig | ? ?4 ++--
?1 files changed, 2 insertions(+), 2 deletions(-)

arch/arm/mach-sa1100/Kconfig +0 -0
index b17d52f..fd4c52b 100644
@@ -57,7 +57,7 @@ config SA1100_COLLIE

?config SA1100_H3100
? ? ? ?bool "Compaq iPAQ H3100"
? ? ? ?select HTC_EGPIO
- ? ? ? select CPU_FREQ_SA1100
+ ? ? ? select CPU_FREQ_SA1110
? ? ? ?help
? ? ? ? ?Say Y here if you intend to run this kernel on the Compaq iPAQ ? ? ? ? ?H3100 handheld computer. ?Information about this machine and the

arch/arm/mach-sa1100/Kconfig +0 -0
@@ -68,7 +68,7 @@ config SA1100_H3100

?config SA1100_H3600
? ? ? ?bool "Compaq iPAQ H3600/H3700"
? ? ? ?select HTC_EGPIO
- ? ? ? select CPU_FREQ_SA1100
+ ? ? ? select CPU_FREQ_SA1110
? ? ? ?help
? ? ? ? ?Say Y here if you intend to run this kernel on the Compaq iPAQ ? ? ? ? ?H3600 handheld computer. ?Information about this machine and the --
1.7.0.4

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw

PATCH 1/2 SA1100: fix wrong CPU type for h3100 and h3600

In reply to Dmitry Artamonow
Quoted 32 lines · On Wed, 21 Apr 2010 22:49:08 +0400 Dmitry Artamonow <[email protected]> wrote:

They have StrongARM SA1110, not SA1100.

---
 arch/arm/mach-sa1100/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-sa1100/Kconfig +2 -2
index b17d52f..fd4c52b 100644
@@ -57,7 +57,7 @@ config SA1100_COLLIE
 config SA1100_H3100
 	bool "Compaq iPAQ H3100"
 	select HTC_EGPIO
-	select CPU_FREQ_SA1100
+	select CPU_FREQ_SA1110
 	help
 	  Say Y here if you intend to run this kernel on the Compaq iPAQ
 	  H3100 handheld computer.  Information about this machine and the
@@ -68,7 +68,7 @@ config SA1100_H3100
 config SA1100_H3600
 	bool "Compaq iPAQ H3600/H3700"
 	select HTC_EGPIO
-	select CPU_FREQ_SA1100
+	select CPU_FREQ_SA1110
 	help
 	  Say Y here if you intend to run this kernel on the Compaq iPAQ
 	  H3600 handheld computer.  Information about this machine and the
Signature · 1 line
1.7.0.4
Signature · 1 line
Kristoffer Ericson <[email protected]>
#4 lore raw

PATCH 2/2 SA1100: add processor check to sa1110-cpufreq driver

In reply to Dmitry Artamonow

Just to make sure that this driver won't run on StrongArm SA1100 when both SA1100 and SA1110 cpufreq drivers are built in (usually in multimachine config). SA1100 driver already has similar check.

---
 arch/arm/mach-sa1100/cpu-sa1110.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-sa1100/cpu-sa1110.c +3 -0
index 63b32b6..7252874 100644
@@ -363,6 +363,9 @@ static int __init sa1110_clk_init(void)
 	struct sdram_params *sdram;
 	const char *name = sdram_name;
 
+	if (!cpu_is_sa1110())
+		return -ENODEV;
+
 	if (!name[0]) {
 		if (machine_is_assabet())
 			name = "TC59SM716-CL3";
Signature · 1 line
1.7.0.4
#5 lore raw

PATCH 2/2 SA1100: add processor check to sa1110-cpufreq driver

Quoted 5 lines · Dmitry Artamonow

Just to make sure that this driver won't run on StrongArm SA1100 when both SA1100 and SA1110 cpufreq drivers are built in (usually in multimachine config). SA1100 driver already has similar check.

Looks correct to me as well.

Quoted 27 lines

---
?arch/arm/mach-sa1100/cpu-sa1110.c | ? ?3 +++
?1 files changed, 3 insertions(+), 0 deletions(-)

arch/arm/mach-sa1100/cpu-sa1110.c +3 -1
index 63b32b6..7252874 100644
@@ -363,6 +363,9 @@ static int __init sa1110_clk_init(void)
 ? ? ? ?struct sdram_params *sdram;
 ? ? ? ?const char *name = sdram_name;
 
+ ? ? ? if (!cpu_is_sa1110())
+ ? ? ? ? ? ? ? return -ENODEV;
+
 ? ? ? ?if (!name[0]) {
 ? ? ? ? ? ? ? ?if (machine_is_assabet())
 ? ? ? ? ? ? ? ? ? ? ? ?name = "TC59SM716-CL3";
--

1.7.0.4

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw

PATCH 2/2 SA1100: add processor check to sa1110-cpufreq driver

In reply to Dmitry Artamonow
Quoted 26 lines · On Wed, 21 Apr 2010 22:49:09 +0400 Dmitry Artamonow <[email protected]> wrote:

Just to make sure that this driver won't run on StrongArm SA1100 when both SA1100 and SA1110 cpufreq drivers are built in (usually in multimachine config). SA1100 driver already has similar check.

---
 arch/arm/mach-sa1100/cpu-sa1110.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-sa1100/cpu-sa1110.c +3 -0
index 63b32b6..7252874 100644
@@ -363,6 +363,9 @@ static int __init sa1110_clk_init(void)
 	struct sdram_params *sdram;
 	const char *name = sdram_name;
 
+	if (!cpu_is_sa1110())
+		return -ENODEV;
+
 	if (!name[0]) {
 		if (machine_is_assabet())
 			name = "TC59SM716-CL3";
Signature · 1 line
1.7.0.4
Signature · 1 line
Kristoffer Ericson <[email protected]>