1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright 2013-2016 Freescale Semiconductor Inc.
4 * Copyright 2016-2018 NXP
10 /* Data Path Real Time Counter API
11 * Contains initialization APIs and runtime control APIs for RTC
19 #define DPRTC_MAX_IRQ_NUM 1
20 #define DPRTC_IRQ_INDEX 0
22 #define DPRTC_EVENT_PPS 0x08000000
23 #define DPRTC_EVENT_ETS1 0x00800000
24 #define DPRTC_EVENT_ETS2 0x00400000
26 int dprtc_open(struct fsl_mc_io
*mc_io
,
31 int dprtc_close(struct fsl_mc_io
*mc_io
,
35 int dprtc_set_irq_enable(struct fsl_mc_io
*mc_io
,
41 int dprtc_get_irq_enable(struct fsl_mc_io
*mc_io
,
47 int dprtc_set_irq_mask(struct fsl_mc_io
*mc_io
,
53 int dprtc_get_irq_mask(struct fsl_mc_io
*mc_io
,
59 int dprtc_get_irq_status(struct fsl_mc_io
*mc_io
,
65 int dprtc_clear_irq_status(struct fsl_mc_io
*mc_io
,
71 #endif /* __FSL_DPRTC_H */