linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: db8500-prcmu: Adjust map to reality
@ 2021-08-01 23:33 Linus Walleij
  2021-08-01 23:33 ` [PATCH 2/2] mfd: db8500-prcmu: Handle missing FW variant Linus Walleij
  2021-08-02  7:45 ` [PATCH 1/2] mfd: db8500-prcmu: Adjust map to reality Lee Jones
  0 siblings, 2 replies; 10+ messages in thread
From: Linus Walleij @ 2021-08-01 23:33 UTC (permalink / raw)
  To: Lee Jones, linux-kernel; +Cc: Linus Walleij, phone-devel

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>
---
 drivers/mfd/db8500-prcmu.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 3bde7fda755f..dea4e4e8bed5 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -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;
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-09  8:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 23:33 [PATCH 1/2] mfd: db8500-prcmu: Adjust map to reality Linus Walleij
2021-08-01 23:33 ` [PATCH 2/2] mfd: db8500-prcmu: Handle missing FW variant Linus Walleij
2021-08-02  7:47   ` Lee Jones
2021-08-04 22:52     ` Linus Walleij
2021-08-05  8:00       ` Lee Jones
2021-08-05 23:51         ` Stephen Boyd
2021-08-06  8:14           ` Linus Walleij
2021-08-05 23:50   ` Stephen Boyd
2021-08-09  8:33   ` Lee Jones
2021-08-02  7:45 ` [PATCH 1/2] mfd: db8500-prcmu: Adjust map to reality Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).