Allow madwifi devices to be set in monitor mode
[openwrt.git] / target / linux / rdc / patches-2.6.23 / 004-rdc_fixes.patch
1 diff -urN linux-2.6.19/arch/i386/Kconfig linux-2.6.19.new/arch/i386/Kconfig
2 --- linux-2.6.19/arch/i386/Kconfig 2006-11-29 22:57:37.000000000 +0100
3 +++ linux-2.6.19.new/arch/i386/Kconfig 2006-12-17 17:13:33.000000000 +0100
4 @@ -180,6 +180,16 @@
5 Only choose this option if you have such a system, otherwise you
6 should say N here.
7
8 +config X86_RDC
9 + bool "Support for RDC 3211 boards"
10 + select GENERIC_GPIO
11 + select LEDS_GPIO
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 ACPI_SRAT
21 diff -urN linux-2.6.19/arch/i386/Makefile linux-2.6.19.new/arch/i386/Makefile
22 --- linux-2.6.19/arch/i386/Makefile 2006-11-29 22:57:37.000000000 +0100
23 +++ linux-2.6.19.new/arch/i386/Makefile 2006-12-17 17:13:33.000000000 +0100
24 @@ -92,6 +92,10 @@
25 mflags-$(CONFIG_X86_ES7000) := -Iinclude/asm-i386/mach-es7000
26 mcore-$(CONFIG_X86_ES7000) := mach-default
27 core-$(CONFIG_X86_ES7000) := arch/i386/mach-es7000/
28 +# RDC subarch support
29 +mflags-$(CONFIG_X86_RDC) := -Iinclude/asm-i386/mach-rdc
30 +mcore-$(CONFIG_X86_RDC) := mach-default
31 +core-$(CONFIG_X86_RDC) += arch/i386/mach-rdc/
32
33 # default subarch .h files
34 mflags-y += -Iinclude/asm-i386/mach-default
35 --- timex.h 2007-08-07 10:44:03.816112250 -0700
36 +++ linux/include/asm-i386/timex.h 2007-08-07 10:48:47.905866750 -0700
37 @@ -11,6 +11,8 @@
38
39 #ifdef CONFIG_X86_ELAN
40 # define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
41 +#elif defined(CONFIG_X86_RDC)
42 +# define CLOCK_TICK_RATE 1041667 /* Underlying HZ for R8610 */
43 #else
44 # define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
45 #endif
46 --- reboot_fixups.c 2007-08-07 12:02:00.908412250 -0700
47 +++ linux/arch/i386/kernel/reboot_fixups.c 2007-08-07 12:18:49.391438500 -0700
48 @@ -13,6 +13,17 @@
49 #include <linux/pci.h>
50 #include <asm/reboot_fixups.h>
51 #include <asm/msr.h>
52 +
53 +static void r8610_reset(struct pci_dev *dev)
54 +{
55 + int i;
56 +
57 + outl(0x80003840,0xCF8);
58 + i=inl(0xCFC);
59 + i |= 0x1600;
60 + outl(i,0xCFC);
61 + outb(1,0x92);
62 +}
63
64 static void cs5530a_warm_reset(struct pci_dev *dev)
65 {
66 @@ -40,6 +53,7 @@
67 };
68
69 static struct device_fixup fixups_table[] = {
70 +{ PCI_VENDOR_ID_RDC, PCI_DEVICE_ID_RDC_R6030, r8610_reset },
71 { PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, cs5530a_warm_reset },
72 { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, cs5536_warm_reset },
73 };
This page took 0.058144 seconds and 5 git commands to generate.