Skip to content
Commit 261b3503 authored by Bai Ping's avatar Bai Ping Committed by Shawn Guo
Browse files

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: default avatarBai Ping <ping.bai@nxp.com>
Acked-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Tested-by: default avatarChristoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 49a1a99c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment