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

TOMOYO Linux Cross Reference
Linux/include/linux/fsl/ftm.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 ] ~

Diff markup

Differences between /include/linux/fsl/ftm.h (Version linux-6.12-rc7) and /include/linux/fsl/ftm.h (Version linux-5.15.171)


  1 // SPDX-License-Identifier: GPL-2.0                 1 // SPDX-License-Identifier: GPL-2.0
  2 #ifndef __FSL_FTM_H__                               2 #ifndef __FSL_FTM_H__
  3 #define __FSL_FTM_H__                               3 #define __FSL_FTM_H__
  4                                                     4 
  5 #define FTM_SC       0x0 /* Status And Control      5 #define FTM_SC       0x0 /* Status And Control */
  6 #define FTM_CNT      0x4 /* Counter */              6 #define FTM_CNT      0x4 /* Counter */
  7 #define FTM_MOD      0x8 /* Modulo */               7 #define FTM_MOD      0x8 /* Modulo */
  8                                                     8 
  9 #define FTM_CNTIN    0x4C /* Counter Initial V      9 #define FTM_CNTIN    0x4C /* Counter Initial Value */
 10 #define FTM_STATUS   0x50 /* Capture And Compa     10 #define FTM_STATUS   0x50 /* Capture And Compare Status */
 11 #define FTM_MODE     0x54 /* Features Mode Sel     11 #define FTM_MODE     0x54 /* Features Mode Selection */
 12 #define FTM_SYNC     0x58 /* Synchronization *     12 #define FTM_SYNC     0x58 /* Synchronization */
 13 #define FTM_OUTINIT  0x5C /* Initial State For     13 #define FTM_OUTINIT  0x5C /* Initial State For Channels Output */
 14 #define FTM_OUTMASK  0x60 /* Output Mask */        14 #define FTM_OUTMASK  0x60 /* Output Mask */
 15 #define FTM_COMBINE  0x64 /* Function For Link     15 #define FTM_COMBINE  0x64 /* Function For Linked Channels */
 16 #define FTM_DEADTIME 0x68 /* Deadtime Insertio     16 #define FTM_DEADTIME 0x68 /* Deadtime Insertion Control */
 17 #define FTM_EXTTRIG  0x6C /* FTM External Trig     17 #define FTM_EXTTRIG  0x6C /* FTM External Trigger */
 18 #define FTM_POL      0x70 /* Channels Polarity     18 #define FTM_POL      0x70 /* Channels Polarity */
 19 #define FTM_FMS      0x74 /* Fault Mode Status     19 #define FTM_FMS      0x74 /* Fault Mode Status */
 20 #define FTM_FILTER   0x78 /* Input Capture Fil     20 #define FTM_FILTER   0x78 /* Input Capture Filter Control */
 21 #define FTM_FLTCTRL  0x7C /* Fault Control */      21 #define FTM_FLTCTRL  0x7C /* Fault Control */
 22 #define FTM_QDCTRL   0x80 /* Quadrature Decode     22 #define FTM_QDCTRL   0x80 /* Quadrature Decoder Control And Status */
 23 #define FTM_CONF     0x84 /* Configuration */      23 #define FTM_CONF     0x84 /* Configuration */
 24 #define FTM_FLTPOL   0x88 /* FTM Fault Input P     24 #define FTM_FLTPOL   0x88 /* FTM Fault Input Polarity */
 25 #define FTM_SYNCONF  0x8C /* Synchronization C     25 #define FTM_SYNCONF  0x8C /* Synchronization Configuration */
 26 #define FTM_INVCTRL  0x90 /* FTM Inverting Con     26 #define FTM_INVCTRL  0x90 /* FTM Inverting Control */
 27 #define FTM_SWOCTRL  0x94 /* FTM Software Outp     27 #define FTM_SWOCTRL  0x94 /* FTM Software Output Control */
 28 #define FTM_PWMLOAD  0x98 /* FTM PWM Load */       28 #define FTM_PWMLOAD  0x98 /* FTM PWM Load */
 29                                                    29 
 30 #define FTM_SC_CLK_MASK_SHIFT   3                  30 #define FTM_SC_CLK_MASK_SHIFT   3
 31 #define FTM_SC_CLK_MASK         (3 << FTM_SC_C     31 #define FTM_SC_CLK_MASK         (3 << FTM_SC_CLK_MASK_SHIFT)
 32 #define FTM_SC_TOF              0x80               32 #define FTM_SC_TOF              0x80
 33 #define FTM_SC_TOIE             0x40               33 #define FTM_SC_TOIE             0x40
 34 #define FTM_SC_CPWMS            0x20               34 #define FTM_SC_CPWMS            0x20
 35 #define FTM_SC_CLKS             0x18               35 #define FTM_SC_CLKS             0x18
 36 #define FTM_SC_PS_1             0x0                36 #define FTM_SC_PS_1             0x0
 37 #define FTM_SC_PS_2             0x1                37 #define FTM_SC_PS_2             0x1
 38 #define FTM_SC_PS_4             0x2                38 #define FTM_SC_PS_4             0x2
 39 #define FTM_SC_PS_8             0x3                39 #define FTM_SC_PS_8             0x3
 40 #define FTM_SC_PS_16            0x4                40 #define FTM_SC_PS_16            0x4
 41 #define FTM_SC_PS_32            0x5                41 #define FTM_SC_PS_32            0x5
 42 #define FTM_SC_PS_64            0x6                42 #define FTM_SC_PS_64            0x6
 43 #define FTM_SC_PS_128           0x7                43 #define FTM_SC_PS_128           0x7
 44 #define FTM_SC_PS_MASK          0x7                44 #define FTM_SC_PS_MASK          0x7
 45                                                    45 
 46 #define FTM_MODE_FAULTIE        0x80               46 #define FTM_MODE_FAULTIE        0x80
 47 #define FTM_MODE_FAULTM         0x60               47 #define FTM_MODE_FAULTM         0x60
 48 #define FTM_MODE_CAPTEST        0x10               48 #define FTM_MODE_CAPTEST        0x10
 49 #define FTM_MODE_PWMSYNC        0x8                49 #define FTM_MODE_PWMSYNC        0x8
 50 #define FTM_MODE_WPDIS          0x4                50 #define FTM_MODE_WPDIS          0x4
 51 #define FTM_MODE_INIT           0x2                51 #define FTM_MODE_INIT           0x2
 52 #define FTM_MODE_FTMEN          0x1                52 #define FTM_MODE_FTMEN          0x1
 53                                                    53 
 54 /* NXP Errata: The PHAFLTREN and PHBFLTREN bit     54 /* NXP Errata: The PHAFLTREN and PHBFLTREN bits are tide to zero internally
 55  * and these bits cannot be set. Flextimer can     55  * and these bits cannot be set. Flextimer cannot use Filter in
 56  * Quadrature Decoder Mode.                        56  * Quadrature Decoder Mode.
 57  * https://community.nxp.com/thread/467648#com     57  * https://community.nxp.com/thread/467648#comment-1010319
 58  */                                                58  */
 59 #define FTM_QDCTRL_PHAFLTREN    0x80               59 #define FTM_QDCTRL_PHAFLTREN    0x80
 60 #define FTM_QDCTRL_PHBFLTREN    0x40               60 #define FTM_QDCTRL_PHBFLTREN    0x40
 61 #define FTM_QDCTRL_PHAPOL       0x20               61 #define FTM_QDCTRL_PHAPOL       0x20
 62 #define FTM_QDCTRL_PHBPOL       0x10               62 #define FTM_QDCTRL_PHBPOL       0x10
 63 #define FTM_QDCTRL_QUADMODE     0x8                63 #define FTM_QDCTRL_QUADMODE     0x8
 64 #define FTM_QDCTRL_QUADDIR      0x4                64 #define FTM_QDCTRL_QUADDIR      0x4
 65 #define FTM_QDCTRL_TOFDIR       0x2                65 #define FTM_QDCTRL_TOFDIR       0x2
 66 #define FTM_QDCTRL_QUADEN       0x1                66 #define FTM_QDCTRL_QUADEN       0x1
 67                                                    67 
 68 #define FTM_FMS_FAULTF          0x80               68 #define FTM_FMS_FAULTF          0x80
 69 #define FTM_FMS_WPEN            0x40               69 #define FTM_FMS_WPEN            0x40
 70 #define FTM_FMS_FAULTIN         0x10               70 #define FTM_FMS_FAULTIN         0x10
 71 #define FTM_FMS_FAULTF3         0x8                71 #define FTM_FMS_FAULTF3         0x8
 72 #define FTM_FMS_FAULTF2         0x4                72 #define FTM_FMS_FAULTF2         0x4
 73 #define FTM_FMS_FAULTF1         0x2                73 #define FTM_FMS_FAULTF1         0x2
 74 #define FTM_FMS_FAULTF0         0x1                74 #define FTM_FMS_FAULTF0         0x1
 75                                                    75 
 76 #define FTM_CSC_BASE            0xC                76 #define FTM_CSC_BASE            0xC
 77 #define FTM_CSC_MSB             0x20               77 #define FTM_CSC_MSB             0x20
 78 #define FTM_CSC_MSA             0x10               78 #define FTM_CSC_MSA             0x10
 79 #define FTM_CSC_ELSB            0x8                79 #define FTM_CSC_ELSB            0x8
 80 #define FTM_CSC_ELSA            0x4                80 #define FTM_CSC_ELSA            0x4
 81 #define FTM_CSC(_channel)       (FTM_CSC_BASE      81 #define FTM_CSC(_channel)       (FTM_CSC_BASE + ((_channel) * 8))
 82                                                    82 
 83 #define FTM_CV_BASE             0x10               83 #define FTM_CV_BASE             0x10
 84 #define FTM_CV(_channel)        (FTM_CV_BASE +     84 #define FTM_CV(_channel)        (FTM_CV_BASE + ((_channel) * 8))
 85                                                    85 
 86 #define FTM_PS_MAX              7                  86 #define FTM_PS_MAX              7
 87                                                    87 
 88 #endif                                             88 #endif
 89                                                    89 

~ [ 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