]> git.sur5r.net Git - u-boot/commitdiff
cmd_ide: add support for Kirkwood
authorPrafulla Wadaskar <prafulla@pe-lt078.(none)>
Sat, 7 Aug 2010 11:59:44 +0000 (17:29 +0530)
committerPrafulla Wadaskar <prafulla@marvell.com>
Sat, 7 Aug 2010 23:47:55 +0000 (05:17 +0530)
Added MVSATAC definitions to Kirkwood.
Added support for Kirkwood in cmd_ide.

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
arch/arm/include/asm/arch-kirkwood/kirkwood.h
common/cmd_ide.c

index 9edb0be5f5294b6e1b1225d2b6a4b4a118703e78..0104418b43efea686b51d67adc7933fc73d2e06b 100644 (file)
 #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
index b23db3f1315443df5b95f2e7d8f9732c5aa5a7b3..6aeca767846cfa874548fad6403bcc69dbe73ab3 100644 (file)
@@ -48,6 +48,8 @@
 
 #ifdef CONFIG_ORION5X
 #include <asm/arch/orion5x.h>
+#elif defined CONFIG_KIRKWOOD
+#include <asm/arch/kirkwood.h>
 #endif
 
 #include <ide.h>