Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1006cccc authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Stephen Boyd
Browse files

clk: mvebu: adjust clock handling for the CP110 system controller



This commit:

 - makes the GOP_DP (bit 9) gatable clock a child clock of the
   SD_MMC_GOP (bit 18) clock, as it should have been. The clock for bit
   18 was just named SD_MMC, but since it also covers the GOP block, it
   is renamed SD_MMC_GOP.

 - makes the MG (bit 5) gatable clock a child clock of the MG_CORE
   clock (bit 6)

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 33707260
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -64,8 +64,11 @@ enum {
#define CP110_GATE_NAND			2
#define CP110_GATE_PPV2			3
#define CP110_GATE_SDIO			4
#define CP110_GATE_MG			5
#define CP110_GATE_MG_CORE		6
#define CP110_GATE_XOR1			7
#define CP110_GATE_XOR0			8
#define CP110_GATE_GOP_DP		9
#define CP110_GATE_PCIE_X1_0		11
#define CP110_GATE_PCIE_X1_1		12
#define CP110_GATE_PCIE_X4		13
@@ -73,7 +76,7 @@ enum {
#define CP110_GATE_SATA			15
#define CP110_GATE_SATA_USB		16
#define CP110_GATE_MAIN			17
#define CP110_GATE_SDMMC		18
#define CP110_GATE_SDMMC_GOP		18
#define CP110_GATE_SLOW_IO		21
#define CP110_GATE_USB3H0		22
#define CP110_GATE_USB3H1		23
@@ -296,6 +299,11 @@ static int cp110_syscon_clk_probe(struct platform_device *pdev)
						      "gate-clock-output-names",
						      CP110_GATE_MAIN, &parent);
			break;
		case CP110_GATE_MG:
			of_property_read_string_index(np,
						      "gate-clock-output-names",
						      CP110_GATE_MG_CORE, &parent);
			break;
		case CP110_GATE_NAND:
			parent = nand_name;
			break;
@@ -303,9 +311,10 @@ static int cp110_syscon_clk_probe(struct platform_device *pdev)
			parent = ppv2_name;
			break;
		case CP110_GATE_SDIO:
		case CP110_GATE_GOP_DP:
			of_property_read_string_index(np,
						      "gate-clock-output-names",
						      CP110_GATE_SDMMC, &parent);
						      CP110_GATE_SDMMC_GOP, &parent);
			break;
		case CP110_GATE_XOR1:
		case CP110_GATE_XOR0: