diff mbox

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

Message ID 1460256336-30436-36-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass April 10, 2016, 2:45 a.m. UTC
Enable building the IDE code for sandbox.

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

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

Comments

Stephen Warren April 12, 2016, 8:50 p.m. UTC | #1
On 04/09/2016 08:45 PM, Simon Glass wrote:
> Enable building the IDE code for sandbox.

It might be worth mentioning dumy/fake/compile-only in the commit 
subject/description lest anyone think they can actually try out emulated 
devices?
Simon Glass May 1, 2016, 6:56 p.m. UTC | #2
On 12 April 2016 at 14:50, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 04/09/2016 08:45 PM, Simon Glass wrote:
>>
>> Enable building the IDE code for sandbox.
>
>
> It might be worth mentioning dumy/fake/compile-only in the commit
> subject/description lest anyone think they can actually try out emulated
> devices?

OK will do.

- Simon
diff mbox

Patch

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