clk: exynos4: Remove remnants of non-DT support
This patch simplifies a bit clock initialization code by removing remnants of non-DT clock initialization, such as reg_base and xom values passed in function parameters. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Thomas Abraham <thomas.ab@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
38dbfb59d1
commit
442f4948e5
1 changed files with 8 additions and 6 deletions
|
@ -908,12 +908,13 @@ static unsigned long exynos4_get_xom(void)
|
||||||
return xom;
|
return xom;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init exynos4_clk_register_finpll(unsigned long xom)
|
static void __init exynos4_clk_register_finpll(void)
|
||||||
{
|
{
|
||||||
struct samsung_fixed_rate_clock fclk;
|
struct samsung_fixed_rate_clock fclk;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
unsigned long finpll_f = 24000000;
|
unsigned long finpll_f = 24000000;
|
||||||
char *parent_name;
|
char *parent_name;
|
||||||
|
unsigned int xom = exynos4_get_xom();
|
||||||
|
|
||||||
parent_name = xom & 1 ? "xusbxti" : "xxti";
|
parent_name = xom & 1 ? "xusbxti" : "xxti";
|
||||||
clk = clk_get(NULL, parent_name);
|
clk = clk_get(NULL, parent_name);
|
||||||
|
@ -1038,9 +1039,10 @@ static struct samsung_pll_clock exynos4x12_plls[nr_plls] __initdata = {
|
||||||
|
|
||||||
/* register exynos4 clocks */
|
/* register exynos4 clocks */
|
||||||
static void __init exynos4_clk_init(struct device_node *np,
|
static void __init exynos4_clk_init(struct device_node *np,
|
||||||
enum exynos4_soc exynos4_soc,
|
enum exynos4_soc exynos4_soc)
|
||||||
void __iomem *reg_base, unsigned long xom)
|
|
||||||
{
|
{
|
||||||
|
void __iomem *reg_base;
|
||||||
|
|
||||||
reg_base = of_iomap(np, 0);
|
reg_base = of_iomap(np, 0);
|
||||||
if (!reg_base)
|
if (!reg_base)
|
||||||
panic("%s: failed to map registers\n", __func__);
|
panic("%s: failed to map registers\n", __func__);
|
||||||
|
@ -1058,7 +1060,7 @@ static void __init exynos4_clk_init(struct device_node *np,
|
||||||
ARRAY_SIZE(exynos4_fixed_rate_ext_clks),
|
ARRAY_SIZE(exynos4_fixed_rate_ext_clks),
|
||||||
ext_clk_match);
|
ext_clk_match);
|
||||||
|
|
||||||
exynos4_clk_register_finpll(xom);
|
exynos4_clk_register_finpll();
|
||||||
|
|
||||||
if (exynos4_soc == EXYNOS4210) {
|
if (exynos4_soc == EXYNOS4210) {
|
||||||
samsung_clk_register_mux(exynos4210_mux_early,
|
samsung_clk_register_mux(exynos4210_mux_early,
|
||||||
|
@ -1136,12 +1138,12 @@ static void __init exynos4_clk_init(struct device_node *np,
|
||||||
|
|
||||||
static void __init exynos4210_clk_init(struct device_node *np)
|
static void __init exynos4210_clk_init(struct device_node *np)
|
||||||
{
|
{
|
||||||
exynos4_clk_init(np, EXYNOS4210, NULL, exynos4_get_xom());
|
exynos4_clk_init(np, EXYNOS4210);
|
||||||
}
|
}
|
||||||
CLK_OF_DECLARE(exynos4210_clk, "samsung,exynos4210-clock", exynos4210_clk_init);
|
CLK_OF_DECLARE(exynos4210_clk, "samsung,exynos4210-clock", exynos4210_clk_init);
|
||||||
|
|
||||||
static void __init exynos4412_clk_init(struct device_node *np)
|
static void __init exynos4412_clk_init(struct device_node *np)
|
||||||
{
|
{
|
||||||
exynos4_clk_init(np, EXYNOS4X12, NULL, exynos4_get_xom());
|
exynos4_clk_init(np, EXYNOS4X12);
|
||||||
}
|
}
|
||||||
CLK_OF_DECLARE(exynos4412_clk, "samsung,exynos4412-clock", exynos4412_clk_init);
|
CLK_OF_DECLARE(exynos4412_clk, "samsung,exynos4412-clock", exynos4412_clk_init);
|
||||||
|
|
Loading…
Add table
Reference in a new issue