mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 22:35:11 +07:00
907a2b7e2f
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 <arnd@arndb.de> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
15 lines
546 B
Makefile
15 lines
546 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# TI Keystone SOC drivers
|
|
#
|
|
obj-$(CONFIG_KEYSTONE_NAVIGATOR_QMSS) += knav_qmss.o
|
|
knav_qmss-y := knav_qmss_queue.o knav_qmss_acc.o
|
|
obj-$(CONFIG_KEYSTONE_NAVIGATOR_DMA) += knav_dma.o
|
|
obj-$(CONFIG_AMX3_PM) += pm33xx.o
|
|
obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_prm.o
|
|
obj-$(CONFIG_WKUP_M3_IPC) += wkup_m3_ipc.o
|
|
obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o
|
|
obj-$(CONFIG_TI_SCI_INTA_MSI_DOMAIN) += ti_sci_inta_msi.o
|
|
obj-$(CONFIG_TI_K3_RINGACC) += k3-ringacc.o
|
|
obj-$(CONFIG_TI_K3_SOCINFO) += k3-socinfo.o
|