1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <ec/google/chromeec/ec.h>
5 #include <baseboard/variants.h>
6 #include <variant/sku.h>
8 #include <variant/gpio.h>
10 static const struct soc_amd_gpio variant_gpio_wlan_rst_early_reset
[] = {
11 /* GPIO_70 - WLAN_PE_RST_L */
12 PAD_GPO(GPIO_70
, LOW
),
15 const struct soc_amd_gpio
*variant_wlan_rst_early_gpio_table(size_t *size
)
17 *size
= ARRAY_SIZE(variant_gpio_wlan_rst_early_reset
);
18 return variant_gpio_wlan_rst_early_reset
;
21 void variant_romstage_entry(void)
23 uint32_t sku
= google_chromeec_get_sku_id();
26 if (!acpi_is_wakeup_s3()) {
27 /* Based on SKU, turn on keyboard backlight */
30 google_chromeec_kbbacklight(75);
32 case SKU_CAREENA_KB_BACKLIGHT18
:
33 case SKU_CAREENA_KB_BACKLIGHT19
:
34 case SKU_CAREENA_KB_BACKLIGHT22
:
35 case SKU_CAREENA_KB_BACKLIGHT23
:
36 google_chromeec_kbbacklight(10);
41 if (google_chromeec_get_board_version(&bid
))
46 * Config WLAN RST - GPIO70 PU: release RST
47 * From RTK RTL8822CE spec, WLAN RST needs to be active
48 * at least 50 ms since WLAN power on