Changeset 8778


Ignore:
Timestamp:
01/15/08 21:11:02 (5 years ago)
Author:
BrainSlayer
Message:

maybe wrt300nv1.1 solution

Location:
src/linux/brcm/linux.v24_2/arch/mips/bcm947xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/gpio.c

    r8761 r8778  
    147147}; 
    148148extern int iswrt350n; 
     149extern int iswrt300n11; 
    149150 
    150151static int __init 
     
    183184        //if (nvram_match("disabled_5397", "1")) { 
    184185//              printk("5397 switch GPIO-Reset \n"); 
     186        //} 
     187                 
     188        USB_SET_LED(USB_DISCONNECT); //2005-02-24 by kanki for USB LED 
     189 
     190} 
     191if (iswrt350n || iswrt300n11) 
     192{ 
    185193                sb_gpioreserve(gpio_sbh, 0x4, GPIO_HI_PRIORITY); 
    186194                sb_gpioouten(gpio_sbh, 0x4, 0x4, GPIO_HI_PRIORITY); 
    187195                sb_gpioout(gpio_sbh, 0x4, 0x4, GPIO_HI_PRIORITY); 
    188         //} 
    189                  
    190         USB_SET_LED(USB_DISCONNECT); //2005-02-24 by kanki for USB LED 
    191  
    192 } 
    193  
     196} 
    194197        return 0; 
    195198} 
  • src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/setup.c

    r8761 r8778  
    164164#endif /* CONFIG_SERIAL */ 
    165165int iswrt350n=0; 
     166int iswrt300n11=0; 
    166167EXPORT_SYMBOL (iswrt350n); 
     168EXPORT_SYMBOL (iswrt300n11); 
    167169void __init 
    168170brcm_setup(void) 
     
    204206#endif 
    205207iswrt350n=1; 
    206 //char *boardnum = nvram_get("boardnum"); 
     208iswrt300n11=1; 
    207209char *boardtype = nvram_get("boardtype"); 
    208 //char *cardbus = nvram_get("cardbus"); 
    209 //char *boardflags = nvram_get("boardflags"); 
    210 //if (boardnum==NULL || strcmp(boardnum,"42"))iswrt350n=0; 
     210char *boothwmodel = nvram_get("boot_hw_model"); 
     211char *boothwver = nvram_get("boot_hw_ver"); 
    211212if (boardtype==NULL || strcmp(boardtype,"0x478"))iswrt350n=0; 
    212 //if (cardbus==NULL || strcmp(cardbus,"1"))iswrt350n=0; 
    213  
    214  
     213if (boothwmodel==NULL || strcmp(boothwmodel,"WRT300N"))iswrt300n11=0; 
     214if (boothwver==NULL || strcmp(boothwver,"1.1"))iswrt300n11=0; 
    215215#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) 
    216216        ide_ops = &std_ide_ops; 
Note: See TracChangeset for help on using the changeset viewer.