summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39419ce)
raw | patch | inline | side by side (parent: 39419ce)
author | Albert Aribaud <[albert.aribaud@free.fr]> | |
Sat, 7 Aug 2010 23:47:06 +0000 (05:17 +0530) | ||
committer | Prafulla Wadaskar <prafulla@marvell.com> | |
Sat, 7 Aug 2010 23:47:06 +0000 (05:17 +0530) |
Add MVSATAHC definitions to orion5x.
Add support for orion5x in cmd_ide.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
Add support for orion5x in cmd_ide.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
arch/arm/include/asm/arch-orion5x/orion5x.h | patch | blob | history | |
common/cmd_ide.c | patch | blob | history |
diff --git a/arch/arm/include/asm/arch-orion5x/orion5x.h b/arch/arm/include/asm/arch-orion5x/orion5x.h
index d257b66581d948a9e042c4e45960c40fadfe88b1..e3d3f76dbb519b94381c0aa114302bf28e6af021 100644 (file)
#define ORION5X_USB20_PORT0_BASE (ORION5X_REGISTER(0x50000))
#define ORION5X_USB20_PORT1_BASE (ORION5X_REGISTER(0xA0000))
#define ORION5X_EGIGA_BASE (ORION5X_REGISTER(0x72000))
+#define ORION5X_SATA_BASE (ORION5X_REGISTER(0x80000))
+#define ORION5X_SATA_PORT0_OFFSET 0x2000
+#define ORION5X_SATA_PORT1_OFFSET 0x4000
/* Orion5x GbE controller has a single port */
#define MAX_MVGBE_DEVS 1
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index d423e53fe3652100e8ba4b683553627b7a5b0a86..b23db3f1315443df5b95f2e7d8f9732c5aa5a7b3 100644 (file)
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
/*
* IDE support
*/
+
#include <common.h>
#include <config.h>
#include <watchdog.h>
#include <mpc5xxx.h>
#endif
+#ifdef CONFIG_ORION5X
+#include <asm/arch/orion5x.h>
+#endif
+
#include <ide.h>
#include <ata.h>