Commit 3ba080bf authored by Neha Malcom Francis's avatar Neha Malcom Francis Committed by Nishanth Menon
Browse files

soc: ti: k3-socinfo: Revamp driver to accommodate different rev structs



k3-socinfo.c driver assumes silicon revisions for every platform are
incremental and one-to-one, corresponding to JTAG_ID's variant field:
1.0, 2.0 etc. This assumption is wrong for SoCs such as J721E, where the
variant field to revision mapping is 1.0, 1.1. Further, there are SoCs
such as AM65x where the sub-variant version requires custom decoding of
other registers.

Address this by using conditional handling per JTAG ID that requires an
exception with J721E as the first example. To facilitate this
conversion, use macros to identify the JTAG_ID part number and map them
to predefined string array.

Signed-off-by: default avatarNeha Malcom Francis <n-francis@ti.com>
Co-developed-by: default avatarThejasvi Konduru <t-konduru@ti.com>
Signed-off-by: default avatarThejasvi Konduru <t-konduru@ti.com>
Link: https://lore.kernel.org/r/20231016101608.993921-4-n-francis@ti.com


Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 964946b8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment