summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2015-06-10 14:39:23 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:02:33 -0700
commita1df69adc54805af93ff17d46c39d6e19feddc5f (patch)
tree3936f8056ffd88c86015643e2c593ac7b7c32184 /drivers/soc
parentc34671d29ddfc56b827c6cc1c8ad7f82da73488b (diff)
soc: qcom: socinfo: remove APIs without any clients
socinfo exports a number of APIs left over from the days before device tree, for targets which are no longer supported in the current kernel. Remove these unused APIs: get_core_count() read_msm_cpu_type() cpu_is_*() soc_class_is_*() Change-Id: I2fb23c44649f0582fb0e2523a0235470f76a3da9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/qcom/socinfo.c99
1 files changed, 0 insertions, 99 deletions
diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 265f763a5f90..9a6115ddfb31 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -1330,102 +1330,3 @@ int __init socinfo_init(void)
return 0;
}
subsys_initcall(socinfo_init);
-
-const int get_core_count(void)
-{
- if (!(read_cpuid_mpidr() & BIT(31)))
- return 1;
-
- if (read_cpuid_mpidr() & BIT(30))
- return 1;
-
- /* 1 + the PART[1:0] field of MIDR */
- return ((read_cpuid_id() >> 4) & 3) + 1;
-}
-
-const int read_msm_cpu_type(void)
-{
- if (socinfo_get_msm_cpu() != MSM_CPU_UNKNOWN)
- return socinfo_get_msm_cpu();
-
- switch (read_cpuid_id()) {
- case 0x510F02D0:
- case 0x510F02D2:
- case 0x510F02D4:
- return MSM_CPU_8X60;
-
- case 0x510F04D0:
- case 0x510F04D1:
- case 0x510F04D2:
- case 0x511F04D0:
- case 0x512F04D0:
- return MSM_CPU_8960;
-
- case 0x51404D11: /* We can't get here unless we are in bringup */
- return MSM_CPU_8930;
-
- case 0x510F06F0:
- return MSM_CPU_8064;
-
- case 0x511F06F1:
- case 0x511F06F2:
- case 0x512F06F0:
- return MSM_CPU_8974;
-
- default:
- return MSM_CPU_UNKNOWN;
- };
-}
-
-const int cpu_is_krait(void)
-{
- return ((read_cpuid_id() & 0xFF00FC00) == 0x51000400);
-}
-
-const int cpu_is_krait_v1(void)
-{
- switch (read_cpuid_id()) {
- case 0x510F04D0:
- case 0x510F04D1:
- case 0x510F04D2:
- return 1;
-
- default:
- return 0;
- };
-}
-
-const int cpu_is_krait_v2(void)
-{
- switch (read_cpuid_id()) {
- case 0x511F04D0:
- case 0x511F04D1:
- case 0x511F04D2:
- case 0x511F04D3:
- case 0x511F04D4:
-
- case 0x510F06F0:
- case 0x510F06F1:
- case 0x510F06F2:
- return 1;
-
- default:
- return 0;
- };
-}
-
-const int cpu_is_krait_v3(void)
-{
- switch (read_cpuid_id()) {
- case 0x512F04D0:
- case 0x511F06F0:
- case 0x511F06F1:
- case 0x511F06F2:
- case 0x510F05D0:
- case 0x510F07F0:
- return 1;
-
- default:
- return 0;
- };
-}