| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <soc/ramstage.h> |
| 4 | #include "gpio.h" |
| 5 | |
| 6 | void mainboard_silicon_init_params(FSP_SIL_UPD *params) |
| 7 | { |
| 8 | /* Configure pads prior to SiliconInit() in case there's any |
| 9 | * dependencies during hardware initialization. */ |
| 10 | gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table)); |
| 11 | } |
| 12 | |
| 13 | static void mainboard_enable(struct device *dev) |
| 14 | { |
| 15 | /* Route 0x4e/4f to LPC */ |
| 16 | lpc_enable_fixed_io_ranges(LPC_IOE_EC_4E_4F); |
| 17 | } |
| 18 | |
| 19 | struct chip_operations mainboard_ops = { |
| 20 | .enable_dev = mainboard_enable, |
| 21 | }; |