]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/armltd/integratorap/split_by_variant.sh
integratorap/cp: use cfi driver
[karo-tx-uboot.git] / board / armltd / integratorap / split_by_variant.sh
index 51dc53f1bd6a231100ce896d7f1a5c161d47683e..2f86b52108436a22effdf0401989a558ce8acc4a 100755 (executable)
@@ -84,8 +84,8 @@ else
        esac
 fi
 
-if [ "$cpu" = "arm_intcm" ]
-then
+case "$cpu" in
+       arm_intcm)
        echo "/* Core module undefined/not ported */"   >> tmp.fil
        echo "#define CONFIG_ARM_INTCM 1"               >> tmp.fil
        echo -n "#undef CONFIG_CM_MULTIPLE_SSRAM"       >> tmp.fil
@@ -102,16 +102,24 @@ then
        echo    "initialization reg */"                 >> tmp.fil
        echo -n "#undef CONFIG_CM_TCRAM "               >> tmp.fil
        echo    " /* CM may not have TCRAM */"          >> tmp.fil
-fi
+       echo -n " /* May not be processor "             >> tmp.fil
+       echo    "without cache support */"              >> tmp.fil
+       echo    "#define CONFIG_SYS_NO_ICACHE 1"        >> tmp.fil
+       echo    "#define CONFIG_SYS_NO_DCACHE 1"        >> tmp.fil
+       ;;
+
+       arm720t)
+       echo -n " /* May not be processor "             >> tmp.fil
+       echo    "without cache support */"              >> tmp.fil
+       echo    "#define CONFIG_SYS_NO_ICACHE 1"        >> tmp.fil
+       echo    "#define CONFIG_SYS_NO_DCACHE 1"        >> tmp.fil
+       ;;
+esac
 
 mkdir -p ${obj}include
 mkdir -p ${obj}board/armltd/integratorap
 mv tmp.fil ${obj}include/config.h
 # ---------------------------------------------------------
-#      Ensure correct core object loaded first in U-Boot image
-# ---------------------------------------------------------
-sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//' ${src}board/armltd/integratorap/u-boot.lds.template > ${obj}board/armltd/integratorap/u-boot.lds
-# ---------------------------------------------------------
 # Complete the configuration
 # ---------------------------------------------------------
 $MKCONFIG -a integratorap arm $cpu integratorap armltd;