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

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/asm/m54xxgpt.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * File:        m54xxgpt.h
  4  * Purpose:     Register and bit definitions for the MCF54XX
  5  *
  6  * Notes:
  7  *
  8  */
  9 
 10 #ifndef m54xxgpt_h
 11 #define m54xxgpt_h
 12 
 13 /*********************************************************************
 14 *
 15 * General Purpose Timers (GPT)
 16 *
 17 *********************************************************************/
 18 
 19 /* Register read/write macros */
 20 #define MCF_GPT_GMS0       (MCF_MBAR + 0x000800)
 21 #define MCF_GPT_GCIR0      (MCF_MBAR + 0x000804)
 22 #define MCF_GPT_GPWM0      (MCF_MBAR + 0x000808)
 23 #define MCF_GPT_GSR0       (MCF_MBAR + 0x00080C)
 24 #define MCF_GPT_GMS1       (MCF_MBAR + 0x000810)
 25 #define MCF_GPT_GCIR1      (MCF_MBAR + 0x000814)
 26 #define MCF_GPT_GPWM1      (MCF_MBAR + 0x000818)
 27 #define MCF_GPT_GSR1       (MCF_MBAR + 0x00081C)
 28 #define MCF_GPT_GMS2       (MCF_MBAR + 0x000820)
 29 #define MCF_GPT_GCIR2      (MCF_MBAR + 0x000824)
 30 #define MCF_GPT_GPWM2      (MCF_MBAR + 0x000828)
 31 #define MCF_GPT_GSR2       (MCF_MBAR + 0x00082C)
 32 #define MCF_GPT_GMS3       (MCF_MBAR + 0x000830)
 33 #define MCF_GPT_GCIR3      (MCF_MBAR + 0x000834)
 34 #define MCF_GPT_GPWM3      (MCF_MBAR + 0x000838)
 35 #define MCF_GPT_GSR3       (MCF_MBAR + 0x00083C)
 36 #define MCF_GPT_GMS(x)     (MCF_MBAR + 0x000800 + ((x) * 0x010))
 37 #define MCF_GPT_GCIR(x)    (MCF_MBAR + 0x000804 + ((x) * 0x010))
 38 #define MCF_GPT_GPWM(x)    (MCF_MBAR + 0x000808 + ((x) * 0x010))
 39 #define MCF_GPT_GSR(x)     (MCF_MBAR + 0x00080C + ((x) * 0x010))
 40 
 41 /* Bit definitions and macros for MCF_GPT_GMS */
 42 #define MCF_GPT_GMS_TMS(x)         (((x)&0x00000007)<<0)
 43 #define MCF_GPT_GMS_GPIO(x)        (((x)&0x00000003)<<4)
 44 #define MCF_GPT_GMS_IEN            (0x00000100)
 45 #define MCF_GPT_GMS_OD             (0x00000200)
 46 #define MCF_GPT_GMS_SC             (0x00000400)
 47 #define MCF_GPT_GMS_CE             (0x00001000)
 48 #define MCF_GPT_GMS_WDEN           (0x00008000)
 49 #define MCF_GPT_GMS_ICT(x)         (((x)&0x00000003)<<16)
 50 #define MCF_GPT_GMS_OCT(x)         (((x)&0x00000003)<<20)
 51 #define MCF_GPT_GMS_OCPW(x)        (((x)&0x000000FF)<<24)
 52 #define MCF_GPT_GMS_OCT_FRCLOW     (0x00000000)
 53 #define MCF_GPT_GMS_OCT_PULSEHI    (0x00100000)
 54 #define MCF_GPT_GMS_OCT_PULSELO    (0x00200000)
 55 #define MCF_GPT_GMS_OCT_TOGGLE     (0x00300000)
 56 #define MCF_GPT_GMS_ICT_ANY        (0x00000000)
 57 #define MCF_GPT_GMS_ICT_RISE       (0x00010000)
 58 #define MCF_GPT_GMS_ICT_FALL       (0x00020000)
 59 #define MCF_GPT_GMS_ICT_PULSE      (0x00030000)
 60 #define MCF_GPT_GMS_GPIO_INPUT     (0x00000000)
 61 #define MCF_GPT_GMS_GPIO_OUTLO     (0x00000020)
 62 #define MCF_GPT_GMS_GPIO_OUTHI     (0x00000030)
 63 #define MCF_GPT_GMS_GPIO_MASK      (0x00000030)
 64 #define MCF_GPT_GMS_TMS_DISABLE    (0x00000000)
 65 #define MCF_GPT_GMS_TMS_INCAPT     (0x00000001)
 66 #define MCF_GPT_GMS_TMS_OUTCAPT    (0x00000002)
 67 #define MCF_GPT_GMS_TMS_PWM        (0x00000003)
 68 #define MCF_GPT_GMS_TMS_GPIO       (0x00000004)
 69 #define MCF_GPT_GMS_TMS_MASK       (0x00000007)
 70 
 71 /* Bit definitions and macros for MCF_GPT_GCIR */
 72 #define MCF_GPT_GCIR_CNT(x)        (((x)&0x0000FFFF)<<0)
 73 #define MCF_GPT_GCIR_PRE(x)        (((x)&0x0000FFFF)<<16)
 74 
 75 /* Bit definitions and macros for MCF_GPT_GPWM */
 76 #define MCF_GPT_GPWM_LOAD          (0x00000001)
 77 #define MCF_GPT_GPWM_PWMOP         (0x00000100)
 78 #define MCF_GPT_GPWM_WIDTH(x)      (((x)&0x0000FFFF)<<16)
 79 
 80 /* Bit definitions and macros for MCF_GPT_GSR */
 81 #define MCF_GPT_GSR_CAPT           (0x00000001)
 82 #define MCF_GPT_GSR_COMP           (0x00000002)
 83 #define MCF_GPT_GSR_PWMP           (0x00000004)
 84 #define MCF_GPT_GSR_TEXP           (0x00000008)
 85 #define MCF_GPT_GSR_PIN            (0x00000100)
 86 #define MCF_GPT_GSR_OVF(x)         (((x)&0x00000007)<<12)
 87 #define MCF_GPT_GSR_CAPTURE(x)     (((x)&0x0000FFFF)<<16)
 88 
 89 /********************************************************************/
 90 
 91 #endif /* m54xxgpt_h */
 92 

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