public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards
@ 2008-03-28 22:39 Kim Phillips
  2008-03-31  9:00 ` Dave Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Kim Phillips @ 2008-03-28 22:39 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 include/configs/MPC8315ERDB.h |   23 +++++++++++++++++++++++
 include/configs/MPC837XERDB.h |   23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h
index af78726..432fb31 100644
--- a/include/configs/MPC8315ERDB.h
+++ b/include/configs/MPC8315ERDB.h
@@ -349,6 +349,29 @@
 #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
  */
 #ifndef CFG_RAMBOOT
diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h
index 90812e9..eaac525 100644
--- a/include/configs/MPC837XERDB.h
+++ b/include/configs/MPC837XERDB.h
@@ -416,6 +416,29 @@
 #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
  */
 #ifndef CFG_RAMBOOT
-- 
1.5.5.rc0.16.g02b00

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [PATCH] mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards
  2008-03-28 22:39 [U-Boot-Users] [PATCH] mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards Kim Phillips
@ 2008-03-31  9:00 ` Dave Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Liu @ 2008-03-31  9:00 UTC (permalink / raw)
  To: u-boot

> diff --git a/include/configs/MPC8315ERDB.h
> b/include/configs/MPC8315ERDB.h
> index af78726..432fb31 100644
> --- a/include/configs/MPC8315ERDB.h
> +++ b/include/configs/MPC8315ERDB.h
> @@ -349,6 +349,29 @@
>  #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
> +
> +/*

Kim, I tested the SATA on MPC8315ERDB, it is passed!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-31  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 22:39 [U-Boot-Users] [PATCH] mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards Kim Phillips
2008-03-31  9:00 ` Dave Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox