From e22320e51878054af4863c7b8ee1f7c76f82030f Mon Sep 17 00:00:00 2001 From: Jason Wessel Date: Thu, 24 Jun 2010 04:10:55 -0700 Subject: [PATCH] qemu_ppc: enable IDE support Signed-off-by: Bruce Ashfield --- drivers/ide/Kconfig | 2 +- drivers/ide/ide-generic.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig index 8fb46aab2d87..da2d105db376 100644 --- a/drivers/ide/Kconfig +++ b/drivers/ide/Kconfig @@ -197,7 +197,7 @@ comment "IDE chipset support/bugfixes" config IDE_GENERIC tristate "generic/default IDE chipset support" - depends on ALPHA || X86 || IA64 || M32R || MIPS || ARCH_RPC + depends on ALPHA || X86 || IA64 || M32R || MIPS || ARCH_RPC || PPC_QEMU default ARM && ARCH_RPC help This is the generic IDE driver. This driver attaches to the diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c index 54d7c4685d23..eb74ba5423f7 100644 --- a/drivers/ide/ide-generic.c +++ b/drivers/ide/ide-generic.c @@ -45,6 +45,9 @@ static const int legacy_irqs[] = { PLD_IRQ_CFIREQ, PLD_IRQ_IDEIREQ }; #elif defined(CONFIG_ALPHA) static const u16 legacy_bases[] = { 0x1f0, 0x170, 0x1e8, 0x168 }; static const int legacy_irqs[] = { 14, 15, 11, 10 }; +#elif defined(CONFIG_PPC_QEMU) +static const u16 legacy_bases[] = { 0x1f0, 0x170, 0x1e8, 0x168 }; +static const int legacy_irqs[] = { 13, 13, 11, 10 }; #else static const u16 legacy_bases[] = { 0x1f0, 0x170, 0x1e8, 0x168, 0x1e0, 0x160 }; static const int legacy_irqs[] = { 14, 15, 11, 10, 8, 12 }; -- 1.8.1.2