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 <quic_cchinnad@quicinc.com>
This commit is contained in:
Chetan C R 2022-07-20 11:37:05 +05:30 committed by Gerrit - the friendly Code Review server
parent c3219d4f05
commit f19e834b29

View File

@ -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)
{