diff options
author | Jason Jin <jason.jin@freescale.com> | 2007-05-02 17:53:38 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-05-10 00:01:09 -0400 |
commit | 742226c579c573c24386aaf41969a01ee058b97e (patch) | |
tree | 57e9a0fbd6cd58b0cdaa307ee72376858a91909d /arch/powerpc | |
parent | 828765269efaafbf8973bb6e41d10970ee4effc3 (diff) |
[POWERPC] 86xx: Enable the AC97 interface on 8641D board.
HD interface and AC97 interface share some pins and they are enabled at
the same time, In order to use AC97 interface, we need to disable the HD
interface first.
Signed-off-by:Jason Jin<jason.jin@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 90877565caa3..1051702c8d4f 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -168,7 +168,7 @@ static void __devinit quirk_uli1575(struct pci_dev *dev) | |||
168 | { | 168 | { |
169 | unsigned short temp; | 169 | unsigned short temp; |
170 | struct pci_controller *hose = pci_bus_to_host(dev->bus); | 170 | struct pci_controller *hose = pci_bus_to_host(dev->bus); |
171 | unsigned char irq2pin[16]; | 171 | unsigned char irq2pin[16], c; |
172 | unsigned long pirq_map_word = 0; | 172 | unsigned long pirq_map_word = 0; |
173 | u32 irq; | 173 | u32 irq; |
174 | int i; | 174 | int i; |
@@ -288,6 +288,11 @@ static void __devinit quirk_uli1575(struct pci_dev *dev) | |||
288 | outb(0x1e, 0x4d1); | 288 | outb(0x1e, 0x4d1); |
289 | 289 | ||
290 | #undef ULI1575_SET_DEV_IRQ | 290 | #undef ULI1575_SET_DEV_IRQ |
291 | |||
292 | /* Disable the HD interface and enable the AC97 interface. */ | ||
293 | pci_read_config_byte(dev, 0xb8, &c); | ||
294 | c &= 0x7f; | ||
295 | pci_write_config_byte(dev, 0xb8, c); | ||
291 | } | 296 | } |
292 | 297 | ||
293 | static void __devinit quirk_uli5288(struct pci_dev *dev) | 298 | static void __devinit quirk_uli5288(struct pci_dev *dev) |