From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Sat, 14 Aug 2010 16:19:27 +0400 Subject: [U-Boot] [PATCH] Add mvsata support for the Sheevaplug devices In-Reply-To: <4C6635C1.2080507@gmail.com> References: <4C6635C1.2080507@gmail.com> Message-ID: <4C6689CF.8010601@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. GEAK wrote: > Add mvsata support to SHEEVAPLUG > Signed-off-by: G?rald Kerma > --- > include/configs/sheevaplug.h | 29 +++++++++++++++++++++++++++++ > 1 files changed, 29 insertions(+), 0 deletions(-) > diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h > index c5de86e..6a80c15 100644 > --- a/include/configs/sheevaplug.h > +++ b/include/configs/sheevaplug.h [...] > @@ -196,6 +197,34 @@ > #endif /* CONFIG_CMD_USB */ > > /* > + * IDe Support on SATA port0 > + */ > +#ifdef CONFIG_CMD_IDE > +#define __io > +#define CONFIG_CMD_EXT2 > +#define CONFIG_MVSATA_IDE > +#define CONFIG_IDE_PREINIT > +#define CONFIG_MVSATA_IDE_USE_PORT0 > +/* Needs byte-swapping for ATA data register */ > +#define CONFIG_IDE_SWAP_IO > +/* Data, registers and alternate blocks are at the same offset */ > +#define CONFIG_SYS_ATA_DATA_OFFSET (0x0100) > +#define CONFIG_SYS_ATA_REG_OFFSET (0x0100) > +#define CONFIG_SYS_ATA_ALT_OFFSET (0x0100) The parens are useless here. WBR, Sergei