Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f57d1d8 authored by Guo Zeng's avatar Guo Zeng Committed by Michael Turquette
Browse files

clk: atlas7: move variable-definition together



re-order the codes more reasonable by moving variable-definition
together.

Signed-off-by: default avatarGuo Zeng <Guo.Zeng@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Signed-off-by: default avatarMichael Turquette <mturquette@baylibre.com>
parent 6f83d30a
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -206,18 +206,6 @@
#define SIRFSOC_CLKC_LEAF_CLK_EN8_SET        0x0548


static void __iomem *sirfsoc_clk_vbase;
static struct clk_onecell_data clk_data;

static const struct clk_div_table pll_div_table[] = {
	{ .val = 0, .div = 1 },
	{ .val = 1, .div = 2 },
	{ .val = 2, .div = 4 },
	{ .val = 3, .div = 8 },
	{ .val = 4, .div = 16 },
	{ .val = 5, .div = 32 },
};

struct clk_pll {
	struct clk_hw hw;
	u16 regofs;  /* register offset */
@@ -284,6 +272,18 @@ struct atlas7_reset_desc {
	spinlock_t *lock;
};

static void __iomem *sirfsoc_clk_vbase;
static struct clk_onecell_data clk_data;

static const struct clk_div_table pll_div_table[] = {
	{ .val = 0, .div = 1 },
	{ .val = 1, .div = 2 },
	{ .val = 2, .div = 4 },
	{ .val = 3, .div = 8 },
	{ .val = 4, .div = 16 },
	{ .val = 5, .div = 32 },
};

static DEFINE_SPINLOCK(cpupll_ctrl1_lock);
static DEFINE_SPINLOCK(mempll_ctrl1_lock);
static DEFINE_SPINLOCK(sys0pll_ctrl1_lock);