cosmetic: rockchip: rk3288: rename rkclk_configure_cpu

A patch from »rockchip: cosmetics, a fix and first steps on the rk3188« in state Mainline for u-boot

From: Heiko Stuebner <heiko@...> Date: Wed, 6 Jul 2016 10:05:33 +0200

Commit-Message

The function is very specific to the rk3288 in its arguments referencing the rk3288 cru and grf and every other rockchip soc has differing cru and grf registers. So make that function naming explicit. Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

arch/arm/include/asm/arch-rockchip/clock.h | 2 +- arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 2 +- drivers/clk/clk_rk3288.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)

Statistics

  • 3 lines added
  • 3 lines removed

Changes

------------------ arch/arm/include/asm/arch-rockchip/clock.h ------------------
index 317e512..4bebd62 100644
@@ -65,6 +65,6 @@ void *rockchip_get_cru(void);
struct rk3288_cru;
struct rk3288_grf;
-void rkclk_configure_cpu(struct rk3288_cru *cru, struct rk3288_grf *grf);
+void rk3288_clk_configure_cpu(struct rk3288_cru *cru, struct rk3288_grf *grf);
#endif
----------------- arch/arm/mach-rockchip/rk3288/sdram_rk3288.c -----------------
index b36b6af..fc0f2f3 100644
@@ -784,7 +784,7 @@ static int veyron_init(struct dram_info *priv)
return ret;
udelay(100);/* Must wait for voltage to stabilize, 2mV/us */
- rkclk_configure_cpu(priv->cru, priv->grf);
+ rk3288_clk_configure_cpu(priv->cru, priv->grf);
return 0;
}
--------------------------- drivers/clk/clk_rk3288.c ---------------------------
index 679f010..dece4bc 100644
@@ -447,7 +447,7 @@ static void rkclk_init(struct rk3288_cru *cru, struct rk3288_grf *grf)
}
#endif
-void rkclk_configure_cpu(struct rk3288_cru *cru, struct rk3288_grf *grf)
+void rk3288_clk_configure_cpu(struct rk3288_cru *cru, struct rk3288_grf *grf)
{
/* pll enter slow-mode */
rk_clrsetreg(&cru->cru_mode_con,
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...