diff options
Diffstat (limited to 'board/hatch_fp/fpsensor_detect.c')
-rw-r--r-- | board/hatch_fp/fpsensor_detect.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/board/hatch_fp/fpsensor_detect.c b/board/hatch_fp/fpsensor_detect.c deleted file mode 100644 index 638b5fbfe0..0000000000 --- a/board/hatch_fp/fpsensor_detect.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright 2020 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 "fpsensor_detect.h" -#include "gpio.h" -#include "timer.h" - -enum fp_transport_type get_fp_transport_type(void) -{ - enum fp_transport_type ret; - - gpio_set_level(GPIO_DIVIDER_HIGHSIDE, 1); - usleep(1); - switch (gpio_get_level(GPIO_TRANSPORT_SEL)) { - case 0: - ret = FP_TRANSPORT_TYPE_UART; - break; - case 1: - ret = FP_TRANSPORT_TYPE_SPI; - break; - default: - ret = FP_TRANSPORT_TYPE_UNKNOWN; - break; - } - gpio_set_level(GPIO_DIVIDER_HIGHSIDE, 0); - return ret; -} |