diff options
author | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-12-28 15:29:47 +0300 |
---|---|---|
committer | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-12-28 15:29:47 +0300 |
commit | 5c501c5bb8397d801480d1f7e0e1f3a5d827c5e7 (patch) | |
tree | 851da48cabf92967817719a9658125bd43412880 /fel.c | |
parent | 9223a10aadf775b7e84e3f02eaa9bf2725958c8f (diff) |
soc_info: Split sid_addr into sid_base + sid_offset
This is a preparatory step. Instead of using memory-based access,
we might want to retrieve SID keys (e-fuses) via SID registers.
For this, it's convenient if the plain base address is available.
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Diffstat (limited to 'fel.c')
-rw-r--r-- | fel.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -279,11 +279,12 @@ void fel_writel(feldev_handle *dev, uint32_t addr, uint32_t val) void aw_fel_print_sid(feldev_handle *dev) { soc_info_t *soc_info = dev->soc_info; - if (soc_info->sid_addr) { - pr_info("SID key (e-fuses) at 0x%08X\n", soc_info->sid_addr); + if (soc_info->sid_base) { + uint32_t sid_addr = soc_info->sid_base + soc_info->sid_offset; + pr_info("SID key (e-fuses) at 0x%08X\n", sid_addr); uint32_t key[4]; - fel_readl_n(dev, soc_info->sid_addr, key, 4); + fel_readl_n(dev, sid_addr, key, 4); unsigned int i; /* output SID in "xxxxxxxx:xxxxxxxx:xxxxxxxx:xxxxxxxx" format */ |