mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards
authorKim Phillips <kim.phillips@freescale.com>
Fri, 28 Mar 2008 19:31:23 +0000 (14:31 -0500)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 28 Mar 2008 19:31:23 +0000 (14:31 -0500)
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
include/configs/MPC8315ERDB.h
include/configs/MPC837XERDB.h

index af7872628ed15575778b63a61424fef6d9471e70..432fb311de4a15686b14e76d0e80fa7448ff426a 100644 (file)
 /* Options are: eTSEC[0-1] */
 #define CONFIG_ETHPRIME                "eTSEC1"
 
+/*
+ * 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
  */
index 90812e92a9dd5865c562d9c160fbd51278bba071..eaac525a35555c532886e50fd622298c30ab42f4 100644 (file)
 
 #endif
 
+/*
+ * 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
  */