[U-Boot] [PATCH 35/44] dm: sandbox: Enable IDE

Simon Glass sjg at chromium.org
Sun Apr 10 04:45:27 CEST 2016


Enable building the IDE code for sandbox.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/configs/sandbox.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index cc22467..08a45f9 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -210,4 +210,14 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_DATE
 
+#define CONFIG_CMD_IDE
+#define CONFIG_SYS_IDE_MAXBUS		1
+#define CONFIG_SYS_ATA_IDE0_OFFSET	0
+#define CONFIG_SYS_IDE_MAXDEVICE	2
+#define CONFIG_SYS_ATA_BASE_ADDR	0x100
+#define CONFIG_SYS_ATA_DATA_OFFSET	0
+#define CONFIG_SYS_ATA_REG_OFFSET	1
+#define CONFIG_SYS_ATA_ALT_OFFSET	2
+#define CONFIG_SYS_ATA_STRIDE		4
+
 #endif
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list