Patchwork [U-Boot,4/4] SMDK55250: Enable SATA

login
register
mail settings
Submitter Vasanth Ananthan
Date Nov. 22, 2012, 1:41 p.m.
Message ID <1353591666-32490-5-git-send-email-vasanthananthan@gmail.com>
Download mbox | patch
Permalink /patch/201048/
State Superseded
Headers show

Comments

Vasanth Ananthan - Nov. 22, 2012, 1:41 p.m.
This patch adds required macros for enabling SATA.

Signed-off-by: Vasanth Ananthan <vasanth.a@samsung.com>
---
 include/configs/smdk5250.h |   11 +++++++++++
 1 file changed, 11 insertions(+)

Patch

diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
index e412da8..123fcc3 100644
--- a/include/configs/smdk5250.h
+++ b/include/configs/smdk5250.h
@@ -97,6 +97,7 @@ 
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_NET
+#define CONFIG_CMD_SATA
 
 #define CONFIG_BOOTDELAY		3
 #define CONFIG_ZERO_BOOTDELAY_CHECK
@@ -259,4 +260,14 @@ 
 /* Enable devicetree support */
 #define CONFIG_OF_LIBFDT
 
+/* Enable SATA */
+#ifdef CONFIG_CMD_SATA
+	#define CONFIG_DWC_AHSATA
+	#define CONFIG_SYS_SATA_MAX_DEVICE      1
+	#define CONFIG_DWC_AHSATA_PORT_ID       0
+	#define CONFIG_DWC_AHSATA_BASE_ADDR     EXYNOS5_SATA_BASE
+	#define CONFIG_LBA48
+	#define CONFIG_LIBATA
+#endif
+
 #endif	/* __CONFIG_H */