mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
clk: st: use static const for clkgen_pll_data tables
converts clkgen_pll_data tables into static const Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:
parent
4abb1b4055
commit
dc4febef2d
1 changed files with 14 additions and 16 deletions
|
@ -59,7 +59,7 @@ static const struct clk_ops st_pll800c65_ops;
|
||||||
static const struct clk_ops stm_pll3200c32_ops;
|
static const struct clk_ops stm_pll3200c32_ops;
|
||||||
static const struct clk_ops st_pll1200c32_ops;
|
static const struct clk_ops st_pll1200c32_ops;
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll1600c65_ax = {
|
static const struct clkgen_pll_data st_pll1600c65_ax = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 19),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 19),
|
||||||
.locked_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
.locked_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
||||||
.mdiv = CLKGEN_FIELD(0x0, C65_MDIV_PLL1600_MASK, 0),
|
.mdiv = CLKGEN_FIELD(0x0, C65_MDIV_PLL1600_MASK, 0),
|
||||||
|
@ -67,7 +67,7 @@ static struct clkgen_pll_data st_pll1600c65_ax = {
|
||||||
.ops = &st_pll1600c65_ops
|
.ops = &st_pll1600c65_ops
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll800c65_ax = {
|
static const struct clkgen_pll_data st_pll800c65_ax = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 19),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 19),
|
||||||
.locked_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
.locked_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
||||||
.mdiv = CLKGEN_FIELD(0x0, C65_MDIV_PLL800_MASK, 0),
|
.mdiv = CLKGEN_FIELD(0x0, C65_MDIV_PLL800_MASK, 0),
|
||||||
|
@ -76,7 +76,7 @@ static struct clkgen_pll_data st_pll800c65_ax = {
|
||||||
.ops = &st_pll800c65_ops
|
.ops = &st_pll800c65_ops
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll3200c32_a1x_0 = {
|
static const struct clkgen_pll_data st_pll3200c32_a1x_0 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 31),
|
||||||
.locked_status = CLKGEN_FIELD(0x4, 0x1, 31),
|
.locked_status = CLKGEN_FIELD(0x4, 0x1, 31),
|
||||||
.ndiv = CLKGEN_FIELD(0x0, C32_NDIV_MASK, 0x0),
|
.ndiv = CLKGEN_FIELD(0x0, C32_NDIV_MASK, 0x0),
|
||||||
|
@ -93,7 +93,7 @@ static struct clkgen_pll_data st_pll3200c32_a1x_0 = {
|
||||||
.ops = &stm_pll3200c32_ops,
|
.ops = &stm_pll3200c32_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll3200c32_a1x_1 = {
|
static const struct clkgen_pll_data st_pll3200c32_a1x_1 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0xC, 0x1, 31),
|
.pdn_status = CLKGEN_FIELD(0xC, 0x1, 31),
|
||||||
.locked_status = CLKGEN_FIELD(0x10, 0x1, 31),
|
.locked_status = CLKGEN_FIELD(0x10, 0x1, 31),
|
||||||
.ndiv = CLKGEN_FIELD(0xC, C32_NDIV_MASK, 0x0),
|
.ndiv = CLKGEN_FIELD(0xC, C32_NDIV_MASK, 0x0),
|
||||||
|
@ -111,7 +111,7 @@ static struct clkgen_pll_data st_pll3200c32_a1x_1 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 415 specific */
|
/* 415 specific */
|
||||||
static struct clkgen_pll_data st_pll3200c32_a9_415 = {
|
static const struct clkgen_pll_data st_pll3200c32_a9_415 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
||||||
.locked_status = CLKGEN_FIELD(0x6C, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x6C, 0x1, 0),
|
||||||
.ndiv = CLKGEN_FIELD(0x0, C32_NDIV_MASK, 9),
|
.ndiv = CLKGEN_FIELD(0x0, C32_NDIV_MASK, 9),
|
||||||
|
@ -122,7 +122,7 @@ static struct clkgen_pll_data st_pll3200c32_a9_415 = {
|
||||||
.ops = &stm_pll3200c32_ops,
|
.ops = &stm_pll3200c32_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll3200c32_ddr_415 = {
|
static const struct clkgen_pll_data st_pll3200c32_ddr_415 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
||||||
.locked_status = CLKGEN_FIELD(0x100, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x100, 0x1, 0),
|
||||||
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
||||||
|
@ -135,7 +135,7 @@ static struct clkgen_pll_data st_pll3200c32_ddr_415 = {
|
||||||
.ops = &stm_pll3200c32_ops,
|
.ops = &stm_pll3200c32_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll1200c32_gpu_415 = {
|
static const struct clkgen_pll_data st_pll1200c32_gpu_415 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x144, 0x1, 3),
|
.pdn_status = CLKGEN_FIELD(0x144, 0x1, 3),
|
||||||
.locked_status = CLKGEN_FIELD(0x168, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x168, 0x1, 0),
|
||||||
.ldf = CLKGEN_FIELD(0x0, C32_LDF_MASK, 3),
|
.ldf = CLKGEN_FIELD(0x0, C32_LDF_MASK, 3),
|
||||||
|
@ -146,7 +146,7 @@ static struct clkgen_pll_data st_pll1200c32_gpu_415 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 416 specific */
|
/* 416 specific */
|
||||||
static struct clkgen_pll_data st_pll3200c32_a9_416 = {
|
static const struct clkgen_pll_data st_pll3200c32_a9_416 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
||||||
.locked_status = CLKGEN_FIELD(0x6C, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x6C, 0x1, 0),
|
||||||
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
||||||
|
@ -157,7 +157,7 @@ static struct clkgen_pll_data st_pll3200c32_a9_416 = {
|
||||||
.ops = &stm_pll3200c32_ops,
|
.ops = &stm_pll3200c32_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll3200c32_ddr_416 = {
|
static const struct clkgen_pll_data st_pll3200c32_ddr_416 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
.pdn_status = CLKGEN_FIELD(0x0, 0x1, 0),
|
||||||
.locked_status = CLKGEN_FIELD(0x10C, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x10C, 0x1, 0),
|
||||||
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
.ndiv = CLKGEN_FIELD(0x8, C32_NDIV_MASK, 0),
|
||||||
|
@ -170,7 +170,7 @@ static struct clkgen_pll_data st_pll3200c32_ddr_416 = {
|
||||||
.ops = &stm_pll3200c32_ops,
|
.ops = &stm_pll3200c32_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clkgen_pll_data st_pll1200c32_gpu_416 = {
|
static const struct clkgen_pll_data st_pll1200c32_gpu_416 = {
|
||||||
.pdn_status = CLKGEN_FIELD(0x8E4, 0x1, 3),
|
.pdn_status = CLKGEN_FIELD(0x8E4, 0x1, 3),
|
||||||
.locked_status = CLKGEN_FIELD(0x90C, 0x1, 0),
|
.locked_status = CLKGEN_FIELD(0x90C, 0x1, 0),
|
||||||
.ldf = CLKGEN_FIELD(0x0, C32_LDF_MASK, 3),
|
.ldf = CLKGEN_FIELD(0x0, C32_LDF_MASK, 3),
|
||||||
|
@ -450,9 +450,8 @@ static void __init clkgena_c65_pll_setup(struct device_node *np)
|
||||||
* PLL0 HS (high speed) output
|
* PLL0 HS (high speed) output
|
||||||
*/
|
*/
|
||||||
clk_data->clks[0] = clkgen_pll_register(parent_name,
|
clk_data->clks[0] = clkgen_pll_register(parent_name,
|
||||||
&st_pll1600c65_ax,
|
(struct clkgen_pll_data *) &st_pll1600c65_ax,
|
||||||
reg + CLKGENAx_PLL0_OFFSET,
|
reg + CLKGENAx_PLL0_OFFSET, clk_name);
|
||||||
clk_name);
|
|
||||||
|
|
||||||
if (IS_ERR(clk_data->clks[0]))
|
if (IS_ERR(clk_data->clks[0]))
|
||||||
goto err;
|
goto err;
|
||||||
|
@ -480,9 +479,8 @@ static void __init clkgena_c65_pll_setup(struct device_node *np)
|
||||||
* PLL1 output
|
* PLL1 output
|
||||||
*/
|
*/
|
||||||
clk_data->clks[2] = clkgen_pll_register(parent_name,
|
clk_data->clks[2] = clkgen_pll_register(parent_name,
|
||||||
&st_pll800c65_ax,
|
(struct clkgen_pll_data *) &st_pll800c65_ax,
|
||||||
reg + CLKGENAx_PLL1_OFFSET,
|
reg + CLKGENAx_PLL1_OFFSET, clk_name);
|
||||||
clk_name);
|
|
||||||
|
|
||||||
if (IS_ERR(clk_data->clks[2]))
|
if (IS_ERR(clk_data->clks[2]))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue