Changeset 10966


Ignore:
Timestamp:
11/20/08 11:35:35 (5 years ago)
Author:
BrainSlayer
Message:

support for new wistron boards

Location:
src/linux/ar531x/linux-2.6.23
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/linux/ar531x/linux-2.6.23/arch/mips/atheros/ar5312/board.c

    r10872 r10966  
    301301 
    302302        if (radio) { 
    303 //              printk("radio mask %X \n",*((u32 *) radio)); 
    304303                if (mips_machtype == MACH_ATHEROS_AR5312) { 
    305 //              printk("init wmac 0\n"); 
    306304                        if (*((u32 *) radio) & AR531X_RADIO0_MASK) { 
    307305                                ar5312_wmac[0].dev.platform_data = init_wmac(0); 
     
    310308                } 
    311309                if (*((u32 *) radio) & AR531X_RADIO1_MASK) { 
    312 //              printk("init wmac 1\n"); 
    313310                        ar5312_wmac[1].dev.platform_data = init_wmac(1); 
    314311                        ar5312_devs[dev++] = &ar5312_wmac[1]; 
  • src/linux/ar531x/linux-2.6.23/arch/mips/atheros/board.c

    r10200 r10966  
    5757        if (!found) { 
    5858                addr = NULL; 
    59                 if (strstr((char*)(0xbfc00010),"CA804.SOB") || strstr((char*)(0xbfc00010),"CE801.SOB") || strstr((char*)(0xbfc00010),"OVISCA401") || strstr((char*)(0xbfc00010),"OVISCE401")) 
     59                if (strstr((char*)(0xbfc00010),"CA804.SOB") || strstr((char*)(0xbfc00010),"CE801.SOB") || strstr((char*)(0xbfc00010),"OVISCA401") || strstr((char*)(0xbfc00010),"OVISCE401") || strstr((char*)(0xbfc00010),"RCAAO1") || strstr((char*)(0xbfc00010),"RDAT81.SOB")) 
    6060                 { 
    6161                 
     
    7575                default_config.pciId=0x13; 
    7676                default_config.memCap=0x800f; 
     77                if (strstr((char*)(0xbfc00010),"RCAAO1") || strstr((char*)(0xbfc00010),"RDAT81.SOB")) 
     78                { 
     79                default_config.config=0 | BD_ENET1 | BD_UART0 | BD_RSTFACTORY | BD_SYSLED | BD_WLAN1 | BD_WLAN1_2G_EN | BD_WLAN1_5G_EN;          
     80                } 
     81 
     82 
    7783                memcpy(wmac,(char*)0xbfc00044,6); 
    7884        x=0x100; 
  • src/linux/ar531x/linux-2.6.23/drivers/mtd/maps/ar531x_flash.c

    r9635 r10966  
    176176                                goto out; 
    177177         
    178                             if (strstr(buf+0x10,"CA804.SOB") || strstr(buf+0x10,"CE801.SOB") || strstr(buf+0x10,"OVISCA401") || strstr(buf+0x10,"OVISCE401")) { 
     178                            if (strstr(buf+0x10,"CA804.SOB") || strstr(buf+0x10,"CE801.SOB") || strstr(buf+0x10,"OVISCA401") || strstr(buf+0x10,"OVISCE401") || strstr(buf+0x10,"RCAAO1") || strstr((char*)(0xbfc00010),"RDAT81.SOB")) { 
    179179                                image_info = buf+0x56; 
    180                                 ar531x_partitions[2].size = 0x400000 - 0x70000; /* Velikost kernelu */ 
     180                            ar531x_partitions[2].size = mymtd->size - 0x70000;  /* Velikost kernelu */ 
    181181                            int offset = 0x0; 
    182182                            char *buf = 0xbfc00000; 
     
    188188                                        ar531x_partitions[3].offset=offset;                                      
    189189                                        ar531x_partitions[3].size = ar531x_partitions[2].size-(offset-0x50000);                                  
     190                                        ar531x_partitions[5].offset=mymtd->size-mymtd->erasesize;  
     191                                        ar531x_partitions[4].offset=mymtd->size-(mymtd->erasesize*2);  
    190192                                        break; 
    191193                                    }  
Note: See TracChangeset for help on using the changeset viewer.