public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] imx: mx6 remove duplicated enable_cspi_clock
@ 2015-06-24 10:44 Peng Fan
  2015-06-24 10:44 ` [U-Boot] [PATCH 2/3] imx: cm_fx6 use enable_spi_clk Peng Fan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Peng Fan @ 2015-06-24 10:44 UTC (permalink / raw)
  To: u-boot

enable_spi_clock does the same thing with enable_cspi_clock.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
---
 arch/arm/cpu/armv7/mx6/clock.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index ae99945..1134770 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -102,25 +102,6 @@ void enable_uart_clk(unsigned char enable)
 }
 #endif
 
-#ifdef CONFIG_SPI
-/* spi_num can be from 0 - 4 */
-int enable_cspi_clock(unsigned char enable, unsigned spi_num)
-{
-	u32 mask;
-
-	if (spi_num > 4)
-		return -EINVAL;
-
-	mask = MXC_CCM_CCGR_CG_MASK << (spi_num * 2);
-	if (enable)
-		setbits_le32(&imx_ccm->CCGR1, mask);
-	else
-		clrbits_le32(&imx_ccm->CCGR1, mask);
-
-	return 0;
-}
-#endif
-
 #ifdef CONFIG_MMC
 int enable_usdhc_clk(unsigned char enable, unsigned bus_num)
 {
-- 
1.8.4

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

end of thread, other threads:[~2015-06-25  1:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24 10:44 [U-Boot] [PATCH 1/3] imx: mx6 remove duplicated enable_cspi_clock Peng Fan
2015-06-24 10:44 ` [U-Boot] [PATCH 2/3] imx: cm_fx6 use enable_spi_clk Peng Fan
2015-06-24 10:44 ` [U-Boot] [PATCH 3/3] imx: mx6 add i2c4 clock support for i.MX6SX Peng Fan
2015-06-24 15:53 ` [U-Boot] [PATCH 1/3] imx: mx6 remove duplicated enable_cspi_clock Fabio Estevam
2015-06-25  1:10   ` Peng Fan

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