Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <bootblock_common.h> | ||||
Bo-Chen Chen | 6453cff | 2023-01-30 18:58:01 +0800 | [diff] [blame] | 4 | #include <gpio.h> |
Rex-BC Chen | eabd970 | 2022-06-13 19:47:43 +0800 | [diff] [blame] | 5 | #include <soc/spi.h> |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 6 | |
Rex-BC Chen | d9e568a | 2022-07-25 19:36:56 +0800 | [diff] [blame] | 7 | #include "gpio.h" |
8 | |||||
Bo-Chen Chen | 6453cff | 2023-01-30 18:58:01 +0800 | [diff] [blame] | 9 | static void usb3_hub_reset(void) |
10 | { | ||||
11 | gpio_output(GPIO_USB3_HUB_RST_L, 1); | ||||
12 | } | ||||
13 | |||||
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 14 | void bootblock_mainboard_init(void) |
15 | { | ||||
Rex-BC Chen | eabd970 | 2022-06-13 19:47:43 +0800 | [diff] [blame] | 16 | mtk_snfc_init(); |
Rex-BC Chen | f9009dd | 2022-07-28 16:38:53 +0800 | [diff] [blame] | 17 | setup_chromeos_gpios(); |
Bo-Chen Chen | 6453cff | 2023-01-30 18:58:01 +0800 | [diff] [blame] | 18 | usb3_hub_reset(); |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 19 | } |