Skip to content
Snippets Groups Projects
Commit 010bbe73 authored by Marek Vasut's avatar Marek Vasut
Browse files

clk: renesas: Minor clean up of the R8A7794 clock driver


The initconst is not used in U-Boot, drop it. The r8a7794_crit_mod_clks
is also not used in U-Boot, so drop it too.

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent 841feae9
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ enum clk_ids { ...@@ -40,7 +40,7 @@ enum clk_ids {
MOD_CLK_BASE MOD_CLK_BASE
}; };
static const struct cpg_core_clk r8a7794_core_clks[] __initconst = { static const struct cpg_core_clk r8a7794_core_clks[] = {
/* External Clock Inputs */ /* External Clock Inputs */
DEF_INPUT("extal", CLK_EXTAL), DEF_INPUT("extal", CLK_EXTAL),
DEF_INPUT("usb_extal", CLK_USB_EXTAL), DEF_INPUT("usb_extal", CLK_USB_EXTAL),
...@@ -85,7 +85,7 @@ static const struct cpg_core_clk r8a7794_core_clks[] __initconst = { ...@@ -85,7 +85,7 @@ static const struct cpg_core_clk r8a7794_core_clks[] __initconst = {
DEF_DIV6P1("mmc0", R8A7794_CLK_MMC0, CLK_PLL1_DIV2, 0x240), DEF_DIV6P1("mmc0", R8A7794_CLK_MMC0, CLK_PLL1_DIV2, 0x240),
}; };
static const struct mssr_mod_clk r8a7794_mod_clks[] __initconst = { static const struct mssr_mod_clk r8a7794_mod_clks[] = {
DEF_MOD("msiof0", 0, R8A7794_CLK_MP), DEF_MOD("msiof0", 0, R8A7794_CLK_MP),
DEF_MOD("vcp0", 101, R8A7794_CLK_ZS), DEF_MOD("vcp0", 101, R8A7794_CLK_ZS),
DEF_MOD("vpc0", 103, R8A7794_CLK_ZS), DEF_MOD("vpc0", 103, R8A7794_CLK_ZS),
...@@ -188,10 +188,6 @@ static const struct mssr_mod_clk r8a7794_mod_clks[] __initconst = { ...@@ -188,10 +188,6 @@ static const struct mssr_mod_clk r8a7794_mod_clks[] __initconst = {
DEF_MOD("scifa5", 1108, R8A7794_CLK_MP), DEF_MOD("scifa5", 1108, R8A7794_CLK_MP),
}; };
static const unsigned int r8a7794_crit_mod_clks[] __initconst = {
MOD_CLK_ID(408), /* INTC-SYS (GIC) */
};
/* /*
* CPG Clock Data * CPG Clock Data
*/ */
...@@ -210,7 +206,7 @@ static const unsigned int r8a7794_crit_mod_clks[] __initconst = { ...@@ -210,7 +206,7 @@ static const unsigned int r8a7794_crit_mod_clks[] __initconst = {
*/ */
#define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \ #define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \
(((md) & BIT(13)) >> 13)) (((md) & BIT(13)) >> 13))
static const struct rcar_gen2_cpg_pll_config cpg_pll_configs[4] __initconst = { static const struct rcar_gen2_cpg_pll_config cpg_pll_configs[4] = {
{ 1, 208, 88, 200 }, { 1, 208, 88, 200 },
{ 1, 156, 66, 150 }, { 1, 156, 66, 150 },
{ 2, 240, 102, 230 }, { 2, 240, 102, 230 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment