Signed-off-by: Luc Verhaegen <[email protected]>
---
 meminfo.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/meminfo.c b/meminfo.c
index d4dd800..e5daa77 100644
--- a/meminfo.c
+++ b/meminfo.c
@@ -159,6 +159,15 @@ sunxi_dram_clock_read(unsigned int *clock)
        k = ((tmp >> 4) & 0x03) + 1;
        m = (tmp & 0x03) + 1;
 
+       switch (soc_version) {
+       case SUNXI_SOC_SUN6I:
+       case SUNXI_SOC_SUN8I:
+               n++;
+               break;
+       default:
+               break;
+       }
+
        *clock = (24 * n * k) / m;
 
        return 0;
-- 
1.7.7

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to