Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
m54xxgpt.h File Reference

Go to the source code of this file.

Macros

#define MCF_GPT_GMS0   (MCF_MBAR + 0x000800)
 
#define MCF_GPT_GCIR0   (MCF_MBAR + 0x000804)
 
#define MCF_GPT_GPWM0   (MCF_MBAR + 0x000808)
 
#define MCF_GPT_GSR0   (MCF_MBAR + 0x00080C)
 
#define MCF_GPT_GMS1   (MCF_MBAR + 0x000810)
 
#define MCF_GPT_GCIR1   (MCF_MBAR + 0x000814)
 
#define MCF_GPT_GPWM1   (MCF_MBAR + 0x000818)
 
#define MCF_GPT_GSR1   (MCF_MBAR + 0x00081C)
 
#define MCF_GPT_GMS2   (MCF_MBAR + 0x000820)
 
#define MCF_GPT_GCIR2   (MCF_MBAR + 0x000824)
 
#define MCF_GPT_GPWM2   (MCF_MBAR + 0x000828)
 
#define MCF_GPT_GSR2   (MCF_MBAR + 0x00082C)
 
#define MCF_GPT_GMS3   (MCF_MBAR + 0x000830)
 
#define MCF_GPT_GCIR3   (MCF_MBAR + 0x000834)
 
#define MCF_GPT_GPWM3   (MCF_MBAR + 0x000838)
 
#define MCF_GPT_GSR3   (MCF_MBAR + 0x00083C)
 
#define MCF_GPT_GMS(x)   (MCF_MBAR + 0x000800 + ((x) * 0x010))
 
#define MCF_GPT_GCIR(x)   (MCF_MBAR + 0x000804 + ((x) * 0x010))
 
#define MCF_GPT_GPWM(x)   (MCF_MBAR + 0x000808 + ((x) * 0x010))
 
#define MCF_GPT_GSR(x)   (MCF_MBAR + 0x00080C + ((x) * 0x010))
 
#define MCF_GPT_GMS_TMS(x)   (((x)&0x00000007)<<0)
 
#define MCF_GPT_GMS_GPIO(x)   (((x)&0x00000003)<<4)
 
#define MCF_GPT_GMS_IEN   (0x00000100)
 
#define MCF_GPT_GMS_OD   (0x00000200)
 
#define MCF_GPT_GMS_SC   (0x00000400)
 
#define MCF_GPT_GMS_CE   (0x00001000)
 
#define MCF_GPT_GMS_WDEN   (0x00008000)
 
#define MCF_GPT_GMS_ICT(x)   (((x)&0x00000003)<<16)
 
#define MCF_GPT_GMS_OCT(x)   (((x)&0x00000003)<<20)
 
#define MCF_GPT_GMS_OCPW(x)   (((x)&0x000000FF)<<24)
 
#define MCF_GPT_GMS_OCT_FRCLOW   (0x00000000)
 
#define MCF_GPT_GMS_OCT_PULSEHI   (0x00100000)
 
#define MCF_GPT_GMS_OCT_PULSELO   (0x00200000)
 
#define MCF_GPT_GMS_OCT_TOGGLE   (0x00300000)
 
#define MCF_GPT_GMS_ICT_ANY   (0x00000000)
 
#define MCF_GPT_GMS_ICT_RISE   (0x00010000)
 
#define MCF_GPT_GMS_ICT_FALL   (0x00020000)
 
#define MCF_GPT_GMS_ICT_PULSE   (0x00030000)
 
#define MCF_GPT_GMS_GPIO_INPUT   (0x00000000)
 
#define MCF_GPT_GMS_GPIO_OUTLO   (0x00000020)
 
#define MCF_GPT_GMS_GPIO_OUTHI   (0x00000030)
 
#define MCF_GPT_GMS_GPIO_MASK   (0x00000030)
 
#define MCF_GPT_GMS_TMS_DISABLE   (0x00000000)
 
#define MCF_GPT_GMS_TMS_INCAPT   (0x00000001)
 
#define MCF_GPT_GMS_TMS_OUTCAPT   (0x00000002)
 
#define MCF_GPT_GMS_TMS_PWM   (0x00000003)
 
#define MCF_GPT_GMS_TMS_GPIO   (0x00000004)
 
#define MCF_GPT_GMS_TMS_MASK   (0x00000007)
 
#define MCF_GPT_GCIR_CNT(x)   (((x)&0x0000FFFF)<<0)
 
#define MCF_GPT_GCIR_PRE(x)   (((x)&0x0000FFFF)<<16)
 
#define MCF_GPT_GPWM_LOAD   (0x00000001)
 
#define MCF_GPT_GPWM_PWMOP   (0x00000100)
 
#define MCF_GPT_GPWM_WIDTH(x)   (((x)&0x0000FFFF)<<16)
 
#define MCF_GPT_GSR_CAPT   (0x00000001)
 
#define MCF_GPT_GSR_COMP   (0x00000002)
 
#define MCF_GPT_GSR_PWMP   (0x00000004)
 
#define MCF_GPT_GSR_TEXP   (0x00000008)
 
#define MCF_GPT_GSR_PIN   (0x00000100)
 
#define MCF_GPT_GSR_OVF(x)   (((x)&0x00000007)<<12)
 
#define MCF_GPT_GSR_CAPTURE(x)   (((x)&0x0000FFFF)<<16)
 

Macro Definition Documentation

#define MCF_GPT_GCIR (   x)    (MCF_MBAR + 0x000804 + ((x) * 0x010))

Definition at line 36 of file m54xxgpt.h.

#define MCF_GPT_GCIR0   (MCF_MBAR + 0x000804)

Definition at line 20 of file m54xxgpt.h.

#define MCF_GPT_GCIR1   (MCF_MBAR + 0x000814)

Definition at line 24 of file m54xxgpt.h.

#define MCF_GPT_GCIR2   (MCF_MBAR + 0x000824)

Definition at line 28 of file m54xxgpt.h.

#define MCF_GPT_GCIR3   (MCF_MBAR + 0x000834)

Definition at line 32 of file m54xxgpt.h.

#define MCF_GPT_GCIR_CNT (   x)    (((x)&0x0000FFFF)<<0)

Definition at line 71 of file m54xxgpt.h.

#define MCF_GPT_GCIR_PRE (   x)    (((x)&0x0000FFFF)<<16)

Definition at line 72 of file m54xxgpt.h.

#define MCF_GPT_GMS (   x)    (MCF_MBAR + 0x000800 + ((x) * 0x010))

Definition at line 35 of file m54xxgpt.h.

#define MCF_GPT_GMS0   (MCF_MBAR + 0x000800)

Definition at line 19 of file m54xxgpt.h.

#define MCF_GPT_GMS1   (MCF_MBAR + 0x000810)

Definition at line 23 of file m54xxgpt.h.

#define MCF_GPT_GMS2   (MCF_MBAR + 0x000820)

Definition at line 27 of file m54xxgpt.h.

#define MCF_GPT_GMS3   (MCF_MBAR + 0x000830)

Definition at line 31 of file m54xxgpt.h.

#define MCF_GPT_GMS_CE   (0x00001000)

Definition at line 46 of file m54xxgpt.h.

#define MCF_GPT_GMS_GPIO (   x)    (((x)&0x00000003)<<4)

Definition at line 42 of file m54xxgpt.h.

#define MCF_GPT_GMS_GPIO_INPUT   (0x00000000)

Definition at line 59 of file m54xxgpt.h.

#define MCF_GPT_GMS_GPIO_MASK   (0x00000030)

Definition at line 62 of file m54xxgpt.h.

#define MCF_GPT_GMS_GPIO_OUTHI   (0x00000030)

Definition at line 61 of file m54xxgpt.h.

#define MCF_GPT_GMS_GPIO_OUTLO   (0x00000020)

Definition at line 60 of file m54xxgpt.h.

#define MCF_GPT_GMS_ICT (   x)    (((x)&0x00000003)<<16)

Definition at line 48 of file m54xxgpt.h.

#define MCF_GPT_GMS_ICT_ANY   (0x00000000)

Definition at line 55 of file m54xxgpt.h.

#define MCF_GPT_GMS_ICT_FALL   (0x00020000)

Definition at line 57 of file m54xxgpt.h.

#define MCF_GPT_GMS_ICT_PULSE   (0x00030000)

Definition at line 58 of file m54xxgpt.h.

#define MCF_GPT_GMS_ICT_RISE   (0x00010000)

Definition at line 56 of file m54xxgpt.h.

#define MCF_GPT_GMS_IEN   (0x00000100)

Definition at line 43 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCPW (   x)    (((x)&0x000000FF)<<24)

Definition at line 50 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCT (   x)    (((x)&0x00000003)<<20)

Definition at line 49 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCT_FRCLOW   (0x00000000)

Definition at line 51 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCT_PULSEHI   (0x00100000)

Definition at line 52 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCT_PULSELO   (0x00200000)

Definition at line 53 of file m54xxgpt.h.

#define MCF_GPT_GMS_OCT_TOGGLE   (0x00300000)

Definition at line 54 of file m54xxgpt.h.

#define MCF_GPT_GMS_OD   (0x00000200)

Definition at line 44 of file m54xxgpt.h.

#define MCF_GPT_GMS_SC   (0x00000400)

Definition at line 45 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS (   x)    (((x)&0x00000007)<<0)

Definition at line 41 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_DISABLE   (0x00000000)

Definition at line 63 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_GPIO   (0x00000004)

Definition at line 67 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_INCAPT   (0x00000001)

Definition at line 64 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_MASK   (0x00000007)

Definition at line 68 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_OUTCAPT   (0x00000002)

Definition at line 65 of file m54xxgpt.h.

#define MCF_GPT_GMS_TMS_PWM   (0x00000003)

Definition at line 66 of file m54xxgpt.h.

#define MCF_GPT_GMS_WDEN   (0x00008000)

Definition at line 47 of file m54xxgpt.h.

#define MCF_GPT_GPWM (   x)    (MCF_MBAR + 0x000808 + ((x) * 0x010))

Definition at line 37 of file m54xxgpt.h.

#define MCF_GPT_GPWM0   (MCF_MBAR + 0x000808)

Definition at line 21 of file m54xxgpt.h.

#define MCF_GPT_GPWM1   (MCF_MBAR + 0x000818)

Definition at line 25 of file m54xxgpt.h.

#define MCF_GPT_GPWM2   (MCF_MBAR + 0x000828)

Definition at line 29 of file m54xxgpt.h.

#define MCF_GPT_GPWM3   (MCF_MBAR + 0x000838)

Definition at line 33 of file m54xxgpt.h.

#define MCF_GPT_GPWM_LOAD   (0x00000001)

Definition at line 75 of file m54xxgpt.h.

#define MCF_GPT_GPWM_PWMOP   (0x00000100)

Definition at line 76 of file m54xxgpt.h.

#define MCF_GPT_GPWM_WIDTH (   x)    (((x)&0x0000FFFF)<<16)

Definition at line 77 of file m54xxgpt.h.

#define MCF_GPT_GSR (   x)    (MCF_MBAR + 0x00080C + ((x) * 0x010))

Definition at line 38 of file m54xxgpt.h.

#define MCF_GPT_GSR0   (MCF_MBAR + 0x00080C)

Definition at line 22 of file m54xxgpt.h.

#define MCF_GPT_GSR1   (MCF_MBAR + 0x00081C)

Definition at line 26 of file m54xxgpt.h.

#define MCF_GPT_GSR2   (MCF_MBAR + 0x00082C)

Definition at line 30 of file m54xxgpt.h.

#define MCF_GPT_GSR3   (MCF_MBAR + 0x00083C)

Definition at line 34 of file m54xxgpt.h.

#define MCF_GPT_GSR_CAPT   (0x00000001)

Definition at line 80 of file m54xxgpt.h.

#define MCF_GPT_GSR_CAPTURE (   x)    (((x)&0x0000FFFF)<<16)

Definition at line 86 of file m54xxgpt.h.

#define MCF_GPT_GSR_COMP   (0x00000002)

Definition at line 81 of file m54xxgpt.h.

#define MCF_GPT_GSR_OVF (   x)    (((x)&0x00000007)<<12)

Definition at line 85 of file m54xxgpt.h.

#define MCF_GPT_GSR_PIN   (0x00000100)

Definition at line 84 of file m54xxgpt.h.

#define MCF_GPT_GSR_PWMP   (0x00000004)

Definition at line 82 of file m54xxgpt.h.

#define MCF_GPT_GSR_TEXP   (0x00000008)

Definition at line 83 of file m54xxgpt.h.