2008-05-19 15:11:46 +03:00
|
|
|
Index: linux-2.6.24.7/arch/x86/Kconfig
|
|
|
|
===================================================================
|
|
|
|
--- linux-2.6.24.7.orig/arch/x86/Kconfig
|
|
|
|
+++ linux-2.6.24.7/arch/x86/Kconfig
|
|
|
|
@@ -304,6 +304,17 @@ config X86_VSMP
|
2008-02-13 16:35:18 +02:00
|
|
|
supposed to run on these EM64T-based machines. Only choose this option
|
|
|
|
if you have one of these machines.
|
2006-10-16 02:34:22 +03:00
|
|
|
|
|
|
|
+config X86_RDC
|
|
|
|
+ bool "Support for RDC 3211 boards"
|
2007-10-12 14:21:59 +03:00
|
|
|
+ select GENERIC_GPIO
|
|
|
|
+ select LEDS_GPIO
|
2008-02-13 16:35:18 +02:00
|
|
|
+ select LEDS_CLASS
|
2006-10-16 02:34:22 +03:00
|
|
|
+ help
|
2008-02-13 16:35:18 +02:00
|
|
|
+ Support for RDC 3211 systems. Say 'Y' here if the kernel is
|
|
|
|
+ supposed to run on an IA-32 RDC R3211 system.
|
|
|
|
+ Only choose this option if you have such as system, otherwise you
|
|
|
|
+ should say N here.
|
2006-10-16 02:34:22 +03:00
|
|
|
+
|
|
|
|
endchoice
|
|
|
|
|
2008-02-13 16:35:18 +02:00
|
|
|
config SCHED_NO_NO_OMIT_FRAME_POINTER
|
2008-05-19 15:11:46 +03:00
|
|
|
Index: linux-2.6.24.7/arch/x86/kernel/reboot_fixups_32.c
|
|
|
|
===================================================================
|
|
|
|
--- linux-2.6.24.7.orig/arch/x86/kernel/reboot_fixups_32.c
|
|
|
|
+++ linux-2.6.24.7/arch/x86/kernel/reboot_fixups_32.c
|
|
|
|
@@ -30,6 +30,17 @@ static void cs5536_warm_reset(struct pci
|
2008-02-13 16:35:18 +02:00
|
|
|
udelay(50); /* shouldn't get here but be safe and spin a while */
|
|
|
|
}
|
2007-08-08 15:01:51 +03:00
|
|
|
|
|
|
|
+static void r8610_reset(struct pci_dev *dev)
|
|
|
|
+{
|
2008-02-13 16:35:18 +02:00
|
|
|
+ int i;
|
2007-08-08 15:01:51 +03:00
|
|
|
+
|
2008-02-13 16:35:18 +02:00
|
|
|
+ outl(0x80003840,0xCF8);
|
|
|
|
+ i=inl(0xCFC);
|
|
|
|
+ i |= 0x1600;
|
|
|
|
+ outl(i,0xCFC);
|
|
|
|
+ outb(1,0x92);
|
2007-08-08 15:01:51 +03:00
|
|
|
+}
|
2008-02-13 16:35:18 +02:00
|
|
|
+
|
|
|
|
struct device_fixup {
|
|
|
|
unsigned int vendor;
|
|
|
|
unsigned int device;
|
2008-05-19 15:11:46 +03:00
|
|
|
@@ -40,6 +51,7 @@ static struct device_fixup fixups_table[
|
2007-08-08 15:01:51 +03:00
|
|
|
{ PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, cs5530a_warm_reset },
|
|
|
|
{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, cs5536_warm_reset },
|
2008-02-13 16:35:18 +02:00
|
|
|
{ PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SC1100_BRIDGE, cs5530a_warm_reset },
|
|
|
|
+{ PCI_VENDOR_ID_RDC, PCI_DEVICE_ID_RDC_R6030, r8610_reset },
|
2007-08-08 15:01:51 +03:00
|
|
|
};
|
2008-02-13 16:35:18 +02:00
|
|
|
|
|
|
|
/*
|
2008-05-19 15:11:46 +03:00
|
|
|
Index: linux-2.6.24.7/arch/x86/Makefile_32
|
|
|
|
===================================================================
|
|
|
|
--- linux-2.6.24.7.orig/arch/x86/Makefile_32
|
|
|
|
+++ linux-2.6.24.7/arch/x86/Makefile_32
|
|
|
|
@@ -99,6 +99,11 @@ mflags-$(CONFIG_X86_ES7000) := -Iinclude
|
2008-02-13 16:35:18 +02:00
|
|
|
mcore-$(CONFIG_X86_ES7000) := arch/x86/mach-default
|
|
|
|
core-$(CONFIG_X86_ES7000) := arch/x86/mach-es7000/
|
|
|
|
|
|
|
|
+# RDC subarch support
|
|
|
|
+mflags-$(CONFIG_X86_RDC) := -Iinclude/asm-x86/mach-rdc
|
|
|
|
+mcore-$(CONFIG_X86_RDC) := arch/x86/mach-default
|
|
|
|
+core-$(CONFIG_X86_RDC) += arch/x86/mach-rdc/
|
|
|
|
+
|
|
|
|
# Xen paravirtualization support
|
|
|
|
core-$(CONFIG_XEN) += arch/x86/xen/
|
|
|
|
|
2008-05-19 15:11:46 +03:00
|
|
|
Index: linux-2.6.24.7/include/asm-x86/timex.h
|
|
|
|
===================================================================
|
|
|
|
--- linux-2.6.24.7.orig/include/asm-x86/timex.h
|
|
|
|
+++ linux-2.6.24.7/include/asm-x86/timex.h
|
2008-02-13 16:35:18 +02:00
|
|
|
@@ -7,6 +7,8 @@
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_ELAN
|
|
|
|
# define PIT_TICK_RATE 1189200 /* AMD Elan has different frequency! */
|
|
|
|
+#elif defined(CONFIG_X86_RDC)
|
|
|
|
+# define PIT_TICK_RATE 1041667 /* Underlying HZ for R8610 */
|
|
|
|
#else
|
|
|
|
# define PIT_TICK_RATE 1193182 /* Underlying HZ */
|
|
|
|
#endif
|