1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <soc/ramstage.h>
8 enum cmos_power_profile
get_power_profile(enum cmos_power_profile fallback
)
10 const unsigned int power_profile
= get_uint_option("power_profile", fallback
);
11 return power_profile
< NUM_POWER_PROFILES
? power_profile
: fallback
;
14 static void init_mainboard(void *chip_info
)
16 const struct pad_config
*pads
;
19 pads
= variant_gpio_table(&num
);
20 gpio_configure_pads(pads
, num
);
25 struct chip_operations mainboard_ops
= {
26 .init
= init_mainboard
,