From patchwork Mon Jul 9 10:40:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 941240 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41PPDy2X7dz9s1B for ; Mon, 9 Jul 2018 22:06:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0C65EC21DFB; Mon, 9 Jul 2018 12:05:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BDEA2C21E36; Mon, 9 Jul 2018 12:04:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 872E1C21DF3; Mon, 9 Jul 2018 10:42:40 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lists.denx.de (Postfix) with ESMTPS id 67C7DC21D4A for ; Mon, 9 Jul 2018 10:42:39 +0000 (UTC) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EFE5C1A0007; Mon, 9 Jul 2018 12:42:38 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (inv1260.us-phx01.nxp.com [134.27.49.11]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AFC351A0010; Mon, 9 Jul 2018 12:42:38 +0200 (CEST) Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by inv1260.na-rdc02.nxp.com (Postfix) with ESMTP id 0ED1840C72; Mon, 9 Jul 2018 03:42:38 -0700 (MST) Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w69AgYe6029942; Mon, 9 Jul 2018 03:42:35 -0700 From: peng.ma@nxp.com To: york.sun@nxp.com Date: Mon, 9 Jul 2018 18:40:33 +0800 Message-Id: <20180709104035.36469-1-peng.ma@nxp.com> X-Mailer: git-send-email 2.14.1 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Mon, 09 Jul 2018 12:04:38 +0000 Cc: andy.tang@nxp.com, Peng Ma , michal.simek@xilinx.com, u-boot@lists.denx.de, fabio.estevam@nxp.com, yinbo.zhu@nxp.com, mingkai.hu@nxp.com Subject: [U-Boot] [PATCH 1/3] armv8: dts: fsl-ls1043a: add sata node support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Peng Ma Add sata node to support ls1043a. Signed-off-by: Peng Ma --- arch/arm/dts/fsl-ls1043a-qds.dtsi | 4 ++++ arch/arm/dts/fsl-ls1043a.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a-qds.dtsi b/arch/arm/dts/fsl-ls1043a-qds.dtsi index addb9ab..3841aee 100644 --- a/arch/arm/dts/fsl-ls1043a-qds.dtsi +++ b/arch/arm/dts/fsl-ls1043a-qds.dtsi @@ -174,3 +174,7 @@ &lpuart0 { status = "okay"; }; + +&sata { + status = "okay"; +}; diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index a804f51..bb70992 100644 --- a/arch/arm/dts/fsl-ls1043a.dtsi +++ b/arch/arm/dts/fsl-ls1043a.dtsi @@ -287,5 +287,13 @@ ranges = <0x81000000 0x0 0x00000000 0x50 0x00020000 0x0 0x00010000 /* downstream I/O */ 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ }; + + sata: sata@3200000 { + compatible = "fsl,ls1043a-ahci"; + reg = <0x0 0x3200000 0x0 0x10000>; + interrupts = <0 69 4>; + clocks = <&clockgen 4 0>; + status = "disabled"; + }; }; }; From patchwork Mon Jul 9 10:40:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 941241 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41PPFr0VN7z9rxs for ; Mon, 9 Jul 2018 22:06:55 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A99D5C21E35; Mon, 9 Jul 2018 12:05:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B2328C21E68; Mon, 9 Jul 2018 12:04:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1A2ACC21DF3; Mon, 9 Jul 2018 10:42:44 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lists.denx.de (Postfix) with ESMTPS id 3207EC21D4A for ; Mon, 9 Jul 2018 10:42:42 +0000 (UTC) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0B5D9200031; Mon, 9 Jul 2018 12:42:42 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (inv1260.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C21BE200024; Mon, 9 Jul 2018 12:42:41 +0200 (CEST) Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by inv1260.na-rdc02.nxp.com (Postfix) with ESMTP id 3953C40A6B; Mon, 9 Jul 2018 03:42:41 -0700 (MST) Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w69AgYe7029942; Mon, 9 Jul 2018 03:42:38 -0700 From: peng.ma@nxp.com To: york.sun@nxp.com Date: Mon, 9 Jul 2018 18:40:34 +0800 Message-Id: <20180709104035.36469-2-peng.ma@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180709104035.36469-1-peng.ma@nxp.com> References: <20180709104035.36469-1-peng.ma@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Mon, 09 Jul 2018 12:04:38 +0000 Cc: andy.tang@nxp.com, Peng Ma , michal.simek@xilinx.com, u-boot@lists.denx.de, fabio.estevam@nxp.com, yinbo.zhu@nxp.com, mingkai.hu@nxp.com Subject: [U-Boot] [PATCH 2/3] scsi: ceva: add ls1043a soc support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Peng Ma Add ahci compatible support for ls1043a soc. Signed-off-by: Peng Ma --- depend on: patchwork.ozlabs.org/patch/924896/ drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c index 4c9ebe4..39269fe 100644 --- a/drivers/ata/sata_ceva.c +++ b/drivers/ata/sata_ceva.c @@ -7,7 +7,6 @@ #include #include #include -#include #include @@ -90,6 +89,7 @@ enum ceva_soc { CEVA_1V84, CEVA_LS1012A, + CEVA_LS1043A, }; struct ceva_sata_priv { @@ -98,6 +98,13 @@ struct ceva_sata_priv { ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible = "ceva,ahci-1v84", .data = CEVA_1V84 }, + { .compatible = "fsl,ls1012a-ahci", .data = CEVA_LS1012A }, + { .compatible = "fsl,ls1043a-ahci", .data = CEVA_LS1043A }, + { } +}; + static int ceva_init_sata(struct ceva_sata_priv *priv) { ulong base = priv->base; @@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv) break; case CEVA_LS1012A: + case CEVA_LS1043A: writel(ECC_DIS_ADDR_CH2, ECC_DIS_VAL_CH2); writel(CEVA_PHY1_CFG, base + AHCI_VEND_PPCFG); writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC); @@ -143,12 +151,6 @@ static int sata_ceva_probe(struct udevice *dev) return ahci_probe_scsi(dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible = "ceva,ahci-1v84", .data = CEVA_1V84 }, - { .compatible = "fsl,ls1012a-ahci", .data = CEVA_LS1012A }, - { } -}; - static int sata_ceva_ofdata_to_platdata(struct udevice *dev) { struct ceva_sata_priv *priv = dev_get_priv(dev);