Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame^] | 1 | From 736bd8aeceefd474c15a97e4a4ec99f07ef9a82c Mon Sep 17 00:00:00 2001 |
| 2 | From: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> |
| 3 | Date: Fri, 11 Feb 2022 18:28:43 +0000 |
| 4 | Subject: [PATCH 2/4] tc0: fix mpmm config |
| 5 | |
| 6 | Do not enable MPMM in standard features set. |
| 7 | |
| 8 | Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> |
| 9 | Change-Id: I7b273a2055452e2e8cd78a0d932514a6f2947ec5 |
| 10 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 11 | --- |
| 12 | product/tc0/scp_ramfw/config_mpmm.c | 15 --------------- |
| 13 | 1 file changed, 15 deletions(-) |
| 14 | |
| 15 | diff --git a/product/tc0/scp_ramfw/config_mpmm.c b/product/tc0/scp_ramfw/config_mpmm.c |
| 16 | index 3bfe99d3..13d866a5 100644 |
| 17 | --- a/product/tc0/scp_ramfw/config_mpmm.c |
| 18 | +++ b/product/tc0/scp_ramfw/config_mpmm.c |
| 19 | @@ -27,7 +27,6 @@ enum core_pd_idx { |
| 20 | CORE7_IDX |
| 21 | }; |
| 22 | |
| 23 | -#if defined(PLATFORM_VARIANT) && (PLATFORM_VARIANT == TC0_VARIANT_STD) |
| 24 | static struct mod_mpmm_pct_table k_pct[] = { |
| 25 | { .cores_online = 4, |
| 26 | .default_perf_limit = 1153 * 1000000UL, |
| 27 | @@ -115,7 +114,6 @@ static struct mod_mpmm_pct_table m_pct[] = { |
| 28 | }, |
| 29 | } }, |
| 30 | }; |
| 31 | -#endif |
| 32 | |
| 33 | static struct mod_mpmm_pct_table m_elp_pct[] = { |
| 34 | { .cores_online = 1, |
| 35 | @@ -132,7 +130,6 @@ static struct mod_mpmm_pct_table m_elp_pct[] = { |
| 36 | } }, |
| 37 | }; |
| 38 | |
| 39 | -#if defined(PLATFORM_VARIANT) && (PLATFORM_VARIANT == TC0_VARIANT_STD) |
| 40 | static const struct mod_mpmm_core_config k_core_config[] = { |
| 41 | [0] = { |
| 42 | .pd_id = FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_POWER_DOMAIN, CORE0_IDX), |
| 43 | @@ -180,7 +177,6 @@ static const struct mod_mpmm_core_config m_core_config[] = { |
| 44 | .core_starts_online = false, |
| 45 | }, |
| 46 | }; |
| 47 | -#endif |
| 48 | |
| 49 | static const struct mod_mpmm_core_config m_elp_core_config[] = { |
| 50 | [0] = { |
| 51 | @@ -191,7 +187,6 @@ static const struct mod_mpmm_core_config m_elp_core_config[] = { |
| 52 | }, |
| 53 | }; |
| 54 | |
| 55 | -#if defined(PLATFORM_VARIANT) && (PLATFORM_VARIANT == TC0_VARIANT_STD) |
| 56 | static const struct mod_mpmm_domain_config k_domain_conf[] = { |
| 57 | [0] = { |
| 58 | .perf_id = FWK_ID_ELEMENT_INIT( |
| 59 | @@ -219,7 +214,6 @@ static const struct mod_mpmm_domain_config m_domain_conf[] = { |
| 60 | }, |
| 61 | [1] = {0}, |
| 62 | }; |
| 63 | -#endif |
| 64 | |
| 65 | static const struct mod_mpmm_domain_config m_elp_domain_conf[] = { |
| 66 | [0] = { |
| 67 | @@ -236,14 +230,6 @@ static const struct mod_mpmm_domain_config m_elp_domain_conf[] = { |
| 68 | }; |
| 69 | |
| 70 | static const struct fwk_element element_table[] = { |
| 71 | -#if defined(PLATFORM_VARIANT) && (PLATFORM_VARIANT == TC0_VAR_EXPERIMENT_POWER) |
| 72 | - [0] = { |
| 73 | - .name = "MPMM_MATTERHORN_ELP_ARM_ELEM", |
| 74 | - .sub_element_count = 1, |
| 75 | - .data = m_elp_domain_conf, |
| 76 | - }, |
| 77 | - [1] = { 0 }, |
| 78 | -#else |
| 79 | [0] = { |
| 80 | .name = "MPMM_KLEIN_ELEM", |
| 81 | .sub_element_count = 4, |
| 82 | @@ -260,7 +246,6 @@ static const struct fwk_element element_table[] = { |
| 83 | .data = m_elp_domain_conf, |
| 84 | }, |
| 85 | [3] = { 0 }, |
| 86 | -#endif |
| 87 | }; |
| 88 | |
| 89 | static const struct fwk_element *mpmm_get_element_table(fwk_id_t module_id) |
| 90 | -- |
| 91 | 2.30.2 |
| 92 | |