source: trunk/target/linux/lantiq/patches/110-machine.patch @ 24526

Last change on this file since 24526 was 24526, checked in by blogic, 6 years ago

[lantiq] adds new lantiq kernel. once the codebase is fully tested and know to be working on all the devices previously supported by ifxmips, we will drop ifxmips support.

File size: 1.2 KB
  • arch/mips/lantiq/setup.c

    a b  
    1313#include <linux/ioport.h> 
    1414 
    1515#include <lantiq.h> 
    16 #include <lantiq_regs.h> 
     16 
     17#include <machine.h> 
    1718 
    1819void __init 
    1920plat_mem_setup(void) 
    plat_mem_setup(void) 
    4647        memsize *= 1024 * 1024; 
    4748        add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); 
    4849} 
     50 
     51static int __init 
     52lq_machine_setup(void) 
     53{ 
     54        mips_machine_setup(); 
     55        return 0; 
     56} 
     57 
     58static void __init 
     59mach_generic_init(void) 
     60{ 
     61} 
     62 
     63MIPS_MACHINE(LANTIQ_MACH_GENERIC, 
     64                        "Generic", 
     65                        "Generic", 
     66                        mach_generic_init); 
     67 
     68arch_initcall(lq_machine_setup); 
     69 
     70/* for backward compatibility, define "board=" as alias for "machtype=" */ 
     71__setup("board=", mips_machtype_setup); 
  • new file arch/mips/include/asm/mach-lantiq/machine.h

    - +  
     1#include <asm/mips_machine.h> 
     2 
     3enum lantiq_mach_type { 
     4        LANTIQ_MACH_GENERIC, 
     5 
     6        /* FALCON */ 
     7        LANTIQ_MACH_EASY98000,          /* Falcon Eval Board, NOR Flash */ 
     8        LANTIQ_MACH_EASY98020,          /* Falcon Reference Board */ 
     9 
     10        /* XWAY */ 
     11        LANTIQ_MACH_EASY4010,           /* Twinpass evalkit */ 
     12        LANTIQ_MACH_EASY50712,          /* Danube evalkit */ 
     13        LANTIQ_MACH_EASY50812,          /* AR9 eval board */ 
     14}; 
Note: See TracBrowser for help on using the repository browser.