summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/rockchip/rockchip_canfd-timestamp.c
blob: 9301b3ceceb08b1619896d2441faaebe7d4375ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2023, 2024 Pengutronix,
//               Marc Kleine-Budde <kernel@pengutronix.de>
//

#include "rockchip_canfd.h"

void rkcanfd_timestamp_init(struct rkcanfd_priv *priv)
{
	u32 reg;

	reg = RKCANFD_REG_TIMESTAMP_CTRL_TIME_BASE_COUNTER_ENABLE;
	rkcanfd_write(priv, RKCANFD_REG_TIMESTAMP_CTRL, reg);
}