source: rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/reg-defs.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief Register definitions.
7 */
8
9/*
10 * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#ifndef LIBCPU_POWERPC_MPC55XX_REG_DEFS_H
24#define LIBCPU_POWERPC_MPC55XX_REG_DEFS_H
25
26#include <bspopts.h>
27
28#if MPC55XX_CHIP_TYPE / 10 == 551
29  #define FLASH_BIUCR   0xFFFF801C
30#else
31  #define FLASH_BIUCR 0xC3F8801C
32#endif
33
34/*
35 * Definitions for FLASH_BIUCR (Flash BIU Control Register)
36 */
37
38/* Fields for Flash Bus Interface Control */
39/* Fields for Prefetch Control (MnPFE Master n Prefetch Enable) */
40
41/* Fields for M3PFE (Master 3 (EBI) prefetch enable bit [12]) */
42#define FLASH_BUICR_EBI_PREFTCH 0x00080000
43
44/* Fields for M2PFE (Master 2 (eDMA) prefetch enable bit [13]) */
45#define FLASH_BUICR_EDMA_PREFTCH 0x00040000
46
47/* Fields for M1PFE (Master 1 (Nexus) prefetch enable bit [14]) */
48#define FLASH_BUICR_NEX_PREFTCH 0x00020000
49
50/* Fields for M0PFE (Master 0 (e200z core) prefetch enable bit [15]) */
51#define FLASH_BUICR_CPU_PREFTCH 0x00010000
52
53/* Fields for APC (access pipelining control bits [16:18]) */
54#define FLASH_BUICR_APC_1 0x00002000
55#define FLASH_BUICR_APC_2 0x00004000
56#define FLASH_BUICR_APC_3 0x00006000
57#define FLASH_BUICR_APC_4 0x00008000
58#define FLASH_BUICR_APC_5 0x0000A000
59#define FLASH_BUICR_APC_6 0x0000C000
60#define FLASH_BUICR_APC_NO 0x0000E000
61
62/* Fields for WWSC (write wait state control bits [19:20]) */
63#define FLASH_BUICR_WWSC_1 0x00000800
64#define FLASH_BUICR_WWSC_2 0x00001000
65#define FLASH_BUICR_WWSC_3 0x00001800
66
67/* Fields for RWSC (read wait state control bits [21:23]) */
68#define FLASH_BUICR_RWSC_0 0x00000000
69#define FLASH_BUICR_RWSC_1 0x00000100
70#define FLASH_BUICR_RWSC_2 0x00000200
71#define FLASH_BUICR_RWSC_3 0x00000300
72#define FLASH_BUICR_RWSC_4 0x00000400
73#define FLASH_BUICR_RWSC_5 0x00000500
74#define FLASH_BUICR_RWSC_6 0x00000600
75#define FLASH_BUICR_RWSC_7 0x00000700
76
77/* Fields for DPFEN (data prefetch enable bits [24:25]) */
78#define FLASH_BUICR_DPFEN_0 0x00000000
79#define FLASH_BUICR_DPFEN_1 0x00000040
80#define FLASH_BUICR_DPFEN_3 0x000000C0
81
82/* Fields for IPFEN (instruction prefetch enable bits [26:27]) */
83#define FLASH_BUICR_IPFEN_0 0x00000000
84#define FLASH_BUICR_IPFEN_1 0x00000010
85#define FLASH_BUICR_IPFEN_3 0x00000030
86
87/* Fields for PFLIM (additional line prefetch (limit) bits [28:30]) */
88#define FLASH_BUICR_PFLIM_0 0x00000000
89#define FLASH_BUICR_PFLIM_1 0x00000002
90#define FLASH_BUICR_PFLIM_2 0x00000004
91#define FLASH_BUICR_PFLIM_3 0x00000006
92#define FLASH_BUICR_PFLIM_4 0x00000008
93#define FLASH_BUICR_PFLIM_5 0x0000000A
94#define FLASH_BUICR_PFLIM_6 0x0000000C
95
96/* Fields for BFEN (enable line read buffer hits bit [31]) */
97#define FLASH_BUICR_BFEN 0x00000001
98
99#endif /* LIBCPU_POWERPC_MPC55XX_REG_DEFS_H */
Note: See TracBrowser for help on using the repository browser.