RE: [PATCH v1 1/2] efuse: IMG Pistachio eFuse Controller

From: Arul Ramasamy <hidden>
Date: 2014-11-19 06:15:15

Hi James,

[...]
quoted
quoted
+    if (offset >= efuse_dev->size)
+            return 0;
+
+    data = readl(efuse_dev->base + round_down(offset, 4));
+    data >>= (offset % 4) * 8;
quoted
+
+    return data; /* Only return the last byte */
quoted
 The last byte? You mean the least significant byte?
Yes, it returns the least significant byte.
Since the return type is u8 the function returns last byte in the resultant data after the right shift operation.
If the user space asks for nth byte (offset = n, where  n = 0 to 15) we will return nth byte from the eFuse shadow RAM.

There are total 128 Bits (16 bytes) of Shadow RAM reserved for eFuse status.

[...]

Regards,
R.Arul Raj

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help