From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Liu Date: Mon, 31 Mar 2008 17:00:32 +0800 Subject: [U-Boot-Users] [PATCH] mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards In-Reply-To: <20080328173905.231afda4.kim.phillips@freescale.com> References: <20080328173905.231afda4.kim.phillips@freescale.com> Message-ID: <1206954033.3662.23.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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!