Skip to contentSkip to conversation

mpc83xx: enable the SATA interface on mpc837xemds board

PATCH Superseded Dave Liu 1 participant 1 message Mar 20, 2008

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH v2 9/9 mpc83xx: enable the SATA interface on mpc837xemds board

Enable the first two SATA interfaces on MPC837xEMDS board, The two SATA ports are on LYNX1. (SATA0/1 on J4/5)

---
 include/configs/MPC837XEMDS.h |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
include/configs/MPC837XEMDS.h +23 -0
index 2ac3d37..f17a2d8 100644
@@ -338,6 +338,29 @@
 #define CONFIG_FSL_SERDES1_VDD_1V	1
 
 /*
+ * SATA
+ */
+#define CONFIG_LIBATA
+#define CONFIG_FSL_SATA
+
+#define CFG_SATA_MAX_DEVICE	2
+#define CONFIG_SATA1
+#define CFG_SATA1_OFFSET	0x18000
+#define CFG_SATA1		(CFG_IMMR + CFG_SATA1_OFFSET)
+#define CFG_SATA1_FLAGS		FLAGS_DMA
+#define CONFIG_SATA2
+#define CFG_SATA2_OFFSET	0x19000
+#define CFG_SATA2		(CFG_IMMR + CFG_SATA2_OFFSET)
+#define CFG_SATA2_FLAGS		FLAGS_DMA
+
+#ifdef CONFIG_FSL_SATA
+#define CONFIG_LBA48
+#define CONFIG_CMD_SATA
+#define CONFIG_DOS_PARTITION
+#define CONFIG_CMD_EXT2
+#endif
+
+/*
  * General PCI
  * Addresses are mapped 1-1.
  */
Signature · 1 line
1.5.4.rc4