aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorGrygorii Strashko <[email protected]>2020-05-28 03:39:14 +0000
committerSantosh Shilimkar <[email protected]>2020-05-28 03:39:14 +0000
commit907a2b7e2fc746ac3b57b7eb64c220b81d74fc42 (patch)
tree038747ac1c82c9e42d2aba0b862c4567a1df2308 /arch/powerpc/lib/code-patching.c
parentdt-bindings: soc: ti: add binding for k3 platforms chipid module (diff)
downloadkernel-907a2b7e2fc746ac3b57b7eb64c220b81d74fc42.tar.gz
kernel-907a2b7e2fc746ac3b57b7eb64c220b81d74fc42.zip
soc: ti: add k3 platforms chipid module driver
The Texas Instruments K3 Multicore SoC platforms have chipid module which is represented by CTRLMMR_xxx_JTAGID register and contains information about SoC id and revision. Bits: 31-28 VARIANT Device variant 27-12 PARTNO Part number 11-1 MFG Indicates TI as manufacturer (0x17) 1 Always 1 This patch adds corresponding driver to identify the TI K3 SoC family and revision, and registers this information with the SoC bus. It is available under /sys/devices/soc0/ for user space, and can be checked, where needed, in Kernel using soc_device_match(). Identification is done by: - checking MFG to be TI ID - retrieving Device variant (revision) - retrieving Part number and convert it to the family - retrieving machine from DT "/model" Example J721E: # cat /sys/devices/soc0/{machine,family,revision} Texas Instruments K3 J721E SoC J721E SR1.0 Example AM65x: # cat /sys/devices/soc0/{machine,family,revision} Texas Instruments AM654 Base Board AM65X SR1.0 Cc: Arnd Bergmann <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Reviewed-by: Lokesh Vutla <[email protected]> Reviewed-by: Tero Kristo <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions