Merge "soc: qcom: Add snapshot of socinfo driver"

This commit is contained in:
qctecmdr 2022-04-20 10:04:09 -07:00 committed by Gerrit - the friendly Code Review server
commit e05c2a8819
2 changed files with 1155 additions and 30 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,32 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __SOC_QCOM_SOCINFO_H__
#define __SOC_QCOM_SOCINFO_H__
#include <linux/types.h>
#if IS_ENABLED(CONFIG_QCOM_SOCINFO)
uint32_t socinfo_get_id(void);
uint32_t socinfo_get_serial_number(void);
const char *socinfo_get_id_string(void);
#else
static inline uint32_t socinfo_get_id(void)
{
return 0;
}
static inline uint32_t socinfo_get_serial_number(void)
{
return 0;
}
static inline const char *socinfo_get_id_string(void)
{
return "N/A";
}
#endif /* CONFIG_QCOM_SOCINFO */
#endif /* __SOC_QCOM_SOCINFO_H__ */