Mercurial > flash_v2
annotate packages/hal/arm/aim711/current/include/hal_platform_setup.h @ 1637:eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
SNDS package.
| author | asl |
|---|---|
| date | Fri, 14 May 2004 14:47:29 +0000 |
| parents | |
| children |
| rev | line source |
|---|---|
|
1637
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
1 #ifndef CYGONCE_HAL_PLATFORM_SETUP_H |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
2 #define CYGONCE_HAL_PLATFORM_SETUP_H |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
3 //========================================================================== |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
4 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
5 // hal_platform_setup.h |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
6 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
7 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
8 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
9 //========================================================================== |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
10 //####ECOSGPLCOPYRIGHTBEGIN#### |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
11 // ------------------------------------------- |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
12 // This file is part of eCos, the Embedded Configurable Operating System. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
13 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
14 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
15 // eCos is free software; you can redistribute it and/or modify it under |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
16 // the terms of the GNU General Public License as published by the Free |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
17 // Software Foundation; either version 2 or (at your option) any later version. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
18 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
19 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
20 // WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
21 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
22 // for more details. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
23 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
24 // You should have received a copy of the GNU General Public License along |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
25 // with eCos; if not, write to the Free Software Foundation, Inc., |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
26 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
27 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
28 // As a special exception, if other files instantiate templates or use macros |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
29 // or inline functions from this file, or you compile this file and link it |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
30 // with other works to produce a work based on this file, this file does not |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
31 // by itself cause the resulting work to be covered by the GNU General Public |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
32 // License. However the source code for this file must still be made available |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
33 // in accordance with section (3) of the GNU General Public License. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
34 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
35 // This exception does not invalidate any other reasons why a work based on |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
36 // this file might be covered by the GNU General Public License. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
37 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
38 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
39 // at http://sources.redhat.com/ecos/ecos-license/ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
40 // ------------------------------------------- |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
41 //####ECOSGPLCOPYRIGHTEND#### |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
42 //========================================================================== |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
43 //#####DESCRIPTIONBEGIN#### |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
44 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
45 // Author(s): gthomas |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
46 // Contributors: gthomas, jskov, rcassebohm |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
47 // Grant Edwards <grante@visi.com> |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
48 // Date: 2001-07-31 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
49 // Purpose: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
50 // Description: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
51 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
52 //####DESCRIPTIONEND#### |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
53 // |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
54 //========================================================================*/ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
55 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
56 #include <cyg/hal/plf_io.h> |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
57 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
58 .macro LED_MACRO x |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
59 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
60 ldr r0,=KS32C_IOPDATA |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
61 ldr r1,[r0] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
62 and r1,r1,#(~0x7) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
63 orr r1,r1,#((0x7 & (~(\x)))) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
64 str r1,[r0] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
65 #ifdef CYGSEM_HAL_LED_WITH_DELAY |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
66 ldr r1,=0x80000 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
67 1: sub r1,r1,#1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
68 cmp r1,#0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
69 bne 1b |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
70 #endif |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
71 .endm |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
72 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
73 #define CYGHWR_LED_MACRO \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
74 LED_MACRO (\x) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
75 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
76 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
77 // Use relative branch since we are going to switch the address space |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
78 // around. |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
79 #define CYGSEM_HAL_ROM_RESET_USES_JUMP |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
80 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
81 .macro PLATFORM_RELOCATE |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
82 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
83 ldr r1,=KS32C_IOPMOD |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
84 ldr r2,=0x07 /* set led display to output */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
85 str r2,[r1] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
86 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
87 LED 0x0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
88 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
89 /* Check that it worked, otherwise try Sync DRAM setup */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
90 ldr r1,=0x00000000 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
91 str r1,[r1] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
92 ldr r2,[r1] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
93 cmp r2,r1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
94 beq 99f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
95 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
96 /* Sync DRAM mode */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
97 LED 0x1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
98 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
99 ldr r3, =0xe7ffff90 /* sdram c+wb disabled, regs @ 0x03ff0000 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
100 ldr r0, =KS32C_SYSCFG |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
101 str r3,[r0] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
102 1: mov r1,pc /* actual address */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
103 sub r1,r1,#8 /* + 8 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
104 ldr r0,=1b /* address off 1: after remap */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
105 sub r1,r1,r0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
106 ldr r0,=40f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
107 add r0,r0,r1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
108 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
109 #ifdef CYG_HAL_STARTUP_ROMRAM |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
110 ldr lr,=4f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
111 add lr,lr,r1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
112 ldr r1,=AIM711_ROM0_LA_START |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
113 add lr,lr,r1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
114 #else |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
115 ldr lr,=99f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
116 #endif |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
117 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
118 ldmia r0,{r1-r12} |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
119 ldr r0,=KS32C_EXTDBWTH |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
120 stmia r0,{r1-r12} |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
121 mov pc,lr |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
122 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
123 #ifdef CYG_HAL_STARTUP_ROMRAM |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
124 4: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
125 /* Relocate text segment */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
126 ldr r2,=__exception_handlers |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
127 ldr r3,=AIM711_ROM0_LA_START |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
128 cmp r2,r3 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
129 beq 6f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
130 ldr r4,=__rom_data_end |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
131 5: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
132 ldr r0,[r3],#4 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
133 str r0,[r2],#4 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
134 cmp r2,r4 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
135 bne 5b |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
136 6: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
137 ldr lr,=99f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
138 mov pc,lr |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
139 nop |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
140 nop |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
141 nop |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
142 #endif |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
143 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
144 /* The below are set with a store-multiple instruction */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
145 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
146 /* Sync DRAM setup */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
147 /* Flash is 8 bit, DRAM is 32 bit and EXTIO is 8 bit */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
148 /* .long KS32C_EXTDBWTH */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
149 40: .long ( (KS32C_EXTDBWTH_8BIT<<KS32C_EXTDBWTH_DSR0_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
150 |(KS32C_EXTDBWTH_32BIT<<KS32C_EXTDBWTH_DSD0_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
151 |(KS32C_EXTDBWTH_8BIT<<KS32C_EXTDBWTH_DSX0_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
152 |(KS32C_EXTDBWTH_8BIT<<KS32C_EXTDBWTH_DSX2_shift) ) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
153 /* Flash at 0x02000000-0x02100000, 5 cycles, 7 cycles */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
154 /* .long KS32C_ROMCON0 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
155 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
156 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
157 |(KS32C_ROMCON_TACC_7C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
158 |((AIM711_ROM0_LA_START >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
159 |((AIM711_ROM0_LA_END >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
160 /* .long KS32C_ROMCON1 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
161 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
162 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
163 |(KS32C_ROMCON_TACC_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
164 |((0x00000000 >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
165 |((0x00000000 >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
166 /* .long KS32C_ROMCON2 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
167 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
168 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
169 |(KS32C_ROMCON_TACC_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
170 |((0x00000000 >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
171 |((0x00000000 >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
172 /* .long KS32C_ROMCON3 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
173 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
174 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
175 |(KS32C_ROMCON_TACC_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
176 |((0x00000000 >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
177 |((0x00000000 >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
178 /* .long KS32C_ROMCON4 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
179 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
180 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
181 |(KS32C_ROMCON_TACC_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
182 |((0x00000000 >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
183 |((0x00000000 >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
184 /* .long KS32C_ROMCON5 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
185 .long ( (KS32C_ROMCON_PMC_ROM) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
186 |(KS32C_ROMCON_TPA_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
187 |(KS32C_ROMCON_TACC_5C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
188 |((0x00000000 >> 16) << KS32C_ROMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
189 |((0x00000000 >> 16) << KS32C_ROMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
190 /* .long KS32C_DRAMCON0 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
191 .long ( (KS32C_DRAMCON_RESERVED) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
192 |(KS32C_DRAMCON_CAN_8) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
193 |(KS32C_DRAMCON_TRP_4C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
194 |(KS32C_DRAMCON_TRC_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
195 |((AIM711_DRAM_LA_START >> 16) << KS32C_DRAMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
196 |((AIM711_DRAM_LA_END >> 16) << KS32C_DRAMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
197 /* .long KS32C_DRAMCON1 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
198 .long ( (KS32C_DRAMCON_RESERVED) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
199 |(KS32C_DRAMCON_CAN_8) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
200 |(KS32C_DRAMCON_TRP_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
201 |(KS32C_DRAMCON_TRC_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
202 |((0x00000000 >> 16) << KS32C_DRAMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
203 |((0x00000000 >> 16) << KS32C_DRAMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
204 /* .long KS32C_DRAMCON2 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
205 .long ( (KS32C_DRAMCON_RESERVED) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
206 |(KS32C_DRAMCON_CAN_8) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
207 |(KS32C_DRAMCON_TRP_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
208 |(KS32C_DRAMCON_TRC_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
209 |((0x00000000 >> 16) << KS32C_DRAMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
210 |((0x00000000 >> 16) << KS32C_DRAMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
211 /* .long KS32C_DRAMCON3 */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
212 .long ( (KS32C_DRAMCON_RESERVED) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
213 |(KS32C_DRAMCON_CAN_8) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
214 |(KS32C_DRAMCON_TRP_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
215 |(KS32C_DRAMCON_TRC_2C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
216 |((0x00000000 >> 16) << KS32C_DRAMCON_BASE_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
217 |((0x00000000 >> 16) << KS32C_DRAMCON_NEXT_shift)) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
218 /* .long KS32C_REFEXTCON */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
219 .long (((2048+1-(8*CYGNUM_HAL_CPUCLOCK/1000000)) << KS32C_REFEXTCON_RCV_shift) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
220 |(KS32C_REFEXTCON_TRC_4C) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
221 |(KS32C_REFEXTCON_REN) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
222 |(KS32C_REFEXTCON_VSF) \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
223 |(AIM711_EXT0_LA_START >> 16) ) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
224 #if 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
225 50: |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
226 .long 0x07113001 /* ROM half-word, RAM word, EXT-IO */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
227 .long 0x21080060 /* ROM 32 - 33 MByte */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
228 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
229 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
230 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
231 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
232 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
233 .long 0x0800038e /* RAM 0 - 8 MByte */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
234 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
235 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
236 .long 0 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
237 .long 0xc01583fd /* Reactivate external Bus */ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
238 #endif |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
239 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
240 99: LED 0x2 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
241 ldr r3,=0x00000000 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
242 str r3,[r3] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
243 ldr r4,[r3] |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
244 cmp r4,r3 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
245 beq 15f |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
246 11: LED 0x3 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
247 b 11b |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
248 15: LED 0x4 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
249 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
250 .endm |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
251 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
252 #if defined(CYG_HAL_STARTUP_ROM) || defined(CYG_HAL_STARTUP_ROMRAM) |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
253 #define PLATFORM_SETUP1 \ |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
254 PLATFORM_RELOCATE |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
255 #else |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
256 #define PLATFORM_SETUP1 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
257 #endif |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
258 |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
259 //----------------------------------------------------------------------------- |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
260 // end of hal_platform_setup.h |
|
eeaba976ebc6
New package for the ARM Industrial Module AIM 711 cloned from
asl
parents:
diff
changeset
|
261 #endif // CYGONCE_HAL_PLATFORM_SETUP_H |
