[PATCH 08/32] clk: mvebu: create parent-child relation for PCIe clocks on Armada 370

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Armada 370 has two gatable clocks for each PCIe interface: pexY
and pexY_en. In order for a PCIe interface to be functional, we need
both of them to be enabled. Since there are no conditions in which
having one clock enabled and not the other would be useful, we simply
make those two clocks have a child-parent relationship.

So, the pex0 clock becomes a child of pex0_en (for the PCIe interface
0), and pex1 becomes a child of pex1_en (for the PCIe interface
1). This way, the DT node for the PCIe interface 0 only needs to grab
a reference to pex0, and the DT node for the PCIe interface 1 only
needs to grab a reference to pex1.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx>
Cc: Mike Turquette <mturquette@xxxxxxxxxx>
---
 drivers/clk/mvebu/clk-gating-ctrl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/mvebu/clk-gating-ctrl.c b/drivers/clk/mvebu/clk-gating-ctrl.c
index 8fa5408..fd52b5f 100644
--- a/drivers/clk/mvebu/clk-gating-ctrl.c
+++ b/drivers/clk/mvebu/clk-gating-ctrl.c
@@ -119,8 +119,8 @@ static const struct mvebu_soc_descr __initconst armada_370_gating_descr[] = {
 	{ "pex1_en", NULL,  2 },
 	{ "ge1", NULL, 3 },
 	{ "ge0", NULL, 4 },
-	{ "pex0", NULL, 5 },
-	{ "pex1", NULL, 9 },
+	{ "pex0", "pex0_en", 5 },
+	{ "pex1", "pex1_en", 9 },
 	{ "sata0", NULL, 15 },
 	{ "sdio", NULL, 17 },
 	{ "tdm", NULL, 25 },
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux