fix typo in cambria gw2358 initialization
[openwrt.git] / target / linux / rdc / patches-2.6.24 / 004-rdc_fixes.patch
1 --- a/arch/x86/Kconfig
2 +++ b/arch/x86/Kconfig
3 @@ -304,6 +304,17 @@ config X86_VSMP
4 supposed to run on these EM64T-based machines. Only choose this option
5 if you have one of these machines.
6
7 +config X86_RDC
8 + bool "Support for RDC 3211 boards"
9 + select GENERIC_GPIO
10 + select LEDS_GPIO
11 + select LEDS_CLASS
12 + help
13 + Support for RDC 3211 systems. Say 'Y' here if the kernel is
14 + supposed to run on an IA-32 RDC R3211 system.
15 + Only choose this option if you have such as system, otherwise you
16 + should say N here.
17 +
18 endchoice
19
20 config SCHED_NO_NO_OMIT_FRAME_POINTER
21 --- a/arch/x86/kernel/reboot_fixups_32.c
22 +++ b/arch/x86/kernel/reboot_fixups_32.c
23 @@ -30,6 +30,17 @@ static void cs5536_warm_reset(struct pci
24 udelay(50); /* shouldn't get here but be safe and spin a while */
25 }
26
27 +static void r8610_reset(struct pci_dev *dev)
28 +{
29 + int i;
30 +
31 + outl(0x80003840,0xCF8);
32 + i=inl(0xCFC);
33 + i |= 0x1600;
34 + outl(i,0xCFC);
35 + outb(1,0x92);
36 +}
37 +
38 struct device_fixup {
39 unsigned int vendor;
40 unsigned int device;
41 @@ -40,6 +51,7 @@ static struct device_fixup fixups_table[
42 { PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, cs5530a_warm_reset },
43 { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, cs5536_warm_reset },
44 { PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SC1100_BRIDGE, cs5530a_warm_reset },
45 +{ PCI_VENDOR_ID_RDC, PCI_DEVICE_ID_RDC_R6030, r8610_reset },
46 };
47
48 /*
49 --- a/arch/x86/Makefile_32
50 +++ b/arch/x86/Makefile_32
51 @@ -99,6 +99,11 @@ mflags-$(CONFIG_X86_ES7000) := -Iinclude
52 mcore-$(CONFIG_X86_ES7000) := arch/x86/mach-default
53 core-$(CONFIG_X86_ES7000) := arch/x86/mach-es7000/
54
55 +# RDC subarch support
56 +mflags-$(CONFIG_X86_RDC) := -Iinclude/asm-x86/mach-rdc
57 +mcore-$(CONFIG_X86_RDC) := arch/x86/mach-default
58 +core-$(CONFIG_X86_RDC) += arch/x86/mach-rdc/
59 +
60 # Xen paravirtualization support
61 core-$(CONFIG_XEN) += arch/x86/xen/
62
63 --- a/include/asm-x86/timex.h
64 +++ b/include/asm-x86/timex.h
65 @@ -7,6 +7,8 @@
66
67 #ifdef CONFIG_X86_ELAN
68 # define PIT_TICK_RATE 1189200 /* AMD Elan has different frequency! */
69 +#elif defined(CONFIG_X86_RDC)
70 +# define PIT_TICK_RATE 1041667 /* Underlying HZ for R8610 */
71 #else
72 # define PIT_TICK_RATE 1193182 /* Underlying HZ */
73 #endif
This page took 0.044641 seconds and 5 git commands to generate.