[U-Boot] [PATCH V3 4/4] edminiv2: add cmd_ide support
Prafulla Wadaskar
prafulla at marvell.com
Mon Jul 12 08:46:43 CEST 2010
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Friday, July 09, 2010 12:11 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] [PATCH V3 4/4] edminiv2: add cmd_ide support
>
> This patch uses mv_sata_ide and cmd_ide to enable the use of the
> integrated SATAHC controller port 1.
>
> Signed-off-by: Albert Aribaud <albert.aribaud at free.fr>
> ---
> board/LaCie/edminiv2/edminiv2.c | 5 ++++
> include/configs/edminiv2.h | 47
> +++++++++++++++++++++++++++++++++++++-
> 2 files changed, 50 insertions(+), 2 deletions(-)
>
> diff --git a/board/LaCie/edminiv2/edminiv2.c
> b/board/LaCie/edminiv2/edminiv2.c
> index 54c0ffe..6336429 100644
> --- a/board/LaCie/edminiv2/edminiv2.c
> +++ b/board/LaCie/edminiv2/edminiv2.c
> @@ -88,5 +88,10 @@ int board_init(void)
> /* boot parameter start at 256th byte of RAM base */
> gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
>
> + /* Enable SATA ports if SATA IDE was configured */
> +#if defined(CONFIG_MV_SATA_IDE)
> + mv_sata_ide_initialize_port(orion5x_port1_sata_registers);
> +#endif
> +
> return 0;
> }
> diff --git a/include/configs/edminiv2.h b/include/configs/edminiv2.h
> index c3d95a0..1a61437 100644
> --- a/include/configs/edminiv2.h
> +++ b/include/configs/edminiv2.h
> @@ -52,6 +52,12 @@
> #define CONFIG_SYS_HZ 1000
>
> /*
> + * __io is necessary for cmd_ide to compile
> + */
> +
> +#define __io
> +
> +/*
> * Board-specific values for Orion5x MPP low level init:
> * - MPPs 12 to 15 are SATA LEDs (mode 5)
> * - Others are GPIO/unused (mode 3 for MPP0, mode 5 for
> @@ -60,7 +66,7 @@
>
> #define ORION5X_MPP0_7 0x00000003
> #define ORION5X_MPP8_15 0x55550000
> -#define ORION5X_MPP16_23 0x00000000
> +#define ORION5X_MPP16_23 0x00005555
>
> /*
> * Board-specific values for Orion5x GPIO low level init:
> @@ -74,7 +80,6 @@
> */
>
> #define ORION5X_GPIO_OUT_ENABLE 0x03fcffff
> -#define ORION5X_GPIO_OUT_VALUE 0x03fcffff
Why did you removed this?
Regards..
Prafulla . .
More information about the U-Boot
mailing list