Changeset 13252
- Timestamp:
- 11/17/09 11:03:03 (4 years ago)
- Location:
- src/linux/brcm/linux-2.6.23/arch/mips/brcm-boards/bcm947xx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linux/brcm/linux-2.6.23/arch/mips/brcm-boards/bcm947xx/gpio.c
r12951 r13252 156 156 extern int iswnr3500v2; 157 157 extern int iswrt320n; 158 extern int iswrt160nv3; 158 159 static struct class *gpio_class = NULL; 159 160 … … 229 230 si_gpioreserve(gpio_sih, 1 << 4, GPIO_APP_PRIORITY); //wps_status_led 230 231 } 232 233 if (iswrt160nv3) 234 { 235 printk(KERN_EMERG "WRT160Nv3 GPIO Init\n"); 236 si_gpioreserve(gpio_sih, 1 << 1, GPIO_APP_PRIORITY); //pwr led 237 si_gpioreserve(gpio_sih, 1 << 2, GPIO_APP_PRIORITY); //ses_orange 238 si_gpioreserve(gpio_sih, 1 << 4, GPIO_APP_PRIORITY); //ses_white 239 } 231 240 /*if (iswrt300n11) 232 241 { -
src/linux/brcm/linux-2.6.23/arch/mips/brcm-boards/bcm947xx/setup.c
r12995 r13252 140 140 int iswnr3500v2=0; 141 141 int iswrt320n=0; 142 int iswrt160nv3=0; 142 143 EXPORT_SYMBOL (iswrt350n); 143 144 EXPORT_SYMBOL (iswrt300n11); 144 145 EXPORT_SYMBOL (iswnr3500v2); 145 146 EXPORT_SYMBOL (iswrt320n); 147 EXPORT_SYMBOL (iswrt160nv3); 146 148 147 149 void __init … … 178 180 char *cardbus = nvram_get("cardbus"); 179 181 char *boardrev = nvram_get("boardrev"); 182 if (boardrev!=NULL && !strcmp(boardrev,"0x1700") && boardtype!=NULL && !strcmp(boardtype,"0x04cd"))iswrt160nv3=1; 180 183 if (boardrev!=NULL && (!strcmp(boardrev,"0x1213") || !strcmp(boardrev,"02")) && boardtype!=NULL && !strcmp(boardtype,"0x04CF"))iswnr3500v2=1; 181 184 if (boardrev!=NULL && (!strcmp(boardrev,"0x1304") || !strcmp(boardrev,"0x1305")) && boardtype!=NULL && !strcmp(boardtype,"0x04EF"))iswrt320n=1;
Note: See TracChangeset
for help on using the changeset viewer.
