From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] wandboard: enable SATA with imx6q
Date: Sat, 18 Jun 2016 11:18:17 +0200 [thread overview]
Message-ID: <576511D9.5020707@denx.de> (raw)
In-Reply-To: <1465461207-12660-1-git-send-email-gilles.chanteperdrix@xenomai.org>
Hi Gilles,
On 09/06/2016 10:33, Gilles Chanteperdrix wrote:
> Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> ---
> board/wandboard/wandboard.c | 6 ++++++
> include/configs/wandboard.h | 12 ++++++++++++
> 2 files changed, 18 insertions(+)
>
> diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
> index 4ce74cd..8340dd1 100644
> --- a/board/wandboard/wandboard.c
> +++ b/board/wandboard/wandboard.c
> @@ -345,6 +345,12 @@ int board_early_init_f(void)
> #if defined(CONFIG_VIDEO_IPUV3)
> setup_display();
> #endif
> +#ifdef CONFIG_CMD_SATA
> + /* Only mx6q wandboard has SATA */
> + if (is_cpu_type(MXC_CPU_MX6Q))
> + setup_sata();
> +#endif
> +
> return 0;
> }
>
> diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h
> index 99f5c0c..92af6543 100644
> --- a/include/configs/wandboard.h
> +++ b/include/configs/wandboard.h
> @@ -28,6 +28,18 @@
> #define CONFIG_MXC_UART
> #define CONFIG_MXC_UART_BASE UART1_BASE
>
> +/* SATA Configs */
> +
> +#define CONFIG_CMD_SATA
> +#ifdef CONFIG_CMD_SATA
> +#define CONFIG_DWC_AHSATA
> +#define CONFIG_SYS_SATA_MAX_DEVICE 1
> +#define CONFIG_DWC_AHSATA_PORT_ID 0
> +#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
> +#define CONFIG_LBA48
> +#define CONFIG_LIBATA
> +#endif
> +
> /* Command definition */
> #define CONFIG_CMD_BMODE
>
Fine with me - I applied to -next branch.
Added Fabio in CC as board maintainer - I van still change before this
flows into master branch.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2016-06-18 9:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 8:33 [U-Boot] [PATCH] wandboard: enable SATA with imx6q Gilles Chanteperdrix
2016-06-18 9:18 ` Stefano Babic [this message]
2016-06-18 14:10 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=576511D9.5020707@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox