public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'
@ 2015-06-26 11:56 Haikun Wang
  2015-07-20 21:18 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Haikun Wang @ 2015-06-26 11:56 UTC (permalink / raw)
  To: u-boot

From: Haikun Wang <Haikun.Wang@freescale.com>

Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
---
 arch/arm/cpu/armv8/fsl-lsch3/speed.c        | 2 ++
 arch/arm/include/asm/arch-fsl-lsch3/clock.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/arch/arm/cpu/armv8/fsl-lsch3/speed.c b/arch/arm/cpu/armv8/fsl-lsch3/speed.c
index cac4f92..d9f137c 100644
--- a/arch/arm/cpu/armv8/fsl-lsch3/speed.c
+++ b/arch/arm/cpu/armv8/fsl-lsch3/speed.c
@@ -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");
 	}
diff --git a/arch/arm/include/asm/arch-fsl-lsch3/clock.h b/arch/arm/include/asm/arch-fsl-lsch3/clock.h
index 831af0b..62bc53c 100644
--- a/arch/arm/include/asm/arch-fsl-lsch3/clock.h
+++ b/arch/arm/include/asm/arch-fsl-lsch3/clock.h
@@ -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);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'
  2015-06-26 11:56 [U-Boot] [PATCH] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock' Haikun Wang
@ 2015-07-20 21:18 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-07-20 21:18 UTC (permalink / raw)
  To: u-boot



On 06/26/2015 04:56 AM, Haikun Wang wrote:
> From: Haikun Wang <Haikun.Wang@freescale.com>
> 
> Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
> ---

Applied to u-boot-fsl-qoriq master branch.

York

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-20 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 11:56 [U-Boot] [PATCH] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock' Haikun Wang
2015-07-20 21:18 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox