2 * These files are taken from the MCF523X source code example package
3 * which is available on the Freescale website. Freescale explicitly
4 * grants the redistribution and modification of these source files.
5 * The complete licensing information is available in the file
6 * LICENSE_FREESCALE.TXT.
9 * Purpose: Register and bit definitions for the MCF523X
15 #ifndef __MCF523X_RNG_H__
16 #define __MCF523X_RNG_H__
18 /*********************************************************************
20 * Random Number Generator (RNG)
22 *********************************************************************/
24 /* Register read/write macros */
25 #define MCF_RNG_RNGCR (*(vuint32*)(void*)(&__IPSBAR[0x1A0000]))
26 #define MCF_RNG_RNGSR (*(vuint32*)(void*)(&__IPSBAR[0x1A0004]))
27 #define MCF_RNG_RNGER (*(vuint32*)(void*)(&__IPSBAR[0x1A0008]))
28 #define MCF_RNG_RNGOUT (*(vuint32*)(void*)(&__IPSBAR[0x1A000C]))
30 /* Bit definitions and macros for MCF_RNG_RNGCR */
31 #define MCF_RNG_RNGCR_GO (0x00000001)
32 #define MCF_RNG_RNGCR_HA (0x00000002)
33 #define MCF_RNG_RNGCR_IM (0x00000004)
34 #define MCF_RNG_RNGCR_CI (0x00000008)
36 /* Bit definitions and macros for MCF_RNG_RNGSR */
37 #define MCF_RNG_RNGSR_SV (0x00000001)
38 #define MCF_RNG_RNGSR_LRS (0x00000002)
39 #define MCF_RNG_RNGSR_FUF (0x00000004)
40 #define MCF_RNG_RNGSR_EI (0x00000008)
41 #define MCF_RNG_RNGSR_OFL(x) (((x)&0x000000FF)<<8)
42 #define MCF_RNG_RNGSR_OFS(x) (((x)&0x000000FF)<<16)
44 /********************************************************************/
46 #endif /* __MCF523X_RNG_H__ */