[][kernel][common][app][Add bit-field read feature to the regs utility]
[Description]
Add bit-field read feature to the regs utility.
Example1: Read value from the specific regsiter
root@OpenWrt:/# regs r 10060018
Value at 0x10060018 (0x7fa1513018): 0x98968
0x10060018: 00098968
Example2: Read specific bit-field from the specific register
root@OpenWrt:/# regs r 10060018 0 20
Value at 0x10060018 (0x7fb7952018): 0x98968
0x10060018[19: 0] = 98968 (hex)
= 625000 (dec)
= 10011000100101101000 (bin)
[Release-log]
N/A
Change-Id: I4d9b52c2f202c9335e8216bd3de471dbc53a8e33
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7464563
1 file changed