Skip to contentSkip to conversation

new cpufreq driver for NatSemi Geode

PATCH New Hiroshi Miura 1 participant 1 message Dec 29, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 new cpufreq driver for NatSemi Geode

I write a new cpufreq driver for NatSemi Geode.
This driver supports old Cyrix MediaGXm or NatSemi Geode GX series with CS5530,CS5530A, CS5520 and CS5510.

This driver detects a chipset and does thing that suitable for chip. I test it on MediaGXm 200MHz with CS5520 and Geode GX1 with CS5520.

My code based on Zwane Mwaikambo's patch. I re-write almost.

Please merge this driver into cpufreq project patchset.

A patch for 2.5.53 is attatched and you can download driver file only from
http://www.da-cha.org/geode/gx-suspmod.c

linux-2.5.53/arch/i386/Kconfig renamed from arch/i386/Kconfig +11 -0
diff -uNr -X kernel-patches/dontdiff linux-2.5.53/arch/i386/Kconfig edited/linux-2.5.53/arch/i386/Kconfig
@@ -985,6 +1003,17 @@
 
 	  If in doubt, say N.
 
+config X86_GX_SUSPMOD
+	tristate "Cyrix MediaGX/NatSemi Geode Suspend Modulation"
+	depends on CPU_FREQ
+	help
+	 This add the CPUFreq driver for NatSemi Geode processors which
+	 support suspend modulation.
+
+	 For details, take a look at linux/Documentation/cpufreq.
+
+	 If in doubt, say N.
+
 endmenu
 
 
linux-2.5.53/arch/i386/defconfig renamed from arch/i386/defconfig +1 -0
diff -uNr -X kernel-patches/dontdiff linux-2.5.53/arch/i386/defconfig edited/linux-2.5.53/arch/i386/defconfig
@@ -65,6 +65,7 @@
 CONFIG_X86_MCE=y
 # CONFIG_X86_MCE_NONFATAL is not set
 CONFIG_X86_MCE_P4THERMAL=y
+# CONFIG_X86_GX_SUSPMOD is not set
 # CONFIG_TOSHIBA is not set
 # CONFIG_I8K is not set
 # CONFIG_MICROCODE is not set
linux-2.5.53/arch/i386/kernel/cpu/cpufreq/Makefile renamed from arch/i386/kernel/cpu/cpufreq/Makefile +2 -0
diff -uNr -X kernel-patches/dontdiff linux-2.5.53/arch/i386/kernel/cpu/cpufreq/Makefile edited/linux-2.5.53/arch/i386/kernel/cpu/cpufreq/Makefile
@@ -4,3 +4,5 @@
 obj-$(CONFIG_X86_P4_CLOCKMOD)	+= p4-clockmod.o
 obj-$(CONFIG_ELAN_CPUFREQ)	+= elanfreq.o
 obj-$(CONFIG_X86_LONGRUN)	+= longrun.o  
+obj-$(CONFIG_X86_GX_SUSPMOD)    += gx-suspmod.o
+
linux-2.5.53/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c renamed from arch/i386/kernel/cpu/cpufreq/gx-suspmod.c +467 -0

467 lines not on this page · raw message