1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /********************************************* 3 4 /* 5 * mcfpit.h -- ColdFire internal PIT time 6 * 7 * (C) Copyright 2003, Greg Ungerer (gerg 8 */ 9 10 /********************************************* 11 #ifndef mcfpit_h 12 #define mcfpit_h 13 /********************************************* 14 15 /* 16 * Define the PIT timer register address 17 */ 18 #define MCFPIT_PCSR 0x0 19 #define MCFPIT_PMR 0x2 20 #define MCFPIT_PCNTR 0x4 21 22 /* 23 * Bit definitions for the PIT Control an 24 */ 25 #define MCFPIT_PCSR_CLK1 0x0000 26 #define MCFPIT_PCSR_CLK2 0x0100 27 #define MCFPIT_PCSR_CLK4 0x0200 28 #define MCFPIT_PCSR_CLK8 0x0300 29 #define MCFPIT_PCSR_CLK16 0x0400 30 #define MCFPIT_PCSR_CLK32 0x0500 31 #define MCFPIT_PCSR_CLK64 0x0600 32 #define MCFPIT_PCSR_CLK128 0x0700 33 #define MCFPIT_PCSR_CLK256 0x0800 34 #define MCFPIT_PCSR_CLK512 0x0900 35 #define MCFPIT_PCSR_CLK1024 0x0a00 36 #define MCFPIT_PCSR_CLK2048 0x0b00 37 #define MCFPIT_PCSR_CLK4096 0x0c00 38 #define MCFPIT_PCSR_CLK8192 0x0d00 39 #define MCFPIT_PCSR_CLK16384 0x0e00 40 #define MCFPIT_PCSR_CLK32768 0x0f00 41 #define MCFPIT_PCSR_DOZE 0x0040 42 #define MCFPIT_PCSR_HALTED 0x0020 43 #define MCFPIT_PCSR_OVW 0x0010 44 #define MCFPIT_PCSR_PIE 0x0008 45 #define MCFPIT_PCSR_PIF 0x0004 46 #define MCFPIT_PCSR_RLD 0x0002 47 #define MCFPIT_PCSR_EN 0x0001 48 #define MCFPIT_PCSR_DISABLE 0x0000 49 50 /********************************************* 51 #endif /* mcfpit_h */ 52
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.