at91_ebi.h

Go to the documentation of this file.
00001 #ifndef _ARCH_ARM_AT91_EBI_H_
00002 #define _ARCH_ARM_AT91_EBI_H_
00003 
00004 /*
00005  * Copyright (C) 2005-2006 by egnite Software GmbH. All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  *
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  * 3. Neither the name of the copyright holders nor the names of
00017  *    contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
00021  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00022  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00023  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
00024  * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00025  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00026  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00027  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00028  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00029  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00030  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032  *
00033  * For additional information see http://www.ethernut.de/
00034  */
00035 
00057 
00058 #if defined(EBI_HAS_CSA)
00059 
00060 #define EBI_CSA_OFF             0x00000000      
00061 #define EBI_CSA     (EBI_BASE + EBI_CSA_OFF)    
00063 #define EBI_CS1A                0x00000002      
00064 #define EBI_CS2A                0x00000004      
00065 #define EBI_CS3A                0x00000008      
00066 #define EBI_CS4A                0x00000010      
00067 #define EBI_NWPC                0x00010000      
00069 #else /* EBI_HAS_CSA */
00070 
00073 #define EBI_CSR(i)      (EBI_BASE + i * 4)      
00075 #define EBI_DBW                 0x00000003      
00076 #define EBI_DBW_16              0x00000001      
00077 #define EBI_DBW_8               0x00000002      
00079 #define EBI_NWS                 0x0000001C      
00080 #define EBI_NWS_1               0x00000000      
00081 #define EBI_NWS_2               0x00000004      
00082 #define EBI_NWS_3               0x00000008      
00083 #define EBI_NWS_4               0x0000000C      
00084 #define EBI_NWS_5               0x00000010      
00085 #define EBI_NWS_6               0x00000014      
00086 #define EBI_NWS_7               0x00000018      
00087 #define EBI_NWS_8               0x0000001C      
00089 #define EBI_WSE                 0x00000020      
00091 #define EBI_PAGES               0x00000180      
00092 #define EBI_PAGES_1M            0x00000000      
00093 #define EBI_PAGES_4M            0x00000080      
00094 #define EBI_PAGES_16M           0x00000100      
00095 #define EBI_PAGES_64M           0x00000180      
00097 #define EBI_TDF                 0x00000E00      
00098 #define EBI_TDF_0               0x00000000      
00099 #define EBI_TDF_1               0x00000200      
00100 #define EBI_TDF_2               0x00000400      
00101 #define EBI_TDF_3               0x00000600      
00102 #define EBI_TDF_4               0x00000800      
00103 #define EBI_TDF_5               0x00000A00      
00104 #define EBI_TDF_6               0x00000C00      
00105 #define EBI_TDF_7               0x00000E00      
00107 #define EBI_BAT                 0x00001000      
00108 #define EBI_BAT_BYTE_WRITE      0x00000000      
00109 #define EBI_BAT_BYTE_SELECT     0x00001000      
00111 #define EBI_CSEN                0x00002000      
00113 #define EBI_BA                  0xFFF00000      
00115 
00116 
00118 #define EBI_RCR         (EBI_BASE + 0x20)       
00119 #define EBI_RCB                 0x00000001      
00121 
00122 
00124 #define EBI_MCR         (EBI_BASE + 0x24)       
00125 #define EBI_ALE                 0x00000007      
00126 #define EBI_ALE_16M             0x00000000      
00127 #define EBI_ALE_8M              0x00000004      
00128 #define EBI_ALE_4M              0x00000005      
00129 #define EBI_ALE_2M              0x00000006      
00130 #define EBI_ALE_1M              0x00000007      
00132 #define EBI_DRP                 0x00000010      
00133 #define EBI_DRP_STANDARD        0x00000000      
00134 #define EBI_DRP_EARLY           0x00000010      
00136 
00137 #endif
00138 
00141 #endif                          /* _ARCH_ARM_AT91_EBI_H_ */

© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/