xref: /linux/drivers/virtio/virtio_rtc_arm.c (revision 25489a4f556414445d342951615178368ee45cde)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Provides cross-timestamp params for Arm.
4  *
5  * Copyright (C) 2022-2023 OpenSynergy GmbH
6  * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
7  */
8 
9 #include <linux/clocksource_ids.h>
10 
11 #include <uapi/linux/virtio_rtc.h>
12 
13 #include "virtio_rtc_internal.h"
14 
15 /* see header for doc */
16 
17 int viortc_hw_xtstamp_params(u8 *hw_counter, enum clocksource_ids *cs_id)
18 {
19 	*hw_counter = VIRTIO_RTC_COUNTER_ARM_VCT;
20 	*cs_id = CSID_ARM_ARCH_COUNTER;
21 
22 	return 0;
23 }
24