source: trunk/target/linux/rb532/patches/100-rb5xx_support.patch @ 10171

Last change on this file since 10171 was 10171, checked in by florian, 8 years ago

Upgrade rb532 to .23, provide generic GPIO API to this board

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

    diff -urN linux-2.6.23.12/arch/mips/Kconfig linux-2.6.23.12.new/arch/mips/Kconfig
    old new  
    595595          This enables support for the Wind River MIPS32 4KC PPMC evaluation 
    596596          board, which is based on GT64120 bridge chip. 
    597597 
     598config MIKROTIK_RB500 
     599        bool "Support for RB5xx boards" 
     600        select HW_HAS_PCI 
     601        select IRQ_CPU 
     602        select SYS_HAS_CPU_MIPS32_R1 
     603        select SYS_SUPPORTS_LITTLE_ENDIAN 
     604        select SYS_SUPPORTS_32BIT_KERNEL 
     605        select SWAP_IO_SPACE 
     606        select DMA_NONCOHERENT 
     607        select GENERIC_GPIO 
     608        help 
     609         Support the Mikrotik(tm) Routerboard 500 series, 
     610         such as the RB532. 
     611 
    598612endchoice 
    599613 
    600614source "arch/mips/au1000/Kconfig" 
     
    829843        default "4" if MACH_DECSTATION 
    830844        default "7" if SGI_IP27 || SNI_RM 
    831845        default "4" if PMC_MSP4200_EVAL 
     846        default "4" if MIKROTIK_RB500 
    832847        default "5" 
    833848 
    834849config HAVE_STD_PC_SERIAL_PORT 
  • arch/mips/Makefile

    diff -urN linux-2.6.23.12/arch/mips/Makefile linux-2.6.23.12.new/arch/mips/Makefile
    old new  
    300300cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote 
    301301 
    302302# 
     303# Routerboard 532 board 
     304# 
     305core-$(CONFIG_MIKROTIK_RB500)   += arch/mips/rb500/ 
     306cflags-$(CONFIG_MIKROTIK_RB500) += -Iinclude/asm-mips/rc32434 
     307load-$(CONFIG_MIKROTIK_RB500)   += 0xffffffff80101000 
     308 
     309# 
    303310# For all MIPS, Inc. eval boards 
    304311# 
    305312core-$(CONFIG_MIPS_BOARDS_GEN)  += arch/mips/mips-boards/generic/ 
  • arch/mips/pci/Makefile

    diff -urN linux-2.6.23.12/arch/mips/pci/Makefile linux-2.6.23.12.new/arch/mips/pci/Makefile
    old new  
    4646obj-$(CONFIG_VICTOR_MPC30X)     += fixup-mpc30x.o 
    4747obj-$(CONFIG_ZAO_CAPCELLA)      += fixup-capcella.o 
    4848obj-$(CONFIG_WR_PPMC)           += fixup-wrppmc.o 
     49obj-$(CONFIG_MIKROTIK_RB500)    += pci-rc32434.o ops-rc32434.o fixup-rb500.o 
  • drivers/pci/Makefile

    diff -urN linux-2.6.23.12/drivers/pci/Makefile linux-2.6.23.12.new/drivers/pci/Makefile
    old new  
    3232obj-$(CONFIG_PPC64) += setup-bus.o 
    3333obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o 
    3434obj-$(CONFIG_X86_VISWS) += setup-irq.o 
     35obj-$(CONFIG_MIKROTIK_RB500) += setup-irq.o 
    3536 
    3637# 
    3738# ACPI Related PCI FW Functions 
  • include/asm-mips/bootinfo.h

    diff -urN linux-2.6.23.12/include/asm-mips/bootinfo.h linux-2.6.23.12.new/include/asm-mips/bootinfo.h
    old new  
    208208#define MACH_GROUP_WINDRIVER   28       /* Windriver boards */ 
    209209#define MACH_WRPPMC             1 
    210210 
     211 
     212#define MACH_GROUP_MIKROTIK     29      /* Mikrotik Boards                       */ 
     213#define  MACH_MIKROTIK_RB532    0       /* Mikrotik RouterBoard 532 */ 
     214#define  MACH_MIKROTIK_RB532A   1       /* Mikrotik RouterBoard 532A */ 
     215 
    211216#define CL_SIZE                 COMMAND_LINE_SIZE 
    212217 
    213218const char *get_system_type(void); 
  • include/asm-mips/cpu.h

    diff -urN linux-2.6.23.12/include/asm-mips/cpu.h linux-2.6.23.12.new/include/asm-mips/cpu.h
    old new  
    217217#define CPU_R14000              64 
    218218#define CPU_LOONGSON1           65 
    219219#define CPU_LOONGSON2           66 
     220#define CPU_RC32300             67 
    220221 
    221 #define CPU_LAST                66 
     222#define CPU_LAST                67 
    222223 
    223224/* 
    224225 * ISA Level encodings 
Note: See TracBrowser for help on using the repository browser.