virtio_rtc_arm.c 518 B

1234567891011121314151617181920212223
  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. #include <linux/clocksource_ids.h>
  9. #include <uapi/linux/virtio_rtc.h>
  10. #include "virtio_rtc_internal.h"
  11. /* see header for doc */
  12. int viortc_hw_xtstamp_params(u8 *hw_counter, enum clocksource_ids *cs_id)
  13. {
  14. *hw_counter = VIRTIO_RTC_COUNTER_ARM_VCT;
  15. *cs_id = CSID_ARM_ARCH_COUNTER;
  16. return 0;
  17. }