mpc83xx: enable the SATA interface on mpc837xemds board
authorDave Liu <r63238@freescale.com>
Wed, 26 Mar 2008 14:57:19 +0000 (22:57 +0800)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 28 Mar 2008 19:15:44 +0000 (14:15 -0500)
Enable the first two SATA interfaces on MPC837xEMDS board,
The two SATA ports are on LYNX1. (SATA0/1 on J4/5)

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
include/configs/MPC837XEMDS.h

index 4006026d6ddba78997dcbcda2ba71446e87d3cd5..7c4e76e27324be72a7391bda98099991f617187c 100644 (file)
 #define CONFIG_FSL_SERDES1     0xe3000
 #define CONFIG_FSL_SERDES2     0xe3100
 
+/*
+ * 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
+
 /*
  * Environment
  */