diff options
author | Bai Ping <[email protected]> | 2018-02-02 16:06:27 +0800 |
---|---|---|
committer | Shawn Guo <[email protected]> | 2018-02-12 13:13:02 +0800 |
commit | 261b350367d729bbfdd4aa92a9e48cfd6500b6ba (patch) | |
tree | 8d12247c71b856fc8a0a9c2b82d16ea6aca6e260 /tools/perf/scripts/python | |
parent | 49a1a99c530c297aad4e40af8cffa3195f4e1b58 (diff) |
ARM: imx: Improve the soc revision calculation flow
On our i.MX6 SOC, the DIGPROG register is used for representing the
SOC ID and silicon revision. The revision has two part: MAJOR and
MINOR. each is represented in 8 bits in the register.
bits [15:8]: reflect the MAJOR part of the revision;
bits [7:0]: reflect the MINOR part of the revision;
In our linux kernel, the soc revision is represented in 8 bits.
MAJOR part and MINOR each occupy 4 bits.
previous method does NOT take care about the MAJOR part in DIGPROG
register. So reformat the revision read from the HW to be compatible
with the revision format used in kernel.
Signed-off-by: Bai Ping <[email protected]>
Acked-by: Dong Aisheng <[email protected]>
Tested-by: Christoph Fritz <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions