~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/ingenic-tcu.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Header file for the Ingenic JZ47xx TCU driver
  4  */
  5 #ifndef __LINUX_MFD_INGENIC_TCU_H_
  6 #define __LINUX_MFD_INGENIC_TCU_H_
  7 
  8 #include <linux/bitops.h>
  9 
 10 #define TCU_REG_WDT_TDR         0x00
 11 #define TCU_REG_WDT_TCER        0x04
 12 #define TCU_REG_WDT_TCNT        0x08
 13 #define TCU_REG_WDT_TCSR        0x0c
 14 #define TCU_REG_TER             0x10
 15 #define TCU_REG_TESR            0x14
 16 #define TCU_REG_TECR            0x18
 17 #define TCU_REG_TSR             0x1c
 18 #define TCU_REG_TFR             0x20
 19 #define TCU_REG_TFSR            0x24
 20 #define TCU_REG_TFCR            0x28
 21 #define TCU_REG_TSSR            0x2c
 22 #define TCU_REG_TMR             0x30
 23 #define TCU_REG_TMSR            0x34
 24 #define TCU_REG_TMCR            0x38
 25 #define TCU_REG_TSCR            0x3c
 26 #define TCU_REG_TDFR0           0x40
 27 #define TCU_REG_TDHR0           0x44
 28 #define TCU_REG_TCNT0           0x48
 29 #define TCU_REG_TCSR0           0x4c
 30 #define TCU_REG_OST_DR          0xe0
 31 #define TCU_REG_OST_CNTL        0xe4
 32 #define TCU_REG_OST_CNTH        0xe8
 33 #define TCU_REG_OST_TCSR        0xec
 34 #define TCU_REG_TSTR            0xf0
 35 #define TCU_REG_TSTSR           0xf4
 36 #define TCU_REG_TSTCR           0xf8
 37 #define TCU_REG_OST_CNTHBUF     0xfc
 38 
 39 #define TCU_TCSR_RESERVED_BITS          0x3f
 40 #define TCU_TCSR_PARENT_CLOCK_MASK      0x07
 41 #define TCU_TCSR_PRESCALE_LSB           3
 42 #define TCU_TCSR_PRESCALE_MASK          0x38
 43 
 44 #define TCU_TCSR_PWM_SD         BIT(9)  /* 0: Shutdown gracefully 1: abruptly */
 45 #define TCU_TCSR_PWM_INITL_HIGH BIT(8)  /* Sets the initial output level */
 46 #define TCU_TCSR_PWM_EN         BIT(7)  /* PWM pin output enable */
 47 
 48 #define TCU_WDT_TCER_TCEN       BIT(0)  /* Watchdog timer enable */
 49 
 50 #define TCU_CHANNEL_STRIDE      0x10
 51 #define TCU_REG_TDFRc(c)        (TCU_REG_TDFR0 + ((c) * TCU_CHANNEL_STRIDE))
 52 #define TCU_REG_TDHRc(c)        (TCU_REG_TDHR0 + ((c) * TCU_CHANNEL_STRIDE))
 53 #define TCU_REG_TCNTc(c)        (TCU_REG_TCNT0 + ((c) * TCU_CHANNEL_STRIDE))
 54 #define TCU_REG_TCSRc(c)        (TCU_REG_TCSR0 + ((c) * TCU_CHANNEL_STRIDE))
 55 
 56 #endif /* __LINUX_MFD_INGENIC_TCU_H_ */
 57 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php