From: Prafulla Wadaskar Date: Sat, 7 Aug 2010 11:59:44 +0000 (+0530) Subject: cmd_ide: add support for Kirkwood X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5f30500316ae29eed93aafcc40dfc857a2452203;p=u-boot.git cmd_ide: add support for Kirkwood Added MVSATAC definitions to Kirkwood. Added support for Kirkwood in cmd_ide. Signed-off-by: Prafulla Wadaskar --- diff --git a/arch/arm/include/asm/arch-kirkwood/kirkwood.h b/arch/arm/include/asm/arch-kirkwood/kirkwood.h index 9edb0be5f5..0104418b43 100644 --- a/arch/arm/include/asm/arch-kirkwood/kirkwood.h +++ b/arch/arm/include/asm/arch-kirkwood/kirkwood.h @@ -59,6 +59,11 @@ #define KW_USB20_BASE (KW_REGISTER(0x50000)) #define KW_EGIGA0_BASE (KW_REGISTER(0x72000)) #define KW_EGIGA1_BASE (KW_REGISTER(0x76000)) +#define KW_SATA_BASE (KW_REGISTER(0x80000)) + +/* Kirkwood Sata controller has two ports */ +#define KW_SATA_PORT0_OFFSET 0x2000 +#define KW_SATA_PORT1_OFFSET 0x4000 /* Kirkwood GbE controller has two ports */ #define MAX_MVGBE_DEVS 2 diff --git a/common/cmd_ide.c b/common/cmd_ide.c index b23db3f131..6aeca76784 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -48,6 +48,8 @@ #ifdef CONFIG_ORION5X #include +#elif defined CONFIG_KIRKWOOD +#include #endif #include