diff options
Diffstat (limited to 'arch/arm/mach-orion5x/dns323-setup.c')
-rw-r--r-- | arch/arm/mach-orion5x/dns323-setup.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index d67790ef236e..f9430f5ca9a8 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -43,11 +43,16 @@ | |||
43 | 43 | ||
44 | static int __init dns323_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 44 | static int __init dns323_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) |
45 | { | 45 | { |
46 | /* PCI-E */ | 46 | int irq; |
47 | if (dev->bus->number == orion5x_pcie_local_bus_nr()) | ||
48 | return IRQ_ORION5X_PCIE0_INT; | ||
49 | 47 | ||
50 | pr_err("%s: requested mapping for unknown bus\n", __func__); | 48 | /* |
49 | * Check for devices with hard-wired IRQs. | ||
50 | */ | ||
51 | irq = orion5x_pci_map_irq(dev, slot, pin); | ||
52 | if (irq != -1) | ||
53 | return irq; | ||
54 | |||
55 | pr_err("%s: requested mapping for unknown device\n", __func__); | ||
51 | 56 | ||
52 | return -1; | 57 | return -1; |
53 | } | 58 | } |
@@ -220,19 +225,16 @@ static struct platform_device *dns323_plat_devices[] __initdata = { | |||
220 | static struct i2c_board_info __initdata dns323_i2c_devices[] = { | 225 | static struct i2c_board_info __initdata dns323_i2c_devices[] = { |
221 | { | 226 | { |
222 | I2C_BOARD_INFO("g760a", 0x3e), | 227 | I2C_BOARD_INFO("g760a", 0x3e), |
223 | .type = "g760a", | ||
224 | }, | 228 | }, |
225 | #if 0 | 229 | #if 0 |
226 | /* this entry requires the new-style driver model lm75 driver, | 230 | /* this entry requires the new-style driver model lm75 driver, |
227 | * for the meantime "insmod lm75.ko force_lm75=0,0x48" is needed */ | 231 | * for the meantime "insmod lm75.ko force_lm75=0,0x48" is needed */ |
228 | { | 232 | { |
229 | I2C_BOARD_INFO("lm75", 0x48), | 233 | I2C_BOARD_INFO("g751", 0x48), |
230 | .type = "g751", | ||
231 | }, | 234 | }, |
232 | #endif | 235 | #endif |
233 | { | 236 | { |
234 | I2C_BOARD_INFO("rtc-m41t80", 0x68), | 237 | I2C_BOARD_INFO("m41t80", 0x68), |
235 | .type = "m41t80", | ||
236 | } | 238 | } |
237 | }; | 239 | }; |
238 | 240 | ||
@@ -253,9 +255,9 @@ static void __init dns323_init(void) | |||
253 | */ | 255 | */ |
254 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); | 256 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); |
255 | 257 | ||
256 | /* DNS-323 has a Marvell 88X7042 SATA controller attached via PCIE | 258 | /* DNS-323 has a Marvell 88X7042 SATA controller attached via PCIe |
257 | * | 259 | * |
258 | * Open a special address decode windows for the PCIE WA. | 260 | * Open a special address decode windows for the PCIe WA. |
259 | */ | 261 | */ |
260 | orion5x_setup_pcie_wa_win(ORION5X_PCIE_WA_PHYS_BASE, | 262 | orion5x_setup_pcie_wa_win(ORION5X_PCIE_WA_PHYS_BASE, |
261 | ORION5X_PCIE_WA_SIZE); | 263 | ORION5X_PCIE_WA_SIZE); |