From f19e834b290bf611931266b4535ee4fde5f18012 Mon Sep 17 00:00:00 2001 From: Chetan C R Date: Wed, 20 Jul 2022 11:37:05 +0530 Subject: [PATCH] soc: qcom: socinfo: Get SKU ID from kernel command line Get the softsku_idx value by reading it from kernel command line and write it to sysfs file So, that post boot scripts get this values. Change-Id: I7a46b3d3d3db7d34ab4f29d5fe1ea79a5ed654d1 Signed-off-by: Chetan C R --- drivers/soc/qcom/socinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index ae7a1d7bc62a..28da4da94895 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -187,6 +187,9 @@ static struct socinfo { #define SMEM_IMAGE_VERSION_OEM_OFFSET 95 #define SMEM_IMAGE_VERSION_PARTITION_APPS 10 +int softsku_id; +module_param_named(softsku_id, softsku_id, int, 0644); + /* Version 2 */ static uint32_t socinfo_get_raw_id(void) {