linux/include/linux/mfd/ingenic-tcu.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Header file for the Ingenic JZ47xx TCU driver
 */
#ifndef __LINUX_MFD_INGENIC_TCU_H_
#define __LINUX_MFD_INGENIC_TCU_H_

#include <linux/bitops.h>

#define TCU_REG_WDT_TDR
#define TCU_REG_WDT_TCER
#define TCU_REG_WDT_TCNT
#define TCU_REG_WDT_TCSR
#define TCU_REG_TER
#define TCU_REG_TESR
#define TCU_REG_TECR
#define TCU_REG_TSR
#define TCU_REG_TFR
#define TCU_REG_TFSR
#define TCU_REG_TFCR
#define TCU_REG_TSSR
#define TCU_REG_TMR
#define TCU_REG_TMSR
#define TCU_REG_TMCR
#define TCU_REG_TSCR
#define TCU_REG_TDFR0
#define TCU_REG_TDHR0
#define TCU_REG_TCNT0
#define TCU_REG_TCSR0
#define TCU_REG_OST_DR
#define TCU_REG_OST_CNTL
#define TCU_REG_OST_CNTH
#define TCU_REG_OST_TCSR
#define TCU_REG_TSTR
#define TCU_REG_TSTSR
#define TCU_REG_TSTCR
#define TCU_REG_OST_CNTHBUF

#define TCU_TCSR_RESERVED_BITS
#define TCU_TCSR_PARENT_CLOCK_MASK
#define TCU_TCSR_PRESCALE_LSB
#define TCU_TCSR_PRESCALE_MASK

#define TCU_TCSR_PWM_SD
#define TCU_TCSR_PWM_INITL_HIGH
#define TCU_TCSR_PWM_EN

#define TCU_WDT_TCER_TCEN

#define TCU_CHANNEL_STRIDE
#define TCU_REG_TDFRc(c)
#define TCU_REG_TDHRc(c)
#define TCU_REG_TCNTc(c)
#define TCU_REG_TCSRc(c)

#endif /* __LINUX_MFD_INGENIC_TCU_H_ */