4 mkdir -p ${obj}board/armltd/integrator
6 config_file=${obj}include/config.h
10 # ---------------------------------------------------------
11 # Set the platform defines
12 # ---------------------------------------------------------
13 cat > ${config_file} << _EOF
14 /* Integrator configuration implied by Makefile target */
15 #define CONFIG_INTEGRATOR /* Integrator board */
16 #define CONFIG_ARCH_INTEGRATOR 1 /* Integrator/AP */
19 # ---------------------------------------------------------
20 # Set the core module defines according to Core Module
21 # ---------------------------------------------------------
23 variant="unknown core module"
27 echo "$0:: No parameters - using arm_intcm"
32 variant="unported core module CM7TDMI"
37 variant="unported core module CM966E-S"
42 variant="unported core module CM922T"
45 integratorap_config | \
48 variant="unspecified core module"
53 echo "#define CONFIG_CM720T 1 /* CPU core is ARM720T */" \
55 variant="Core module CM720T"
60 variant="unported core module CM922T_XA10"
61 echo "#define CONFIG_CM922T_XA10 1 /* CPU core is ARM922T_XA10 */" \
67 variant="Core module CM920T"
68 echo "#define CONFIG_CM920T 1 /* CPU core is ARM920T */" \
74 variant="Core module CM926EJ-S"
75 echo "#define CONFIG_CM926EJ_S 1 /* CPU core is ARM926EJ-S */" \
81 variant="Core module CM946E-S"
82 echo "#define CONFIG_CM946E_S 1 /* CPU core is ARM946E-S */" \
87 echo "$0:: Unknown core module"
88 variant="unknown core module"
97 cat >> ${config_file} << _EOF
98 /* Core module undefined/not ported */
99 #define CONFIG_ARM_INTCM 1
100 #undef CONFIG_CM_MULTIPLE_SSRAM /* CM may not have multiple SSRAM mapping */
101 #undef CONFIG_CM_SPD_DETECT /* CM may not support SPD query */
102 #undef CONFIG_CM_REMAP /* CM may not support remapping */
103 #undef CONFIG_CM_INIT /* CM may not have initialization reg */
104 #undef CONFIG_CM_TCRAM /* CM may not have TCRAM */
105 /* May not be processor without cache support */
106 #define CONFIG_SYS_NO_ICACHE 1
107 #define CONFIG_SYS_NO_DCACHE 1
112 cat >> ${config_file} << _EOF
113 /* May not be processor without cache support */
114 #define CONFIG_SYS_NO_ICACHE 1
115 #define CONFIG_SYS_NO_DCACHE 1
122 # ---------------------------------------------------------
123 # Set the platform defines
124 # ---------------------------------------------------------
125 cat >> ${config_file} << _EOF
126 /* Integrator configuration implied by Makefile target */
127 #define CONFIG_INTEGRATOR /* Integrator board */
128 #define CONFIG_ARCH_CINTEGRATOR 1 /* Integrator/CP */
132 variant="unknown core module"
136 echo "$0:: No parameters - using arm_intcm"
141 variant="unported core module CM966E-S"
146 variant="unported core module CM922T"
149 integratorcp_config | \
152 variant="unspecified core module"
157 variant="unported core module CM922T_XA10"
158 echo "#define CONFIG_CM922T_XA10 1 /* CPU core is ARM922T_XA10 */" \
164 variant="Core module CM920T"
165 echo "#define CONFIG_CM920T 1 /* CPU core is ARM920T */" \
171 variant="Core module CM926EJ-S"
172 echo "#define CONFIG_CM926EJ_S 1 /* CPU core is ARM926EJ-S */" \
179 variant="Core module CM946E-S"
180 echo "#define CONFIG_CM946E_S 1 /* CPU core is ARM946E-S */" \
186 variant="Core module CM1136EJF-S"
187 echo "#define CONFIG_CM1136EJF_S 1 /* CPU core is ARM1136JF-S */" \
192 echo "$0:: Unknown core module"
193 variant="unknown core module"
201 if [ "$cpu" = "arm_intcm" ]
203 cat >> ${config_file} << _EOF
204 /* Core module undefined/not ported */
205 #define CONFIG_ARM_INTCM 1
206 #undef CONFIG_CM_MULTIPLE_SSRAM /* CM may not have multiple SSRAM mapping */
207 #undef CONFIG_CM_SPD_DETECT /* CM may not support SPD query */
208 #undef CONFIG_CM_REMAP /* CM may not support remapping */
209 #undef CONFIG_CM_INIT /* CM may not have initialization reg */
210 #undef CONFIG_CM_TCRAM /* CM may not have TCRAM */
216 # ---------------------------------------------------------
217 # Complete the configuration
218 # ---------------------------------------------------------
219 $MKCONFIG -a -n "${2%%_config}" integrator$1 arm $cpu integrator armltd
220 echo "Variant: $variant with core $cpu"