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

Commit 47c44906 authored by Linus Walleij's avatar Linus Walleij Committed by Greg Kroah-Hartman
Browse files

mfd: db8500-prcmu: Adjust map to reality



[ Upstream commit ec343111c056ec3847800302f6dbc57281f833fa ]

These are the actual frequencies reported by the PLL, so let's
report these. The roundoffs are inappropriate, we should round
to the frequency that the clock will later report.

Drop some whitespace at the same time.

Cc: phone-devel@vger.kernel.org
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 88834a62
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -1695,22 +1695,20 @@ static long round_clock_rate(u8 clock, unsigned long rate)
}

static const unsigned long db8500_armss_freqs[] = {
	200000000,
	400000000,
	800000000,
	199680000,
	399360000,
	798720000,
	998400000
};

/* The DB8520 has slightly higher ARMSS max frequency */
static const unsigned long db8520_armss_freqs[] = {
	200000000,
	400000000,
	800000000,
	199680000,
	399360000,
	798720000,
	1152000000
};



static long round_armss_rate(unsigned long rate)
{
	unsigned long freq = 0;