Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef _BASEBOARD_VARIANTS_H_ |
| 4 | #define _BASEBOARD_VARIANTS_H_ |
| 5 | |
Elyes Haouas | 475aaf8 | 2024-06-04 10:25:56 +0200 | [diff] [blame^] | 6 | #include <gpio.h> |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 7 | |
Angel Pons | 4b9ac2c9 | 2021-12-18 13:26:09 +0100 | [diff] [blame] | 8 | enum cmos_power_profile { |
| 9 | PP_POWER_SAVER = 0, |
| 10 | PP_BALANCED = 1, |
| 11 | PP_PERFORMANCE = 2, |
| 12 | }; |
| 13 | #define NUM_POWER_PROFILES 3 |
| 14 | |
| 15 | enum cmos_power_profile get_power_profile(enum cmos_power_profile fallback); |
| 16 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 17 | /* |
| 18 | * The next set of functions return the gpio table and fill in the number of |
| 19 | * entries for each table. |
| 20 | */ |
| 21 | const struct pad_config *variant_gpio_table(size_t *num); |
| 22 | const struct pad_config *variant_early_gpio_table(size_t *num); |
| 23 | |
| 24 | void devtree_update(void); |
| 25 | |
| 26 | #endif /* _BASEBOARD_VARIANTS_H_ */ |