Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef FCONF_HW_CONFIG_GETTER_H |
| 8 | #define FCONF_HW_CONFIG_GETTER_H |
| 9 | |
| 10 | #include <lib/fconf/fconf.h> |
| 11 | |
| 12 | /* Hardware Config related getter */ |
| 13 | #define hw_config__gicv3_config_getter(prop) gicv3_config.prop |
| 14 | |
Madhukar Pappireddy | 26b945c | 2019-12-27 12:02:34 -0600 | [diff] [blame] | 15 | #define hw_config__topology_getter(prop) soc_topology.prop |
| 16 | |
Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 17 | struct gicv3_config_t { |
Andre Przywara | e183e15 | 2020-03-26 11:57:43 +0000 | [diff] [blame^] | 18 | uintptr_t gicd_base; |
| 19 | uintptr_t gicr_base; |
Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 20 | }; |
| 21 | |
Madhukar Pappireddy | 26b945c | 2019-12-27 12:02:34 -0600 | [diff] [blame] | 22 | struct hw_topology_t { |
| 23 | uint32_t plat_cluster_count; |
| 24 | uint32_t cluster_cpu_count; |
| 25 | uint32_t plat_cpu_count; |
| 26 | uint32_t plat_max_pwr_level; |
| 27 | }; |
| 28 | |
Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 29 | int fconf_populate_gicv3_config(uintptr_t config); |
Madhukar Pappireddy | 26b945c | 2019-12-27 12:02:34 -0600 | [diff] [blame] | 30 | int fconf_populate_topology(uintptr_t config); |
Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 31 | |
| 32 | extern struct gicv3_config_t gicv3_config; |
Madhukar Pappireddy | 26b945c | 2019-12-27 12:02:34 -0600 | [diff] [blame] | 33 | extern struct hw_topology_t soc_topology; |
Madhukar Pappireddy | ae9677b | 2020-01-27 13:37:51 -0600 | [diff] [blame] | 34 | |
| 35 | #endif /* FCONF_HW_CONFIG_GETTER_H */ |