[U-Boot] [PATCH] Add mvsata support for the Sheevaplug devices

Sergei Shtylyov sshtylyov at mvista.com
Sat Aug 14 14:19:27 CEST 2010


Hello.

GEAK wrote:

>     Add mvsata support to SHEEVAPLUG

> Signed-off-by: Gérald Kerma <geraker at gmail.com>
> ---
>  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


More information about the U-Boot mailing list