source: trunk/target/linux/rdc/patches/004-rdc_fixes.patch @ 9327

Last change on this file since 9327 was 9327, checked in by florian, 9 years ago

Add the RDC PCI ids for a fancier PCI device table.Return the system name on boot.

  • Property svn:eol-style set to native
File size: 2.4 KB
  • arch/i386/Kconfig

    diff -urN linux-2.6.19/arch/i386/Kconfig linux-2.6.19.new/arch/i386/Kconfig
    old new  
    180180          Only choose this option if you have such a system, otherwise you 
    181181          should say N here. 
    182182 
     183config X86_RDC 
     184        bool "Support for RDC 3211 boards" 
     185        select GENERIC_GPIO 
     186        select LEDS_GPIO 
     187        help 
     188          Support for RDC 3211 systems. Say 'Y' here if the kernel is  
     189          supposed to run on an IA-32 RDC R3211 system. 
     190          Only choose this option if you have such as system, otherwise you 
     191          should say N here. 
     192 
    183193endchoice 
    184194 
    185195config ACPI_SRAT 
  • arch/i386/Makefile

    diff -urN linux-2.6.19/arch/i386/Makefile linux-2.6.19.new/arch/i386/Makefile
    old new  
    9292mflags-$(CONFIG_X86_ES7000)     := -Iinclude/asm-i386/mach-es7000 
    9393mcore-$(CONFIG_X86_ES7000)      := mach-default 
    9494core-$(CONFIG_X86_ES7000)       := arch/i386/mach-es7000/ 
     95# RDC subarch support 
     96mflags-$(CONFIG_X86_RDC)        := -Iinclude/asm-i386/mach-rdc 
     97mcore-$(CONFIG_X86_RDC)         := mach-default 
     98core-$(CONFIG_X86_RDC)          += arch/i386/mach-rdc/ 
    9599 
    96100# default subarch .h files 
    97101mflags-y += -Iinclude/asm-i386/mach-default 
  • timex.h

    old new  
    1111 
    1212#ifdef CONFIG_X86_ELAN 
    1313#  define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */ 
     14#elif defined(CONFIG_X86_RDC) 
     15#  define CLOCK_TICK_RATE 1041667 /* Underlying HZ for R8610 */ 
    1416#else 
    1517#  define CLOCK_TICK_RATE 1193182 /* Underlying HZ */ 
    1618#endif 
  • reboot_fixups.c

    old new  
    1313#include <linux/pci.h> 
    1414#include <asm/reboot_fixups.h> 
    1515#include <asm/msr.h> 
     16 
     17static void r8610_reset(struct pci_dev *dev) 
     18{ 
     19        int i; 
     20 
     21        outl(0x80003840,0xCF8); 
     22        i=inl(0xCFC); 
     23        i |= 0x1600; 
     24        outl(i,0xCFC); 
     25        outb(1,0x92); 
     26} 
    1627 
    1728static void cs5530a_warm_reset(struct pci_dev *dev) 
    1829{ 
     
    4053}; 
    4154 
    4255static struct device_fixup fixups_table[] = { 
     56{ PCI_VENDOR_ID_RDC, PCI_DEVICE_ID_R6030, r8610_reset }, 
    4357{ PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, cs5530a_warm_reset }, 
    4458{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, cs5536_warm_reset }, 
    4559}; 
Note: See TracBrowser for help on using the repository browser.