PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/powerpc/platforms/44x/virtex_ml510.c

https://bitbucket.org/abioy/linux
C | 29 lines | 15 code | 3 blank | 11 comment | 0 complexity | a37514e51acafdbe663d38b58d62586d MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0
 1#include <asm/i8259.h>
 2#include <linux/pci.h>
 3#include "44x.h"
 4
 5/**
 6 * ml510_ail_quirk
 7 */
 8static void __devinit ml510_ali_quirk(struct pci_dev *dev)
 9{
10	/* Enable the IDE controller */
11	pci_write_config_byte(dev, 0x58, 0x4c);
12	/* Assign irq 14 to the primary ide channel */
13	pci_write_config_byte(dev, 0x44, 0x0d);
14	/* Assign irq 15 to the secondary ide channel */
15	pci_write_config_byte(dev, 0x75, 0x0f);
16	/* Set the ide controller in native mode */
17	pci_write_config_byte(dev, 0x09, 0xff);
18
19	/* INTB = disabled, INTA = disabled */
20	pci_write_config_byte(dev, 0x48, 0x00);
21	/* INTD = disabled, INTC = disabled */
22	pci_write_config_byte(dev, 0x4a, 0x00);
23	/* Audio = INT7, Modem = disabled. */
24	pci_write_config_byte(dev, 0x4b, 0x60);
25	/* USB = INT7 */
26	pci_write_config_byte(dev, 0x74, 0x06);
27}
28DECLARE_PCI_FIXUP_EARLY(0x10b9, 0x1533, ml510_ali_quirk);
29