- if ((where == 0x10) && (size == 4))
- ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0xffff);
+ if ((where == 0x10) && (size == 4)) {
+ if (ar71xx_soc == AR71XX_SOC_AR7240)
+ ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0xffff);
+ else
+ ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0x1000ffff);
+ }