Skip to contentSkip to conversation

armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'

PATCH New Haikun Wang 2 participants 2 messages Jun 26, 2015 – Jul 20, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'

From: Haikun Wang <[email protected]>

---
 arch/arm/cpu/armv8/fsl-lsch3/speed.c        | 2 ++
 arch/arm/include/asm/arch-fsl-lsch3/clock.h | 1 +
 2 files changed, 3 insertions(+)
arch/arm/cpu/armv8/fsl-lsch3/speed.c +2 -0
index cac4f92..d9f137c 100644
@@ -180,6 +180,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
 	switch (clk) {
 	case MXC_I2C_CLK:
 		return get_bus_freq(0) / 2;
+	case MXC_DSPI_CLK:
+		return get_bus_freq(0) / 2;
 	default:
 		printf("Unsupported clock\n");
 	}
arch/arm/include/asm/arch-fsl-lsch3/clock.h +1 -0
index 831af0b..62bc53c 100644
@@ -16,6 +16,7 @@ enum mxc_clock {
 	MXC_UART_CLK,
 	MXC_ESDHC_CLK,
 	MXC_I2C_CLK,
+	MXC_DSPI_CLK,
 };
 
 unsigned int mxc_get_clock(enum mxc_clock clk);
Signature · 1 line
1.9.1