Commit 2746a1b4 authored by Luc Verhaegen's avatar Luc Verhaegen
Browse files

meminfo: increment clock n value for sun6i/8i


Signed-off-by: default avatarLuc Verhaegen <libv@skynet.be>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 33105c26
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment