From: Siarhei Siamashka <[email protected]>

Get it from the dllcr registers instead of always returning 0.
---
 a10-meminfo.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/a10-meminfo.c b/a10-meminfo.c
index 2c815af..b4dc2d4 100644
--- a/a10-meminfo.c
+++ b/a10-meminfo.c
@@ -229,6 +229,11 @@ int main(int argc, char **argv)
     p.tpr0   = r->tpr0;
     p.tpr1   = r->tpr1;
     p.tpr2   = r->tpr2;
+    p.tpr3   = ((((r->dllcr[0]) >> 6) & 0x3f) << 16) |
+               ((((r->dllcr[1]) >> 14) & 0xf) << 0) |
+               ((((r->dllcr[2]) >> 14) & 0xf) << 4) |
+               ((((r->dllcr[3]) >> 14) & 0xf) << 8) |
+               ((((r->dllcr[4]) >> 14) & 0xf) << 12);
     p.emr1   = r->emr;
     p.emr2   = r->emr2;
     p.emr3   = r->emr3;
-- 
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