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

Commit 4092855d authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Eric Miao
Browse files

[ARM] pxa: add apmu clock support in mmp

parent 68bef3a7
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,21 @@ struct clkops apbc_clk_ops = {
	.disable	= apbc_clk_disable,
	.disable	= apbc_clk_disable,
};
};


static void apmu_clk_enable(struct clk *clk)
{
	__raw_writel(clk->enable_val, clk->clk_rst);
}

static void apmu_clk_disable(struct clk *clk)
{
	__raw_writel(0, clk->clk_rst);
}

struct clkops apmu_clk_ops = {
	.enable		= apmu_clk_enable,
	.disable	= apmu_clk_disable,
};

static DEFINE_SPINLOCK(clocks_lock);
static DEFINE_SPINLOCK(clocks_lock);


int clk_enable(struct clk *clk)
int clk_enable(struct clk *clk)
+1 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,7 @@ struct clk {
};
};


extern struct clkops apbc_clk_ops;
extern struct clkops apbc_clk_ops;
extern struct clkops apmu_clk_ops;


#define APBC_CLK(_name, _reg, _fnclksel, _rate)			\
#define APBC_CLK(_name, _reg, _fnclksel, _rate)			\
struct clk clk_##_name = {					\
struct clk clk_##_name = {					\