This commit is contained in:
Wolfgang Denk 2005-10-06 23:44:55 +02:00
parent 64db4b10a5
commit b8e16a3450
6 changed files with 13 additions and 29 deletions

View File

@ -118,7 +118,9 @@ void flash_print_info (flash_info_t * info)
} }
printf ("\n"); printf ("\n");
Done: /*
Done: ;
*/
} }
/* /*

View File

@ -11,12 +11,12 @@ echo " 1 /* Integrator/AP */" >> tmp.fil
# --------------------------------------------------------- # ---------------------------------------------------------
# Set the core module defines according to Core Module # Set the core module defines according to Core Module
# --------------------------------------------------------- # ---------------------------------------------------------
CC=$(CROSS_COMPILE)gcc CC=${CROSS_COMPILE}gcc
cpu="arm_intcm" cpu="arm_intcm"
if [ "$2" == "" ] if [ "$2" == "" ]
then then
echo "$0:: No preprocessor parameter - using $(CROSS_COMPILE)gcc" echo "$0:: No preprocessor parameter - using ${CROSS_COMPILE}gcc"
else else
CC=$2 CC=$2
fi fi
@ -24,7 +24,7 @@ fi
if [ "$1" == "" ] if [ "$1" == "" ]
then then
echo "$0:: No parameters - using $(CROSS_COMPILE)gcc arm_intcm" echo "$0:: No parameters - using ${CROSS_COMPILE}gcc arm_intcm"
else else
case "$1" in case "$1" in
ap7_config | \ ap7_config | \

View File

@ -11,12 +11,12 @@ echo " 1 /* Integrator/CP */" >> tmp.fil
# --------------------------------------------------------- # ---------------------------------------------------------
# Set the core module defines according to Core Module # Set the core module defines according to Core Module
# --------------------------------------------------------- # ---------------------------------------------------------
CC=$(CROSS_COMPILE)gcc CC=${CROSS_COMPILE}gcc
cpu="arm_intcm" cpu="arm_intcm"
if [ "$2" == "" ] if [ "$2" == "" ]
then then
echo "$0:: No preprocessor parameter - using $(CROSS_COMPILE)gcc" echo "$0:: No preprocessor parameter - using ${CROSS_COMPILE}gcc"
else else
CC=$2 CC=$2
fi fi
@ -24,7 +24,7 @@ fi
if [ "$1" == "" ] if [ "$1" == "" ]
then then
echo "$0:: No parameters - using $(CROSS_COMPILE)gcc arm_intcm" echo "$0:: No parameters - using ${CROSS_COMPILE}gcc arm_intcm"
else else
case "$1" in case "$1" in
cp966_config | \ cp966_config | \

View File

@ -64,24 +64,6 @@ int board_init (void)
return 0; return 0;
} }
/**********************************************************
* Routine: try_unlock_sram()
* Description: If chip is GP type, unlock the SRAM for
* general use.
***********************************************************/
void try_unlock_sram(void)
{
int mode;
/* if GP device unlock device SRAM for general use */
mode = (__raw_readl(CONTROL_STATUS) & (BIT8|BIT9));
if (mode == GP_DEVICE) {
__raw_writel(0xFF, A_REQINFOPERM0);
__raw_writel(0xCFDE, A_READPERM0);
__raw_writel(0xCFDE, A_WRITEPERM0);
}
}
/********************************************************** /**********************************************************
* Routine: try_unlock_sram() * Routine: try_unlock_sram()
* Description: If chip is GP type, unlock the SRAM for * Description: If chip is GP type, unlock the SRAM for

View File

@ -2,12 +2,12 @@
# --------------------------------------------------------- # ---------------------------------------------------------
# Set the core module defines according to Core Module # Set the core module defines according to Core Module
# --------------------------------------------------------- # ---------------------------------------------------------
CC=$(CROSS_COMPILE)gcc CC=${CROSS_COMPILE}gcc
config="versatilepb_config" config="versatilepb_config"
if [ "$2" == "" ] if [ "$2" == "" ]
then then
echo "$0:: No preprocessor parameter - using $(CROSS_COMPILE)gcc" echo "$0:: No preprocessor parameter - using ${CROSS_COMPILE}gcc"
else else
CC=$2 CC=$2
fi fi
@ -18,7 +18,7 @@ fi
# --------------------------------------------------------- # ---------------------------------------------------------
if [ "$1" == "" ] if [ "$1" == "" ]
then then
echo "$0:: No parameters - using $(CROSS_COMPILE)gcc versatilepb_config" echo "$0:: No parameters - using ${CROSS_COMPILE}gcc versatilepb_config"
else else
case "$config" in case "$config" in

View File

@ -35,7 +35,7 @@
#define A_REQINFOPERM0 0x68005048 #define A_REQINFOPERM0 0x68005048
#define A_READPERM0 0x68005050 #define A_READPERM0 0x68005050
#define A_WRITEPERM0 0x68005058 #define A_WRITEPERM0 0x68005058
#define GP_DEVICE (BIT8|BIT9) /* #define GP_DEVICE (BIT8|BIT9) FIXME -- commented out to make compile -- FIXME */
/* L3 Firewall */ /* L3 Firewall */
#define A_REQINFOPERM0 0x68005048 #define A_REQINFOPERM0 0x68005048