]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/hal/frv/arch/v2_0/include/fr400.h
Initial revision
[karo-tx-redboot.git] / packages / hal / frv / arch / v2_0 / include / fr400.h
1 //==========================================================================
2 //
3 //      fr400.h
4 //
5 //      HAL misc board support definitions for Fujitsu FR4xx chips
6 //
7 //==========================================================================
8 //####ECOSGPLCOPYRIGHTBEGIN####
9 // -------------------------------------------
10 // This file is part of eCos, the Embedded Configurable Operating System.
11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
12 //
13 // eCos is free software; you can redistribute it and/or modify it under
14 // the terms of the GNU General Public License as published by the Free
15 // Software Foundation; either version 2 or (at your option) any later version.
16 //
17 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20 // for more details.
21 //
22 // You should have received a copy of the GNU General Public License along
23 // with eCos; if not, write to the Free Software Foundation, Inc.,
24 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25 //
26 // As a special exception, if other files instantiate templates or use macros
27 // or inline functions from this file, or you compile this file and link it
28 // with other works to produce a work based on this file, this file does not
29 // by itself cause the resulting work to be covered by the GNU General Public
30 // License. However the source code for this file must still be made available
31 // in accordance with section (3) of the GNU General Public License.
32 //
33 // This exception does not invalidate any other reasons why a work based on
34 // this file might be covered by the GNU General Public License.
35 //
36 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37 // at http://sources.redhat.com/ecos/ecos-license/
38 // -------------------------------------------
39 //####ECOSGPLCOPYRIGHTEND####
40 //==========================================================================
41 //#####DESCRIPTIONBEGIN####
42 //
43 // Author(s):    gthomas
44 // Contributors: gthomas
45 // Date:         2001-09-07
46 // Purpose:      Platform register definitions
47 // Description:  
48 //
49 //####DESCRIPTIONEND####
50 //
51 //========================================================================*/
52
53 #ifndef __HAL_FR400_H__
54 #define __HAL_FR400_H__ 1
55
56 // SDRAM Controller
57 #define _FRV400_SDRAM_CP  0xFE000400              // Controller protect
58 #define _FRV400_SDRAM_CFG 0xFE000410              // Configuration
59 #define _FRV400_SDRAM_CTL 0xFE000418              // Control
60 #define _FRV400_SDRAM_MS  0xFE000420              // Mode select
61 #define _FRV400_SDRAM_STS 0xFE000428              // Status
62 #define _FRV400_SDRAM_RCN 0xFE000430              // Refresh control
63 #define _FRV400_SDRAM_ART 0xFE000438              // Auto-refresh timer
64 #define _FRV400_SDRAM_AN0 0xFE000500              // Address #0
65 #define _FRV400_SDRAM_AN1 0xFE000508              // Address #1
66 #define _FRV400_SDRAM_BR0 0xFE000E00              // Base register #0
67 #define _FRV400_SDRAM_BR1 0xFE000E08              // Base register #1
68 #define _FRV400_SDRAM_AM0 0xFE000F00              // Address mask #0
69 #define _FRV400_SDRAM_AM1 0xFE000F08              // Address mask #1
70
71 // Local bus control
72 #define _FRV400_LBUS_CP   0xFE000000              // Controller protect
73 #define _FRV400_LBUS_GCR  0xFE000010              // General Configuration
74 #define _FRV400_LBUS_EST  0xFE000020              // Error status
75 #define _FRV400_LBUS_EAD  0xFE000028              // Error address
76 #define _FRV400_LBUS_CR0  0xFE000100              // Configuration - space #0
77 #define _FRV400_LBUS_CR1  0xFE000108              // Configuration - space #1
78 #define _FRV400_LBUS_CR2  0xFE000110              // Configuration - space #2
79 #define _FRV400_LBUS_CR3  0xFE000118              // Configuration - space #3
80 #define _FRV400_LBUS_CR4  0xFE000120              // Configuration - space #4
81 #define _FRV400_LBUS_CR5  0xFE000128              // Configuration - space #5
82 #define _FRV400_LBUS_CR6  0xFE000130              // Configuration - space #6
83 #define _FRV400_LBUS_CR7  0xFE000138              // Configuration - space #7
84 #define _FRV400_LBUS_BR0  0xFE000C00              // Slave - base address #0
85 #define _FRV400_LBUS_BR1  0xFE000C08              // Slave - base address #1
86 #define _FRV400_LBUS_BR2  0xFE000C10              // Slave - base address #2
87 #define _FRV400_LBUS_BR3  0xFE000C18              // Slave - base address #3
88 #define _FRV400_LBUS_BR4  0xFE000C20              // Slave - base address #4
89 #define _FRV400_LBUS_BR5  0xFE000C28              // Slave - base address #5
90 #define _FRV400_LBUS_BR6  0xFE000C30              // Slave - base address #6
91 #define _FRV400_LBUS_BR7  0xFE000C38              // Slave - base address #7
92 #define _FRV400_LBUS_AM0  0xFE000D00              // Slave - address mask #0
93 #define _FRV400_LBUS_AM1  0xFE000D08              // Slave - address mask #1
94 #define _FRV400_LBUS_AM2  0xFE000D10              // Slave - address mask #2
95 #define _FRV400_LBUS_AM3  0xFE000D18              // Slave - address mask #3
96 #define _FRV400_LBUS_AM4  0xFE000D20              // Slave - address mask #4
97 #define _FRV400_LBUS_AM5  0xFE000D28              // Slave - address mask #5
98 #define _FRV400_LBUS_AM6  0xFE000D30              // Slave - address mask #6
99 #define _FRV400_LBUS_AM7  0xFE000D38              // Slave - address mask #7
100
101 // Reset register
102 #define _FRV400_HW_RESET 0xFEFF0500               // Hardware reset
103
104 // Some GPIO magic
105 #define _FRV400_GPIO_SIR 0xFEFF0410               // Special input signals
106 #define _FRV400_GPIO_SOR 0xFEFF0418               // Special output signals
107
108 #endif // __HAL_FR400_H__