public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] arm/ls2085a: Add sata support on qds and rdb board
Date: Tue, 18 Aug 2015 12:01:00 -0700	[thread overview]
Message-ID: <55D380EC.8020409@freescale.com> (raw)
In-Reply-To: <1439804538-47552-2-git-send-email-Yuantian.Tang@freescale.com>



On 08/17/2015 02:42 AM, Yuantian.Tang at freescale.com wrote:
> From: Tang Yuantian <Yuantian.Tang@freescale.com>
> 
> Freescale ARM-based Layerscape LS2085A contain a SATA controller
> which comply with the serial ATA 3.0 specification and the
> AHCI 1.3 specification.
> This patch adds SATA feature on ls2085aqds and ls2085ardb boards.
> 
> Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
> ---
> v2:
> 	- rebase to the latest git tree
> 
>  arch/arm/cpu/armv8/fsl-lsch3/soc.c                | 41 +++++++++++++++++++++++
>  arch/arm/include/asm/arch-fsl-lsch3/config.h      | 20 +++++++++++
>  arch/arm/include/asm/arch-fsl-lsch3/immap_lsch3.h | 25 ++++++++++++++
>  arch/arm/include/asm/arch-fsl-lsch3/soc.h         |  2 +-
>  board/freescale/ls2085aqds/ls2085aqds.c           | 11 ++++++
>  board/freescale/ls2085ardb/ls2085ardb.c           | 11 ++++++
>  6 files changed, 109 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/armv8/fsl-lsch3/soc.c b/arch/arm/cpu/armv8/fsl-lsch3/soc.c
> index 2538001..0e6f07b 100644
> --- a/arch/arm/cpu/armv8/fsl-lsch3/soc.c
> +++ b/arch/arm/cpu/armv8/fsl-lsch3/soc.c
> @@ -11,6 +11,9 @@
>  #include <asm/arch-fsl-lsch3/soc.h>
>  #include <asm/io.h>
>  #include <asm/global_data.h>
> +#include <asm/arch-fsl-lsch3/immap_lsch3.h>
> +#include <ahci.h>
> +#include <scsi.h>
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> @@ -70,12 +73,50 @@ static void erratum_a009203(void)
>  #endif
>  }
>  
> +void ls2085a_sata_init(void)
> +{
> +	struct ccsr_ahci __iomem *ahci_base;
> +
> +	ahci_base = (void __iomem *)CONFIG_SYS_SATA2;
> +	out_le32(&ahci_base->ppcfg, 0xa003fffe);

Please put a comment to explain what this does and avoid using magic numbers.

> +
> +	ahci_base = (void __iomem *)CONFIG_SYS_SATA1;
> +	out_le32(&ahci_base->ppcfg, 0xa003fffe);

Same here.

York

  reply	other threads:[~2015-08-18 19:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17  9:42 [U-Boot] [PATCH v2] arm/ls1021a: Add sata support on qds and twr board Yuantian.Tang at freescale.com
2015-08-17  9:42 ` [U-Boot] [PATCH v2] arm/ls2085a: Add sata support on qds and rdb board Yuantian.Tang at freescale.com
2015-08-18 19:01   ` York Sun [this message]
2015-08-18 19:04 ` [U-Boot] [PATCH v2] arm/ls1021a: Add sata support on qds and twr board York Sun
2015-08-19  2:31   ` Yuantian Tang
2015-08-19  2:41     ` York Sun
2015-08-19  3:23       ` Yuantian Tang
2015-08-19  3:34       ` Yuantian Tang
2015-08-19  3:38         ` York Sun
2015-08-19  3:47           ` Yuantian Tang
2015-08-19  3:57             ` York Sun
2015-08-19  4:36               ` Yuantian Tang
2015-08-19  4:39                 ` York Sun
2015-08-19  4:43                   ` Yuantian Tang
2015-08-19  4:47                     ` York Sun
2015-08-19  4:49                       ` Yuantian Tang
2015-08-19  4:14     ` Kushwaha Prabhakar
2015-08-19  4:47       ` Yuantian Tang
2015-08-19 12:54         ` Kushwaha Prabhakar
2015-08-20  1:21           ` Yuantian Tang
2015-08-20  1:32             ` Kushwaha Prabhakar
2015-08-20  3:58               ` Yuantian Tang

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=55D380EC.8020409@freescale.com \
    --to=yorksun@freescale.com \
    --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