Patchwork [U-Boot,7/8] arm kirkwood add MVSATA sheevaplug support

login
register
mail settings
Submitter DrEagle
Date July 7, 2013, 11:48 p.m.
Message ID <51D9FE52.20102@doukki.net>
Download mbox | patch
Permalink /patch/257451/
State New
Delegated to: Prafulla Wadaskar
Headers show

Comments

DrEagle - July 7, 2013, 11:48 p.m.
- add sheevaplug MVSATA driver support

    Signed-off-by: drEagle <uboot@doukki.net>

 include/configs/mv-common.h                    |
 include/configs/sheevaplug.h                   |

Patch

diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h
index 405a842..e917e6f 100644
--- a/include/configs/mv-common.h
+++ b/include/configs/mv-common.h
@@ -142,6 +146,19 @@ 
 #endif
 
 /*
+ * SATA driver configuration
+ */
+#ifdef CONFIG_CMD_IDE
+#define __io
+#define CONFIG_IDE_PREINIT
+#define CONFIG_DOS_PARTITION
+#define CONFIG_MVSATA_IDE_USE_PORT0
+#define CONFIG_MVSATA_IDE_USE_PORT1
+#define CONFIG_SYS_ATA_IDE0_OFFSET	MV_SATA_PORT0_OFFSET
+#define CONFIG_SYS_ATA_IDE1_OFFSET	MV_SATA_PORT1_OFFSET
+#endif /* CONFIG_CMD_IDE */
+
+/*
  * Common USB/EHCI configuration
  */
 #ifdef CONFIG_CMD_USB
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index 83dd8ff..270fd56 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -39,17 +40,24 @@ 
 /*
  * Commands configuration
  */

 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
 #include <config_cmd_default.h>
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ENV
+#define CONFIG_CMD_IDE
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_USB

 /*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot