Skip to contentSkip to conversation

scsi: ceva: add ls1046a soc support

PATCH New Peng Ma 2 participants 6 messages Oct 11, 2018 – Dec 11, 2018

Subsystems (2)
lore
Share & tools
lore

Peng Ma

author
#0 lore raw

PATCH 1/4 scsi: ceva: add ls1046a soc support

Add ahci compatible support for ls1046a soc.

---
 drivers/ata/sata_ceva.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/ata/sata_ceva.c +3 -0
index 65896d1..a2d21d9 100644
@@ -99,6 +99,7 @@ enum ceva_soc {
 	CEVA_LS1012A,
 	CEVA_LS1021A,
 	CEVA_LS1043A,
+	CEVA_LS1046A,
 };
 
 struct ceva_sata_priv {
@@ -138,6 +139,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)
 
 	case CEVA_LS1012A:
 	case CEVA_LS1043A:
+	case CEVA_LS1046A:
 		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);
@@ -170,6 +172,7 @@ static const struct udevice_id sata_ceva_ids[] = {
 	{ .compatible = "fsl,ls1012a-ahci", .data = CEVA_LS1012A },
 	{ .compatible = "fsl,ls1021a-ahci", .data = CEVA_LS1021A },
 	{ .compatible = "fsl,ls1043a-ahci", .data = CEVA_LS1043A },
+	{ .compatible = "fsl,ls1046a-ahci", .data = CEVA_LS1046A },
 	{ }
 };
 
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 2/4 armv8: dts: fsl-ls1046a: add sata node support

One ls1046a, there is one SATA 3.0 advanced host controller interface which is a high-performance SATA solution that delivers comprehensive and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA capabilities, in accordance with the serial ATA revision 3.0 of Serial ATA International Organization.
Add sata node to support this feature.

---
 arch/arm/dts/fsl-ls1046a-qds.dtsi |    4 ++++
 arch/arm/dts/fsl-ls1046a-rdb.dts  |    4 ++++
 arch/arm/dts/fsl-ls1046a.dtsi     |    8 ++++++++
 3 files changed, 16 insertions(+), 0 deletions(-)
arch/arm/dts/fsl-ls1046a-qds.dtsi +4 -0
index ba36853..ada8a85 100644
@@ -76,3 +76,7 @@
 &lpuart0 {
 	status = "okay";
 };
+
+&sata {
+	status = "okay";
+};
arch/arm/dts/fsl-ls1046a-rdb.dts +4 -0
index 136de24..ba30fd2 100644
@@ -39,3 +39,7 @@
 		reg = <1>;
 	 };
 };
+
+&sata {
+	status = "okay";
+};
arch/arm/dts/fsl-ls1046a.dtsi +8 -0
index 7687d12..5ac10e0 100644
@@ -291,5 +291,13 @@
 			ranges = <0x81000000 0x0 0x00000000 0x50 0x00020000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
 		};
+
+		sata: sata at 3200000 {
+			compatible = "fsl,ls1046a-ahci";
+			reg = <0x0 0x3200000 0x0 0x10000>;
+			interrupts = <0 69 4>;
+			clocks = <&clockgen 4 1>;
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
1.7.1
author
#2 lore raw

PATCH 3/4 arm64: ls1046ardb: enable DM support for sata

In reply to Peng Ma

Enable related configs to support sata DM feature.

---
 configs/ls1046ardb_qspi_defconfig |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
configs/ls1046ardb_qspi_defconfig +5 -0
index f9660c0..ea2cbb3 100644
@@ -48,3 +48,8 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_STORAGE=y
 CONFIG_BLK=y
 CONFIG_DM_MMC=y
+CONFIG_DM_SCSI=y
+CONFIG_SATA_CEVA=y
+CONFIG_SCSI_AHCI=y
+CONFIG_SCSI=y
+CONFIG_AHCI=y
Signature · 1 line
1.7.1
author
#3 lore raw

PATCH 4/4 arm64: ls1046aqds: enable DM support for sata

In reply to Peng Ma

Enable related configs to support sata DM feature.

---
 configs/ls1046aqds_defconfig |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
configs/ls1046aqds_defconfig +5 -0
index fad2eed..b09fc88 100644
@@ -51,3 +51,8 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_STORAGE=y
 CONFIG_BLK=y
 CONFIG_DM_MMC=y
+CONFIG_DM_SCSI=y
+CONFIG_SATA_CEVA=y
+CONFIG_SCSI_AHCI=y
+CONFIG_SCSI=y
+CONFIG_AHCI=y
Signature · 1 line
1.7.1
#4 lore raw

PATCH 1/4 scsi: ceva: add ls1046a soc support

In reply to Peng Ma
Quoted 4 lines · Peng Ma

Add ahci compatible support for ls1046a soc.

---

Please remember to sort defconfig using moveconfig.py in the future. This set is applied to fsl-qoriq master, awaiting upstream. Thanks.

York

author
#5 lore raw

PATCH 1/4 scsi: ceva: add ls1046a soc support

Hi York,

got it, thanks.

Best Regards,
Peng

Quoted 21 lines

-----Original Message-----
From: York Sun
Sent: 2018年12月11日 5:10
To: Peng Ma <[email protected]>; u-boot at lists.denx.de
Cc: albert.u.boot at aribaud.net; Mingkai Hu <[email protected]>; sumit.garg at nxp.com; Pankaj Bansal <[email protected]>; Fabio Estevam <[email protected]>; Yinbo Zhu <[email protected]>; michal.simek at xilinx.com; sjg at chromium.org; Andy Tang <[email protected]>
Subject: Re: [PATCH 1/4] scsi: ceva: add ls1046a soc support

Quoted 4 lines · Peng Ma

Add ahci compatible support for ls1046a soc.

---

Please remember to sort defconfig using moveconfig.py in the future. This set is applied to fsl-qoriq master, awaiting upstream. Thanks.

York