Skip to content

Commit

Permalink
mfd: db8500-prcmu: Adjust map to reality
Browse files Browse the repository at this point in the history
[ Upstream commit ec34311 ]

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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
linusw authored and gregkh committed Sep 22, 2021
1 parent 28fd51c commit 6bd777c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions drivers/mfd/db8500-prcmu.c
Expand Up @@ -1622,22 +1622,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;
Expand Down

0 comments on commit 6bd777c

Please sign in to comment.