soc: qcom: Add SoC info driver
v7 cover soc: qcom: Add SoC info driver
This is patchset v7 which takes care of review comments received for patchset v6. Resending the patch set as the last one had a compilation error.
Major changes with respect to patch v6 are as below:
- Rather than showing string for h/w types, just show the number obtained from SMEM. The reader of this number is supposed to parse this into a human readable string as this information may be different for different ODMs
- Create an attribute 'qcom_odm' depending on the presence of corresponding property in SMEM DT entry. This information can be used for ODM specific interpretation of SMEM socinfo content
- Read machine value from DT, rather than using soc-id as index in an ever increasing array of machine names
Imran Khan (2):
soc: qcom: Add SoC info driver
Documentation/ABI: Add ABI information for QCOM socinfo driver
Documentation/ABI/stable/sysfs-driver-qcom_socinfo | 147 ++++++ drivers/soc/qcom/Kconfig | 1 + drivers/soc/qcom/Makefile | 3 +- drivers/soc/qcom/smem.c | 5 + drivers/soc/qcom/socinfo.c | 515 +++++++++++++++++++++ 5 files changed, 670 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/stable/sysfs-driver-qcom_socinfo create mode 100644 drivers/soc/qcom/socinfo.c
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 20 lines · Imran Khan
This is patchset v7 which takes care of review comments received for patchset v6. Resending the patch set as the last one had a compilation error.
Major changes with respect to patch v6 are as below:
- Rather than showing string for h/w types, just show the number obtained from SMEM. The reader of this number is supposed to parse this into a human readable string as this information may be different for different ODMs
- Create an attribute 'qcom_odm' depending on the presence of corresponding property in SMEM DT entry. This information can be used for ODM specific interpretation of SMEM socinfo content
- Read machine value from DT, rather than using soc-id as index in an ever increasing array of machine namesImran Khan (2):
soc: qcom: Add SoC info driver
Documentation/ABI: Add ABI information for QCOM socinfo driver
Quoted 8 lines
Documentation/ABI/stable/sysfs-driver-qcom_socinfo | 147 ++++++ drivers/soc/qcom/Kconfig | 1 + drivers/soc/qcom/Makefile | 3 +- drivers/soc/qcom/smem.c | 5 + drivers/soc/qcom/socinfo.c | 515 +++++++++++++++++++++ 5 files changed, 670 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/stable/sysfs-driver-qcom_socinfo create mode 100644 drivers/soc/qcom/socinfo.c
This set has nothing to do with me. Please only send patches to relevant Maintainers. We have enough mail as it is.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog