au1x00 pm
PATCH 1/1 au1x00 pm
Hi,
I'm working on a custom embedded board with the Alchemy au1100. I saw that some code in the thunk is not up-to-date so I'm sending the patches that I needed to make the kernel compile and work. Since this is my first contribution please tell me if there's something wrong.
This patch fixes some compilation problems and reenables PM. Frequency change and sleep is ok, need to work on bootloader to make suspend work.
Signature · 1 line
Christian <[email protected]>
Index: arch/mips/Kconfig
===================================================================
RCS file: /home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.127
mips/Kconfig +4 -1
@@ -970,6 +970,9 @@ config MIPS_DISABLE_OBSOLETE_IDE bool +config WWPC + bool "Support for WWPC" + config CPU_LITTLE_ENDIAN bool "Generate little endian code" default y if ACER_PICA_61 || CASIO_E55 || DDB5074 || DDB5476 || DDB5477 || MACH_DECSTATION || IBM_WORKPAD || LASAT || MIPS_COBALT || MIPS_ITE8172 || MIPS_IVR || SOC_AU1X00 || NEC_OSPREY || OLIVETTI_M700 || SNI_RM200_PCI || VICTOR_MPC30X || ZAO_CAPCELLA
@@ -1583,7 +1586,7 @@ config PM bool "Power Management support (EXPERIMENTAL)" - depends on EXPERIMENTAL && MACH_AU1X00 + depends on EXPERIMENTAL && SOC_AU1X00 endmenu
Index: arch/mips/au1000/common/power.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/au1000/common/power.c,v retrieving revision 1.15
mips/au1000/common/power.c +1 -0
@@ -34,6 +34,7 @@#include <linux/pm.h> #include <linux/slab.h> #include <linux/sysctl.h> +#include <linux/jiffies.h> #include <asm/string.h> #include <asm/uaccess.h>
Index: arch/mips/au1000/common/time.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/au1000/common/time.c,v retrieving revision 1.31
mips/au1000/common/time.c +1 -1
@@ -123,7 +123,7 @@int time_elapsed;static int jiffie_drift =0 ; - kstat.irqs[0 ][irq]++; + kstat_this_cpu.irqs[irq]++;if (au_readl (SYS_COUNTER_CNTRL ) &SYS_CNTRL_M20 ) {/* should never happen! */ printk (KERN_WARNING "counter 0 w status eror\n" );