Path: blob/master/arch/powerpc/platforms/44x/virtex_ml510.c
10820 views
#include <asm/i8259.h>1#include <linux/pci.h>2#include "44x.h"34/**5* ml510_ail_quirk6*/7static void __devinit ml510_ali_quirk(struct pci_dev *dev)8{9/* Enable the IDE controller */10pci_write_config_byte(dev, 0x58, 0x4c);11/* Assign irq 14 to the primary ide channel */12pci_write_config_byte(dev, 0x44, 0x0d);13/* Assign irq 15 to the secondary ide channel */14pci_write_config_byte(dev, 0x75, 0x0f);15/* Set the ide controller in native mode */16pci_write_config_byte(dev, 0x09, 0xff);1718/* INTB = disabled, INTA = disabled */19pci_write_config_byte(dev, 0x48, 0x00);20/* INTD = disabled, INTC = disabled */21pci_write_config_byte(dev, 0x4a, 0x00);22/* Audio = INT7, Modem = disabled. */23pci_write_config_byte(dev, 0x4b, 0x60);24/* USB = INT7 */25pci_write_config_byte(dev, 0x74, 0x06);26}27DECLARE_PCI_FIXUP_EARLY(0x10b9, 0x1533, ml510_ali_quirk);28293031