/* Copyright 2021 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "base_fw_config.h"
#include "board_fw_config.h"

bool board_is_convertible(void)
{
	return 1;
}

bool board_has_kblight(void)
{
	return (get_fw_config_field(FW_CONFIG_KBLIGHT_OFFSET,
			FW_CONFIG_KBLIGHT_WIDTH) == FW_CONFIG_KBLIGHT_YES);
}

enum board_usb_c1_mux board_get_usb_c1_mux(void)
{
	return USB_C1_MUX_PS8818;
};

enum board_usb_a1_retimer board_get_usb_a1_retimer(void)
{
	return USB_A1_RETIMER_PS8811;
};

/* Copyright 2021 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "base_fw_config.h"
#include "board_fw_config.h"

bool board_is_convertible(void)
{
	return 1;
}

bool board_has_kblight(void)
{
	return (get_fw_config_field(FW_CONFIG_KBLIGHT_OFFSET,
			FW_CONFIG_KBLIGHT_WIDTH) == FW_CONFIG_KBLIGHT_YES);
}

enum board_usb_c1_mux board_get_usb_c1_mux(void)
{
	return USB_C1_MUX_PS8818;
};

enum board_usb_a1_retimer board_get_usb_a1_retimer(void)
{
	return USB_A1_RETIMER_UNKNOWN;
};

Set Type A1 retimer to unknown
Dewatt: Set Type A1 retimer to unknown

Let board_get_usb_a1_retimer always return
USB_A1_RETIMER_UNKNOWN for Dewatt doesn't
have type A port 1.

BUG=none
BRANCH=none
TEST=EC console won't show
     "A1: PS8811 retimer not detected!"

Signed-off-by: Sue Chen <7d23cdcf270f71747b77aeecc793a9342f6d5c9e@quanta.corp-partner.google.com>
Change-Id: I9a7c292ffc739e81fd1e553617f17abd25a67564
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3346760
Reviewed-by: Rob Barnes <3ced0940a2329ce70499686f01d3d60685ec66ed@google.com>
