summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc/bep/fpc_timebase.c
blob: a63a4c3d6d0a7beac043f99ce8643a61f0b70e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright 2019 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* FPC Platform Abstraction Layer */

#include <stdint.h>

#include "fpc_timebase.h"
#include "timer.h"

uint32_t __unused fpc_timebase_get_tick(void)
{
	clock_t time;

	time = clock();

	return (uint32_t)time;
}

void __unused fpc_timebase_busy_wait(uint32_t ms)
{
	udelay(ms * 1000);
}

void __unused fpc_timebase_init(void)
{
}