Ignore:
Timestamp:
2010-03-26T23:35:41+01:00 (6 years ago)
Author:
nbd
Message:

ar71xx: add support for ar7241 and ar7242

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/dev-usb.c

    r18940 r20494  
    129129        ar71xx_usb_ctrl_wr(USB_CTRL_REG_FLADJ, 0x3); 
    130130 
    131         ar71xx_ohci_device.resource = ar7240_ohci_resources; 
    132         ar71xx_ohci_device.num_resources = ARRAY_SIZE(ar7240_ohci_resources); 
    133  
    134         platform_device_register(&ar71xx_ohci_device); 
     131        if (ar71xx_soc == AR71XX_SOC_AR7241 || ar71xx_soc == AR71XX_SOC_AR7242) { 
     132                ar71xx_ehci_data.is_ar91xx = 1; 
     133                ar71xx_ehci_device.resource = ar7240_ohci_resources; 
     134                ar71xx_ehci_device.num_resources = ARRAY_SIZE(ar7240_ohci_resources); 
     135                platform_device_register(&ar71xx_ehci_device); 
     136        } else { 
     137                ar71xx_ohci_device.resource = ar7240_ohci_resources; 
     138                ar71xx_ohci_device.num_resources = ARRAY_SIZE(ar7240_ohci_resources); 
     139                platform_device_register(&ar71xx_ohci_device); 
     140        } 
    135141} 
    136142 
     
    154160        switch (ar71xx_soc) { 
    155161        case AR71XX_SOC_AR7240: 
     162        case AR71XX_SOC_AR7241: 
     163        case AR71XX_SOC_AR7242: 
    156164                ar7240_usb_setup(); 
    157165                break; 
Note: See TracChangeset for help on using the changeset viewer.