mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
soc: qcom: socinfo: Add soc information for QCS403 and QCS401
Add socinfo support for QCS403 and QCS401 SoC and update the bindings for the same. Change-Id: I5c1b9ca324133aa6bb048ba9b019c674f23d5a9d Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
This commit is contained in:
parent
b8f5440308
commit
307e594f02
@ -322,6 +322,12 @@ static struct msm_soc_info cpu_of_id[] = {
|
||||
/* qcs405 ID */
|
||||
[352] = {MSM_CPU_QCS405, "QCS405"},
|
||||
|
||||
/* qcs403 ID */
|
||||
[373] = {MSM_CPU_QCS403, "QCS403"},
|
||||
|
||||
/* qcs401 ID */
|
||||
[371] = {MSM_CPU_QCS401, "QCS401"},
|
||||
|
||||
/* sdxprairie ID */
|
||||
[357] = {SDX_CPU_SDXPRAIRIE, "SDXPRAIRIE"},
|
||||
|
||||
@ -1203,6 +1209,14 @@ static void * __init setup_dummy_socinfo(void)
|
||||
dummy_socinfo.id = 352;
|
||||
strlcpy(dummy_socinfo.build_id, "qcs405 - ",
|
||||
sizeof(dummy_socinfo.build_id));
|
||||
} else if (early_machine_is_qcs403()) {
|
||||
dummy_socinfo.id = 373;
|
||||
strlcpy(dummy_socinfo.build_id, "qcs403 - ",
|
||||
sizeof(dummy_socinfo.build_id));
|
||||
} else if (early_machine_is_qcs401()) {
|
||||
dummy_socinfo.id = 371;
|
||||
strlcpy(dummy_socinfo.build_id, "qcs401 - ",
|
||||
sizeof(dummy_socinfo.build_id));
|
||||
} else if (early_machine_is_sdxprairie()) {
|
||||
dummy_socinfo.id = 357;
|
||||
strlcpy(dummy_socinfo.build_id, "sdxprairie - ",
|
||||
|
@ -69,6 +69,10 @@
|
||||
of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sm6150")
|
||||
#define early_machine_is_qcs405() \
|
||||
of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs405")
|
||||
#define early_machine_is_qcs403() \
|
||||
of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs403")
|
||||
#define early_machine_is_qcs401() \
|
||||
of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs401")
|
||||
#define early_machine_is_sdxprairie() \
|
||||
of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdxprairie")
|
||||
#define early_machine_is_sdmmagpie() \
|
||||
@ -97,6 +101,8 @@
|
||||
#define early_machine_is_sdmshrike() 0
|
||||
#define early_machine_is_sm6150() 0
|
||||
#define early_machine_is_qcs405() 0
|
||||
#define early_machine_is_qcs403() 0
|
||||
#define early_machine_is_qcs401() 0
|
||||
#define early_machine_is_sdxprairie() 0
|
||||
#define early_machine_is_sdmmagpie() 0
|
||||
#endif
|
||||
@ -125,6 +131,8 @@ enum msm_cpu {
|
||||
MSM_CPU_SDMSHRIKE,
|
||||
MSM_CPU_SM6150,
|
||||
MSM_CPU_QCS405,
|
||||
MSM_CPU_QCS403,
|
||||
MSM_CPU_QCS401,
|
||||
SDX_CPU_SDXPRAIRIE,
|
||||
MSM_CPU_SDMMAGPIE,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user