diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/ramstage.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/ramstage.c b/src/mainboard/google/dedede/variants/drawcia/ramstage.c index 06ff4b56dc..f44a170217 100644 --- a/src/mainboard/google/dedede/variants/drawcia/ramstage.c +++ b/src/mainboard/google/dedede/variants/drawcia/ramstage.c @@ -15,21 +15,27 @@ static void ext_vr_update(void) cfg->disable_external_bypass_vr = 1; } -void variant_devtree_update(void) +static void update_lte_device_drawcia(void) { - uint32_t board_version = board_id(); struct device *lte_usb2 = DEV_PTR(lte_usb2); struct drivers_usb_acpi_config *config; struct acpi_gpio lte_reset_gpio = ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0); - /* board version 9 is drawper EVT */ - if (board_version > 9) - return; - if (lte_usb2 == NULL) return; config = config_of(lte_usb2); config->reset_gpio = lte_reset_gpio; - ext_vr_update(); +} + +void variant_devtree_update(void) +{ + uint32_t board_version = board_id(); + + /* Remove power IC after board version 0xb for Draw* and Oscino units */ + if (board_version > 0xb) + ext_vr_update(); + /* Board version 0xa, 0xb and 0xf are for Drawper units */ + if (board_version != 0xa && board_version != 0xb && board_version != 0xf) + update_lte_device_drawcia(); } |