Changeset 8778
- Timestamp:
- 01/15/08 21:11:02 (5 years ago)
- 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 147 147 }; 148 148 extern int iswrt350n; 149 extern int iswrt300n11; 149 150 150 151 static int __init … … 183 184 //if (nvram_match("disabled_5397", "1")) { 184 185 // printk("5397 switch GPIO-Reset \n"); 186 //} 187 188 USB_SET_LED(USB_DISCONNECT); //2005-02-24 by kanki for USB LED 189 190 } 191 if (iswrt350n || iswrt300n11) 192 { 185 193 sb_gpioreserve(gpio_sbh, 0x4, GPIO_HI_PRIORITY); 186 194 sb_gpioouten(gpio_sbh, 0x4, 0x4, GPIO_HI_PRIORITY); 187 195 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 } 194 197 return 0; 195 198 } -
src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/setup.c
r8761 r8778 164 164 #endif /* CONFIG_SERIAL */ 165 165 int iswrt350n=0; 166 int iswrt300n11=0; 166 167 EXPORT_SYMBOL (iswrt350n); 168 EXPORT_SYMBOL (iswrt300n11); 167 169 void __init 168 170 brcm_setup(void) … … 204 206 #endif 205 207 iswrt350n=1; 206 //char *boardnum = nvram_get("boardnum");208 iswrt300n11=1; 207 209 char *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; 210 char *boothwmodel = nvram_get("boot_hw_model"); 211 char *boothwver = nvram_get("boot_hw_ver"); 211 212 if (boardtype==NULL || strcmp(boardtype,"0x478"))iswrt350n=0; 212 //if (cardbus==NULL || strcmp(cardbus,"1"))iswrt350n=0; 213 214 213 if (boothwmodel==NULL || strcmp(boothwmodel,"WRT300N"))iswrt300n11=0; 214 if (boothwver==NULL || strcmp(boothwver,"1.1"))iswrt300n11=0; 215 215 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE) 216 216 ide_ops = &std_ide_ops;
Note: See TracChangeset
for help on using the changeset viewer.
