mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00

This recipe is a fork of the fslc kernel with patches for supporting the imx6q-elo platform. This recipe is intended to be a stop-gap until the imx6q-elo board can be rebased and tested with the most recent fslc branch. Signed-off-by: Justin Waters <justin.waters@timesys.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
52 lines
1.6 KiB
Diff
52 lines
1.6 KiB
Diff
From 50473c9e2f1db391699e3240a05215ccdb4e81aa Mon Sep 17 00:00:00 2001
|
|
From: Justin Waters <justin.waters@timesys.com>
|
|
Date: Wed, 2 Mar 2016 11:47:13 -0500
|
|
Subject: [PATCH 08/10] ahci_imx: Make receive DPLL mode configurable
|
|
|
|
Signed-off-by: Justin Waters <justin.waters@timesys.com>
|
|
---
|
|
drivers/ata/ahci_imx.c | 13 ++++++++++++-
|
|
1 file changed, 12 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c
|
|
index 69422dc..176ca1f 100644
|
|
--- a/drivers/ata/ahci_imx.c
|
|
+++ b/drivers/ata/ahci_imx.c
|
|
@@ -475,6 +475,13 @@ static const struct reg_value gpr13_rx_eq[] = {
|
|
{ 4000, IMX6Q_GPR13_SATA_RX_EQ_VAL_4_0_DB },
|
|
};
|
|
|
|
+static const struct reg_value gpr13_rx_dpll[] = {
|
|
+ { 0, IMX6Q_GPR13_SATA_RX_DPLL_MODE_1P_1F },
|
|
+ { 1, IMX6Q_GPR13_SATA_RX_DPLL_MODE_2P_2F },
|
|
+ { 2, IMX6Q_GPR13_SATA_RX_DPLL_MODE_1P_4F },
|
|
+ { 3, IMX6Q_GPR13_SATA_RX_DPLL_MODE_2P_4F },
|
|
+};
|
|
+
|
|
static const struct reg_property gpr13_props[] = {
|
|
{
|
|
.name = "fsl,transmit-level-mV",
|
|
@@ -500,6 +507,11 @@ static const struct reg_property gpr13_props[] = {
|
|
.name = "fsl,no-spread-spectrum",
|
|
.def_value = IMX6Q_GPR13_SATA_MPLL_SS_EN,
|
|
.set_value = 0,
|
|
+ }, {
|
|
+ .name = "fsl,receive-dpll-mode",
|
|
+ .values = gpr13_rx_dpll,
|
|
+ .num_values = ARRAY_SIZE(gpr13_rx_dpll),
|
|
+ .def_value = IMX6Q_GPR13_SATA_RX_DPLL_MODE_2P_4F,
|
|
},
|
|
};
|
|
|
|
@@ -603,7 +615,6 @@ static int imx_ahci_probe(struct platform_device *pdev)
|
|
|
|
imxpriv->phy_params =
|
|
IMX6Q_GPR13_SATA_RX_LOS_LVL_SATA2M |
|
|
- IMX6Q_GPR13_SATA_RX_DPLL_MODE_2P_4F |
|
|
IMX6Q_GPR13_SATA_SPD_MODE_3P0G |
|
|
reg_value;
|
|
}
|
|
--
|
|
2.5.0
|
|
|