This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
[PATCH] arm at91 plf_io.h
- From: "Koeller, T." <Thomas dot Koeller at baslerweb dot com>
- To: "ecos-discuss (E-Mail)" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 31 May 2002 14:48:57 +0200
- Subject: [ECOS] [PATCH] arm at91 plf_io.h
Hi,
I added a few more definitions to hal/arm/at91/current/include/plf_io.h -
these
are required for making use of the EBI.
tk
--- plf_io.h-orig 2002-05-31 14:41:58.000000000 +0200
+++ plf_io.h 2002-05-31 14:38:25.000000000 +0200
@@ -43,7 +43,7 @@
//#####DESCRIPTIONBEGIN####
//
// Author(s): jskov
-// Contributors:jskov, gthomas
+// Contributors:jskov, gthomas, tkoeller
// Date: 2001-07-12
// Purpose: AT91/EB40 platform specific registers
// Description:
@@ -296,7 +296,49 @@
// External Bus Interface
#define AT91_EBI 0xFFE00000
+#define AT91_EBI_CSR0 0x00
+#define AT91_EBI_CSR1 0x04
+#define AT91_EBI_CSR2 0x08
+#define AT91_EBI_CSR3 0x0C
+#define AT91_EBI_CSR4 0x10
+#define AT91_EBI_CSR5 0x14
+#define AT91_EBI_CSR6 0x18
+#define AT91_EBI_CSR7 0x1C // Chip select
+#define AT91_EBI_CSR_DBW_16 0x1 // Data bus 16 bits wide
+#define AT91_EBI_CSR_DBW_8 0x2 // Data bus 8 bits wide
+#define AT91_EBI_CSR_NWS_1 (0x0 << 2)
+#define AT91_EBI_CSR_NWS_2 (0x1 << 2)
+#define AT91_EBI_CSR_NWS_3 (0x2 << 2)
+#define AT91_EBI_CSR_NWS_4 (0x3 << 2)
+#define AT91_EBI_CSR_NWS_5 (0x4 << 2)
+#define AT91_EBI_CSR_NWS_6 (0x5 << 2)
+#define AT91_EBI_CSR_NWS_7 (0x6 << 2)
+#define AT91_EBI_CSR_NWS_8 (0x7 << 2) // Number of wait states
+#define AT91_EBI_CSR_WSE (0x1 << 5) // Wait state enable
+#define AT91_EBI_CSR_PAGES_1M (0x0 << 7)
+#define AT91_EBI_CSR_PAGES_4M (0x1 << 7)
+#define AT91_EBI_CSR_PAGES_16M (0x2 << 7)
+#define AT91_EBI_CSR_PAGES_64M (0x3 << 7) // Page size
+#define AT91_EBI_CSR_TDF_0 (0x0 << 9)
+#define AT91_EBI_CSR_TDF_1 (0x1 << 9)
+#define AT91_EBI_CSR_TDF_2 (0x2 << 9)
+#define AT91_EBI_CSR_TDF_3 (0x3 << 9)
+#define AT91_EBI_CSR_TDF_4 (0x4 << 9)
+#define AT91_EBI_CSR_TDF_5 (0x5 << 9)
+#define AT91_EBI_CSR_TDF_6 (0x6 << 9)
+#define AT91_EBI_CSR_TDF_7 (0x7 << 9) // Data float output time
+#define AT91_EBI_CSR_BAT (0x1 << 12) // Byte access type
+#define AT91_EBI_CSR_CSEN (0x1 << 13) // Chip select enable
+#define AT91_EBI_CSR_BA (0xFFF << 24) // Base address
#define AT91_EBI_RCR 0x20 // Reset control
+#define AT91_EBI_RCR_RCB 0x1 // Remap command bit
+#define AT91_EBI_MCR 0x24 // Memory control
+#define AT91_EBI_MCR_ALE_16M 0x0
+#define AT91_EBI_MCR_ALE_8M 0x4
+#define AT91_EBI_MCR_ALE_4M 0x5
+#define AT91_EBI_MCR_ALE_2M 0x6
+#define AT91_EBI_MCR_ALE_1M 0x7 // Address line enable
+#define AT91_EBI_MCR_DRP (0x1 << 4) // Data read protocol
// Power Savings control
-----------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390
mailto:Thomas.Koeller@baslerweb.com
http://www.baslerweb.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss