| 1 |
|
| 2 |
|
| 3 |
#include <device/device.h> |
| 4 |
#include <soc/ramstage.h> |
| 5 |
#include <option.h> |
| 6 |
#include <variants.h> |
| 7 |
|
| 8 |
enum cmos_power_profile get_power_profile(enum cmos_power_profile fallback) |
| 9 |
{ |
| 10 |
const unsigned int power_profile = get_uint_option("power_profile", fallback); |
| 11 |
return power_profile < NUM_POWER_PROFILES ? power_profile : fallback; |
| 12 |
} |
| 13 |
|
| 14 |
static void init_mainboard(void *chip_info) |
| 15 |
{ |
| 16 |
const struct pad_config *pads; |
| 17 |
size_t num; |
| 18 |
|
| 19 |
pads = variant_gpio_table(&num); |
| 20 |
gpio_configure_pads(pads, num); |
| 21 |
|
| 22 |
devtree_update(); |
| 23 |
} |
| 24 |
|
| 25 |
struct chip_operations mainboard_ops = { |
| 26 |
.init = init_mainboard, |
| 27 |
}; |