Changeset 12232


Ignore:
Timestamp:
2008-08-07T10:49:23+02:00 (10 years ago)
Author:
juhosg
Message:

[adm5120] add alternative board id for the ZyXEL P-334WT

Location:
trunk/target/linux/adm5120/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/prom.c

    r10328 r12232  
    138138        ZYXEL_BOARD(ZYNOS_BOARD_P334WHD, MACH_ADM5120_P334WHD), 
    139139        ZYXEL_BOARD(ZYNOS_BOARD_P334WT, MACH_ADM5120_P334WT), 
     140        ZYXEL_BOARD(ZYNOS_BOARD_P334WT_ALT,     MACH_ADM5120_P334WT), 
    140141        ZYXEL_BOARD(ZYNOS_BOARD_P335,   MACH_ADM5120_P335), 
    141142        ZYXEL_BOARD(ZYNOS_BOARD_P335PLUS, MACH_ADM5120_P335PLUS), 
     
    145146static unsigned long __init detect_machtype_bootbase(void) 
    146147{ 
    147         unsigned long ret; 
    148148        int i; 
    149149 
    150         ret = MACH_ADM5120_GENERIC; 
    151150        for (i = 0; i < ARRAY_SIZE(zynos_boards); i++) { 
    152151                if (zynos_boards[i].vendor_id == bootbase_info.vendor_id && 
    153152                        zynos_boards[i].board_id == bootbase_info.board_id) { 
    154                         ret = zynos_boards[i].mach_type; 
     153                        return zynos_boards[i].mach_type; 
    155154                        break; 
    156155                } 
    157156        } 
    158157 
    159         return ret; 
     158        printk(KERN_WARNING "Unknown ZyXEL model (%u)\n", 
     159                                bootbase_info.board_id); 
     160        return MACH_ADM5120_GENERIC; 
    160161} 
    161162 
  • trunk/target/linux/adm5120/files/include/asm-mips/mach-adm5120/prom/zynos.h

    r10305 r12232  
    6767#define ZYNOS_BOARD_P334WHD     0x00E1  /* Prestige 334WHD */ 
    6868#define ZYNOS_BOARD_P334WT      0x9FEF  /* Prestige 334WT */ 
     69#define ZYNOS_BOARD_P334WT_ALT  0x9F02  /* Prestige 334WT alternative */ 
    6970#define ZYNOS_BOARD_P335        0x9FED  /* Prestige 335/335WT */ 
    7071#define ZYNOS_BOARD_P335PLUS    0x0025  /* Prestige 335Plus */ 
Note: See TracChangeset for help on using the changeset viewer.