mrccache_save();
#endif
- return pirq_init();
+ return 0;
}
int reserve_arch(void)
*/
#include <common.h>
+#include <dm.h>
#include <asm/cache.h>
#include <asm/control_regs.h>
#include <asm/interrupt.h>
int interrupt_init(void)
{
+ struct udevice *dev;
+ int ret;
+
+ /* Try to set up the interrupt router, but don't require one */
+ ret = uclass_first_device(UCLASS_IRQ, &dev);
+ if (ret && ret != -ENODEV)
+ return ret;
+
/*
* When running as an EFI application we are not in control of
* interrupts and should leave them alone.
return 0;
}
-int pirq_init(void)
-{
- struct udevice *dev;
-
- return uclass_first_device(UCLASS_IRQ, &dev);
-}
-
int irq_router_probe(struct udevice *dev)
{
int ret;
return 0;
}
-int arch_misc_init(void)
-{
- return pirq_init();
-}
-
#ifdef CONFIG_GENERATE_MP_TABLE
int mp_determine_pci_dstirq(int bus, int dev, int func, int pirq)
{
mrccache_save();
#endif
- return pirq_init();
+ return 0;
}
void board_final_cleanup(void)
{
unprotect_spi_flash();
- return pirq_init();
+ return 0;
}
*/
void cpu_irq_init(void);
-/**
- * pirq_init() - Initialize platform PIRQ routing
- *
- * This initializes the PIRQ routing on the platform and configures all PCI
- * devices' interrupt line register to a working IRQ number on the 8259 PIC.
- *
- * @return 0 if OK, -ve on error
- */
-int pirq_init(void);
-
#endif /* _ARCH_IRQ_H_ */
#include <configs/x86-common.h>
#define CONFIG_SYS_MONITOR_LEN (1 << 20)
-#define CONFIG_ARCH_MISC_INIT
#define CONFIG_ARCH_EARLY_INIT_R
#define CONFIG_PCI_PNP