Path: blob/master/arch/unicore32/include/mach/regs-ost.h
10819 views
/*1* PKUnity Operating System Timer (OST) Registers2*/3/*4* Match Reg 0 OST_OSMR05*/6#define OST_OSMR0 (PKUNITY_OST_BASE + 0x0000)7/*8* Match Reg 1 OST_OSMR19*/10#define OST_OSMR1 (PKUNITY_OST_BASE + 0x0004)11/*12* Match Reg 2 OST_OSMR213*/14#define OST_OSMR2 (PKUNITY_OST_BASE + 0x0008)15/*16* Match Reg 3 OST_OSMR317*/18#define OST_OSMR3 (PKUNITY_OST_BASE + 0x000C)19/*20* Counter Reg OST_OSCR21*/22#define OST_OSCR (PKUNITY_OST_BASE + 0x0010)23/*24* Status Reg OST_OSSR25*/26#define OST_OSSR (PKUNITY_OST_BASE + 0x0014)27/*28* Watchdog Enable Reg OST_OWER29*/30#define OST_OWER (PKUNITY_OST_BASE + 0x0018)31/*32* Interrupt Enable Reg OST_OIER33*/34#define OST_OIER (PKUNITY_OST_BASE + 0x001C)35/*36* PWM Pulse Width Control Reg OST_PWMPWCR37*/38#define OST_PWMPWCR (PKUNITY_OST_BASE + 0x0080)39/*40* PWM Duty Cycle Control Reg OST_PWMDCCR41*/42#define OST_PWMDCCR (PKUNITY_OST_BASE + 0x0084)43/*44* PWM Period Control Reg OST_PWMPCR45*/46#define OST_PWMPCR (PKUNITY_OST_BASE + 0x0088)4748/*49* Match detected 0 OST_OSSR_M050*/51#define OST_OSSR_M0 FIELD(1, 1, 0)52/*53* Match detected 1 OST_OSSR_M154*/55#define OST_OSSR_M1 FIELD(1, 1, 1)56/*57* Match detected 2 OST_OSSR_M258*/59#define OST_OSSR_M2 FIELD(1, 1, 2)60/*61* Match detected 3 OST_OSSR_M362*/63#define OST_OSSR_M3 FIELD(1, 1, 3)6465/*66* Interrupt enable 0 OST_OIER_E067*/68#define OST_OIER_E0 FIELD(1, 1, 0)69/*70* Interrupt enable 1 OST_OIER_E171*/72#define OST_OIER_E1 FIELD(1, 1, 1)73/*74* Interrupt enable 2 OST_OIER_E275*/76#define OST_OIER_E2 FIELD(1, 1, 2)77/*78* Interrupt enable 3 OST_OIER_E379*/80#define OST_OIER_E3 FIELD(1, 1, 3)8182/*83* Watchdog Match Enable OST_OWER_WME84*/85#define OST_OWER_WME FIELD(1, 1, 0)8687/*88* PWM Full Duty Cycle OST_PWMDCCR_FDCYCLE89*/90#define OST_PWMDCCR_FDCYCLE FIELD(1, 1, 10)91929394