Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61858 )
Change subject: sb/intel/i82801ix/azalia.c: Use azalia_audio_init(dev) ......................................................................
sb/intel/i82801ix/azalia.c: Use azalia_audio_init(dev)
Change-Id: I337594e0c6f0aef0068e649c593b9383d4ef8d14 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/southbridge/intel/i82801ix/azalia.c 1 file changed, 1 insertion(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/61858/1
diff --git a/src/southbridge/intel/i82801ix/azalia.c b/src/southbridge/intel/i82801ix/azalia.c index f6af83f..1c57149 100644 --- a/src/southbridge/intel/i82801ix/azalia.c +++ b/src/southbridge/intel/i82801ix/azalia.c @@ -12,10 +12,6 @@
static void azalia_init(struct device *dev) { - u8 *base; - struct resource *res; - u16 codec_mask; - // ESD pci_update_config32(dev, 0x134, ~0x00ff0000, 2 << 16);
@@ -40,20 +36,7 @@ /* Lock some R/WO bits by writing their current value. */ pci_update_config32(dev, 0x74, ~0, 0);
- res = probe_resource(dev, PCI_BASE_ADDRESS_0); - if (!res) - return; - - // NOTE this will break as soon as the Azalia gets a bar above 4G. - // Is there anything we can do about it? - base = res2mmio(res, 0, 0); - printk(BIOS_DEBUG, "Azalia: base = %p\n", base); - codec_mask = codec_detect(base); - - if (codec_mask) { - printk(BIOS_DEBUG, "Azalia: codec_mask = %02x\n", codec_mask); - azalia_codecs_init(base, codec_mask); - } + azalia_audio_init(dev); }
static struct device_operations azalia_ops = {