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

Commit 2ac3d304 authored by Stephen Boyd's avatar Stephen Boyd Committed by Taniya Das
Browse files

clk: Add support to vote to regulator framework from clk framework



Add vdd_class support which would help vote/unvote for any voltage rail
for the clock frequency to the regulator framework. A clock client request
for a clock frequency would look for the corresponding voltage vote and
would be send the request to regulator framework.

Change-Id: I5b1229091fcb7b3887b54735b9663fd31a35db21
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 8992f7dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ struct clk *clk_register_composite(struct device *dev, const char *name,
			unsigned long flags)
{
	struct clk *clk;
	struct clk_init_data init;
	struct clk_init_data init = {};
	struct clk_composite *composite;
	struct clk_ops *clk_composite_ops;

+1 −1
Original line number Diff line number Diff line
@@ -436,7 +436,7 @@ static struct clk *_register_divider(struct device *dev, const char *name,
{
	struct clk_divider *div;
	struct clk *clk;
	struct clk_init_data init;
	struct clk_init_data init = {};

	if (clk_divider_flags & CLK_DIVIDER_HIWORD_MASK) {
		if (width + shift > 16) {
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ struct clk *clk_register_fixed_factor(struct device *dev, const char *name,
		unsigned int mult, unsigned int div)
{
	struct clk_fixed_factor *fix;
	struct clk_init_data init;
	struct clk_init_data init = {};
	struct clk *clk;

	fix = kmalloc(sizeof(*fix), GFP_KERNEL);
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev,
{
	struct clk_fixed_rate *fixed;
	struct clk *clk;
	struct clk_init_data init;
	struct clk_init_data init = {};

	/* allocate fixed-rate clock */
	fixed = kzalloc(sizeof(*fixed), GFP_KERNEL);
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ struct clk *clk_register_fractional_divider(struct device *dev,
		u8 clk_divider_flags, spinlock_t *lock)
{
	struct clk_fractional_divider *fd;
	struct clk_init_data init;
	struct clk_init_data init = {};
	struct clk *clk;

	fd = kzalloc(sizeof(*fd), GFP_KERNEL);
Loading