Discussion:
[U-Boot] [PATCH 1/3] scsi: ceva: add ls2080a soc support
Peng Ma
2018-10-22 02:43:20 UTC
Permalink
Add ahci compatible support for ls2080a soc.

Signed-off-by: Peng Ma <***@nxp.com>
---
depend on:
- https://patchwork.ozlabs.org/patch/987497/
drivers/ata/sata_ceva.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c
index fa86797..7d4c3ce 100644
--- a/drivers/ata/sata_ceva.c
+++ b/drivers/ata/sata_ceva.c
@@ -105,6 +105,7 @@ enum ceva_soc {
CEVA_LS1043A,
CEVA_LS1046A,
CEVA_LS1088A,
+ CEVA_LS2080A,
};

struct ceva_sata_priv {
@@ -146,6 +147,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)
case CEVA_LS1043A:
case CEVA_LS1046A:
writel(ECC_DIS_VAL_CH2, ECC_DIS_ADDR_CH2);
+ case CEVA_LS2080A:
writel(CEVA_PHY1_CFG, base + AHCI_VEND_PPCFG);
writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC);
if (priv->flag & FLAG_COHERENT)
@@ -187,6 +189,7 @@ static const struct udevice_id sata_ceva_ids[] = {
{ .compatible = "fsl,ls1043a-ahci", .data = CEVA_LS1043A },
{ .compatible = "fsl,ls1046a-ahci", .data = CEVA_LS1046A },
{ .compatible = "fsl,ls1088a-ahci", .data = CEVA_LS1088A },
+ { .compatible = "fsl,ls2080a-ahci", .data = CEVA_LS2080A },
{ }
};
--
1.7.1
Peng Ma
2018-10-22 02:43:21 UTC
Permalink
One ls2080a, 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.

Signed-off-by: Peng Ma <***@nxp.com>
---
arch/arm/dts/fsl-ls2080a-qds.dts | 4 ++++
arch/arm/dts/fsl-ls2080a-rdb.dts | 4 ++++
arch/arm/dts/fsl-ls2080a.dtsi | 8 ++++++++
3 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b/arch/arm/dts/fsl-ls2080a-qds.dts
index fbd6c78..39fbc1b 100644
--- a/arch/arm/dts/fsl-ls2080a-qds.dts
+++ b/arch/arm/dts/fsl-ls2080a-qds.dts
@@ -64,3 +64,7 @@
reg = <0>;
};
};
+
+&sata {
+ status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls2080a-rdb.dts b/arch/arm/dts/fsl-ls2080a-rdb.dts
index 541bcd3..e7567cf 100644
--- a/arch/arm/dts/fsl-ls2080a-rdb.dts
+++ b/arch/arm/dts/fsl-ls2080a-rdb.dts
@@ -32,3 +32,7 @@
reg = <0>;
};
};
+
+&sata {
+ status = "okay";
+};
diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi
index 2d537ae..5c0769b 100644
--- a/arch/arm/dts/fsl-ls2080a.dtsi
+++ b/arch/arm/dts/fsl-ls2080a.dtsi
@@ -156,4 +156,12 @@
ranges = <0x81000000 0x0 0x00000000 0x16 0x00020000 0x0 0x00010000 /* downstream I/O */
0x82000000 0x0 0x40000000 0x16 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
};
+
+ sata: ***@3200000 {
+ compatible = "fsl,ls2080a-ahci";
+ reg = <0x0 0x3200000 0x0 0x10000>;
+ interrupts = <0 133 0x4>; /* Level high type */
+ status = "disabled";
+ };
+
};
--
1.7.1
Simon Glass
2018-11-03 06:07:21 UTC
Permalink
Post by Peng Ma
One ls2080a, 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-ls2080a-qds.dts | 4 ++++
arch/arm/dts/fsl-ls2080a-rdb.dts | 4 ++++
arch/arm/dts/fsl-ls2080a.dtsi | 8 ++++++++
3 files changed, 16 insertions(+), 0 deletions(-)
Reviewed-by: Simon Glass <***@chromium.org>
Peng Ma
2018-10-22 02:43:22 UTC
Permalink
Enable related configs to support sata DM feature.

Signed-off-by: Peng Ma <***@nxp.com>
---
configs/ls2080aqds_defconfig | 5 +++++
configs/ls2080ardb_defconfig | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/configs/ls2080aqds_defconfig b/configs/ls2080aqds_defconfig
index 3026351..62d24da 100644
--- a/configs/ls2080aqds_defconfig
+++ b/configs/ls2080aqds_defconfig
@@ -55,3 +55,8 @@ CONFIG_USB_STORAGE=y
CONFIG_EFI_LOADER_BOUNCE_BUFFER=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
diff --git a/configs/ls2080ardb_defconfig b/configs/ls2080ardb_defconfig
index f3ff02c..bb185b1 100644
--- a/configs/ls2080ardb_defconfig
+++ b/configs/ls2080ardb_defconfig
@@ -56,3 +56,8 @@ CONFIG_USB_STORAGE=y
CONFIG_EFI_LOADER_BOUNCE_BUFFER=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
--
1.7.1
Simon Glass
2018-11-03 06:07:23 UTC
Permalink
Post by Peng Ma
Enable related configs to support sata DM feature.
---
configs/ls2080aqds_defconfig | 5 +++++
configs/ls2080ardb_defconfig | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
Reviewed-by: Simon Glass <***@chromium.org>
Michal Simek
2018-10-26 07:41:25 UTC
Permalink
Post by Peng Ma
Add ahci compatible support for ls2080a soc.
---
- https://patchwork.ozlabs.org/patch/987497/
drivers/ata/sata_ceva.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c
index fa86797..7d4c3ce 100644
--- a/drivers/ata/sata_ceva.c
+++ b/drivers/ata/sata_ceva.c
@@ -105,6 +105,7 @@ enum ceva_soc {
CEVA_LS1043A,
CEVA_LS1046A,
CEVA_LS1088A,
+ CEVA_LS2080A,
};
struct ceva_sata_priv {
@@ -146,6 +147,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)
writel(ECC_DIS_VAL_CH2, ECC_DIS_ADDR_CH2);
writel(CEVA_PHY1_CFG, base + AHCI_VEND_PPCFG);
writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC);
if (priv->flag & FLAG_COHERENT)
@@ -187,6 +189,7 @@ static const struct udevice_id sata_ceva_ids[] = {
{ .compatible = "fsl,ls1043a-ahci", .data = CEVA_LS1043A },
{ .compatible = "fsl,ls1046a-ahci", .data = CEVA_LS1046A },
{ .compatible = "fsl,ls1088a-ahci", .data = CEVA_LS1088A },
+ { .compatible = "fsl,ls2080a-ahci", .data = CEVA_LS2080A },
{ }
};
Acked-by: Michal Simek <***@xilinx.com>

Thanks,
M
York Sun
2018-12-10 21:11:18 UTC
Permalink
Post by Peng Ma
Add ahci compatible support for ls2080a soc.
---
This set is applied to fsl-qoriq master, awaiting upstream. Thanks.

York

Loading...