2 # ---------------------------------------------------------
3 # Set the platform defines
4 # ---------------------------------------------------------
5 echo -n "/* Integrator configuration implied " > tmp.fil
6 echo " by Makefile target */" >> tmp.fil
7 echo -n "#define CONFIG_INTEGRATOR" >> tmp.fil
8 echo " /* Integrator board */" >> tmp.fil
9 echo -n "#define CONFIG_ARCH_INTEGRATOR" >> tmp.fil
10 echo " 1 /* Integrator/AP */" >> tmp.fil
11 # ---------------------------------------------------------
12 # Set the core module defines according to Core Module
13 # ---------------------------------------------------------
15 variant="unknown core module"
19 echo "$0:: No parameters - using arm_intcm"
24 variant="unported core module CM7TDMI"
29 variant="unported core module CM966E-S"
34 variant="unported core module CM922T"
37 integratorap_config | \
40 variant="unspecified core module"
45 echo -n "#define CONFIG_CM720T" >> tmp.fil
46 echo " 1 /* CPU core is ARM720T */ " >> tmp.fil
47 variant="Core module CM720T"
52 variant="unported core module CM922T_XA10"
53 echo -n "#define CONFIG_CM922T_XA10" >> tmp.fil
54 echo " 1 /* CPU core is ARM922T_XA10 */" >> tmp.fil
59 variant="Core module CM920T"
60 echo -n "#define CONFIG_CM920T" >> tmp.fil
61 echo " 1 /* CPU core is ARM920T */" >> tmp.fil
66 variant="Core module CM926EJ-S"
67 echo -n "#define CONFIG_CM926EJ_S" >> tmp.fil
68 echo " 1 /* CPU core is ARM926EJ-S */ " >> tmp.fil
73 variant="Core module CM946E-S"
74 echo -n "#define CONFIG_CM946E_S" >> tmp.fil
75 echo " 1 /* CPU core is ARM946E-S */ " >> tmp.fil
79 echo "$0:: Unknown core module"
80 variant="unknown core module"
87 if [ "$cpu" == "arm_intcm" ]
89 echo "/* Core module undefined/not ported */" >> tmp.fil
90 echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
91 echo -n "#undef CONFIG_CM_MULTIPLE_SSRAM" >> tmp.fil
92 echo -n " /* CM may not have " >> tmp.fil
93 echo "multiple SSRAM mapping */" >> tmp.fil
94 echo -n "#undef CONFIG_CM_SPD_DETECT " >> tmp.fil
95 echo -n " /* CM may not support SPD " >> tmp.fil
96 echo "query */" >> tmp.fil
97 echo -n "#undef CONFIG_CM_REMAP " >> tmp.fil
98 echo -n " /* CM may not support " >> tmp.fil
99 echo "remapping */" >> tmp.fil
100 echo -n "#undef CONFIG_CM_INIT " >> tmp.fil
101 echo -n " /* CM may not have " >> tmp.fil
102 echo "initialization reg */" >> tmp.fil
103 echo -n "#undef CONFIG_CM_TCRAM " >> tmp.fil
104 echo " /* CM may not have TCRAM */" >> tmp.fil
107 mkdir -p ${obj}include
108 mkdir -p ${obj}board/integratorap
109 mv tmp.fil ${obj}include/config.h
110 # ---------------------------------------------------------
111 # Ensure correct core object loaded first in U-Boot image
112 # ---------------------------------------------------------
113 sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//' ${src}board/integratorap/u-boot.lds.template > ${obj}board/integratorap/u-boot.lds
114 # ---------------------------------------------------------
115 # Complete the configuration
116 # ---------------------------------------------------------
117 $MKCONFIG -a integratorap arm $cpu integratorap;
118 echo "Variant:: $variant with core $cpu"