diff options
51 files changed, 71 insertions, 168 deletions
| @@ -368,8 +368,10 @@ The following options need to be configured:  		 * Adds the "fdt" command  		 * The bootm command automatically updates the fdt -		OF_CPU - The proper name of the cpus node. -		OF_SOC - The proper name of the soc node. +		OF_CPU - The proper name of the cpus node (only required for +			MPC512X and MPC5xxx based boards). +		OF_SOC - The proper name of the soc node (only required for +			MPC512X and MPC5xxx based boards).  		OF_TBCLK - The timebase frequency.  		OF_STDOUT_PATH - The path to the console device @@ -3008,14 +3010,6 @@ Some configuration options can be set using Environment Variables:  		  configuration from the BOOTP server, but not try to  		  load any image using TFTP -  autoscript	- if set to "yes" commands like "loadb", "loady", -		  "bootp", "tftpb", "rarpboot" and "nfs" will attempt -		  to automatically run script images (by internally -		  calling "source"). - -  autoscript_uname - if script image is in a format (FIT) this -		     variable is used to get script subimage unit name. -    autostart	- if set to "yes", an image loaded using the "bootp",  		  "rarpboot", "tftpboot" or "diskboot" commands will  		  be automatically started (by internally calling diff --git a/board/LEOX/elpt860/README.LEOX b/board/LEOX/elpt860/README.LEOX index 25524af69c2..e8ab86717d4 100644 --- a/board/LEOX/elpt860/README.LEOX +++ b/board/LEOX/elpt860/README.LEOX @@ -68,7 +68,6 @@ Type "run nfsboot" to mount root filesystem over NFS  Hit any key to stop autoboot:  0  LEOX_elpt860: help  askenv  - get environment variables from stdin -autoscr - run script from memory  base    - print or set address offset  bdinfo  - print Board Info structure  bootm   - boot application image from memory @@ -100,6 +99,7 @@ run     - run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv  - set environment variables  sleep   - delay execution for some time +source  - run script from memory  tftpboot- boot image via network using TFTP protocol  	       and env variables ipaddr and serverip  version - print monitor version diff --git a/board/linkstation/ide.c b/board/linkstation/ide.c index 2c89d62f614..568fdf5f2e8 100644 --- a/board/linkstation/ide.c +++ b/board/linkstation/ide.c @@ -54,11 +54,13 @@ int ide_preinit (void)  	if (devbusfn == -1)  		devbusfn = pci_find_device(PCI_VENDOR_ID_ITE,PCI_DEVICE_ID_ITE_8212,0);  	if (devbusfn != -1) { +		u32 ide_bus_offset32; +  		status = 0;  		pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_0, -							   (u32 *) &ide_bus_offset[0]); -		ide_bus_offset[0] &= 0xfffffffe; +							   &ide_bus_offset32); +		ide_bus_offset[0] = ide_bus_offset32 & 0xfffffffe;  		ide_bus_offset[0] = pci_hose_bus_to_phys(&hose,  							 ide_bus_offset[0] & 0xfffffffe,  							 PCI_REGION_IO); diff --git a/board/matrix_vision/mvbc_p/mvbc_p_autoscript b/board/matrix_vision/mvbc_p/mvbc_p_autoscript index 1102354d684..9b21f30ece8 100644 --- a/board/matrix_vision/mvbc_p/mvbc_p_autoscript +++ b/board/matrix_vision/mvbc_p/mvbc_p_autoscript @@ -26,7 +26,7 @@ if test ${oprofile} = yes;  then  setenv addprofile setenv bootargs \${bootargs} profile=\${profile}  fi -if test ${autoscr_boot} != no; +if test ${autoscript_boot} != no;  then    if test ${netboot} = yes;    then @@ -44,5 +44,5 @@ then    echo "=== bootfromflash ==="    run cpdtb rundtb bootfromflash  else -  echo "=== boot stopped with autoscr_boot no ===" +  echo "=== boot stopped with autoscript_boot no ==="  fi diff --git a/board/matrix_vision/mvblm7/mvblm7_autoscript b/board/matrix_vision/mvblm7/mvblm7_autoscript index 6f9357fd0db..dc385fde793 100644 --- a/board/matrix_vision/mvblm7/mvblm7_autoscript +++ b/board/matrix_vision/mvblm7/mvblm7_autoscript @@ -21,7 +21,7 @@ setenv set_static_nm setenv netmask \${static_netmask}  setenv set_static_gw setenv gatewayip \${static_gateway}  setenv set_ip setenv ip \${ipaddr}::\${gatewayip}:\${netmask}  setenv ramparam setenv bootargs root=/dev/ram0 ro rootfstype=squashfs -if test ${autoscr_boot} != no; +if test ${autoscript_boot} != no;  then    if test ${netboot} = yes;    then @@ -39,5 +39,5 @@ then    echo "=== bootfromflash ==="    run cpdtb rundtb bootfromflash  else -  echo "=== boot stopped with autoscr_boot no ===" +  echo "=== boot stopped with autoscript_boot no ==="  fi diff --git a/board/musenki/README b/board/musenki/README index 135a01aa0b1..084ab54ff78 100644 --- a/board/musenki/README +++ b/board/musenki/README @@ -34,7 +34,6 @@ Out:   serial  Err:   serial  Hit any key to stop autoboot:  0  => help -autoscr - run script from memory  base    - print or set address offset  bdinfo  - print Board Info structure  bootm   - boot application image from memory @@ -67,6 +66,7 @@ reset   - Perform RESET of the CPU  run     - run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv  - set environment variables +source  - run script from memory  tftpboot- boot image via network using TFTP protocol  	       and env variables ipaddr and serverip  version - print monitor version diff --git a/board/pn62/cmd_pn62.c b/board/pn62/cmd_pn62.c index a9893517224..43295d6e36d 100644 --- a/board/pn62/cmd_pn62.c +++ b/board/pn62/cmd_pn62.c @@ -152,24 +152,6 @@ int do_loadpci (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	rcode = do_bootm (cmdtp, 0, 1, local_args);      } -#ifdef CONFIG_SOURCE -    if (load_addr) { -	char *s; - -	if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) { -		printf ("Running \"source\" command at addr 0x%08lX", -			load_addr); - -		s = getenv ("autoscript_uname"); -		if (s) -			printf (":%s ...\n", s); -		else -			puts (" ...\n"); - -		rcode = source (load_addr, s); -	} -    } -#endif      return rcode;  } diff --git a/common/cmd_load.c b/common/cmd_load.c index 73fbf743c9b..d6bbb786da4 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -513,24 +513,6 @@ int do_load_serial_bin (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		}  	} -#ifdef CONFIG_SOURCE -	if (load_addr) { -		char *s; - -		if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) { -			printf ("Running \"source\" command at addr 0x%08lX", -				load_addr); - -			s = getenv ("autoscript_uname"); -			if (s) -				printf (":%s ...\n", s); -			else -				puts (" ...\n"); - -			rcode = source (load_addr, s); -		} -	} -#endif  	return rcode;  } diff --git a/common/cmd_net.c b/common/cmd_net.c index 88f4e5bae57..b80a7ad8e33 100644 --- a/common/cmd_net.c +++ b/common/cmd_net.c @@ -222,21 +222,6 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])  		rcode = do_bootm (cmdtp, 0, 1, local_args);  	} -#ifdef CONFIG_SOURCE -	if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) { -		printf ("Running \"source\" command at addr 0x%08lX", -			load_addr); - -		s = getenv ("autoscript_uname"); -		if (s) -			printf (":%s ...\n", s); -		else -			puts (" ...\n"); - -		show_boot_progress (83); -		rcode = source (load_addr, s); -	} -#endif  	if (rcode < 0)  		show_boot_progress (-83);  	else diff --git a/common/cmd_source.c b/common/cmd_source.c index 965b8b1b045..1424d3038c0 100644 --- a/common/cmd_source.c +++ b/common/cmd_source.c @@ -236,22 +236,4 @@ U_BOOT_CMD(  	"unit name in the form of addr:<subimg_uname>"  #endif  ); - -/* - * Keep for now for backward compatibility; - * remove later when support for "autoscr" goes away. - */ -static int -do_autoscr (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) -{ -	printf ("\n### WARNING ### " -		"\"autoscr\" is deprecated, use \"source\" instead ###\n\n"); -	return do_source (cmdtp, flag, argc, argv); -} - -U_BOOT_CMD( -	autoscr, 2, 0,	do_autoscr, -	"DEPRECATED - use \"source\" command instead", -	"" -);  #endif diff --git a/doc/README.IPHASE4539 b/doc/README.IPHASE4539 index defad3009fa..b804e069a19 100644 --- a/doc/README.IPHASE4539 +++ b/doc/README.IPHASE4539 @@ -54,7 +54,6 @@ connector as follows:  ------------------------------------------------------------------------------  => help -autoscr - run script from memory  base    - print or set address offset  bdinfo  - print Board Info structure  bootm   - boot application image from memory @@ -88,6 +87,7 @@ run     - run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv  - set environment variables  sleep   - delay execution for some time +source  - run script from memory  tftpboot- boot image via network using TFTP protocol  	       and env variables ipaddr and serverip  version - print monitor version diff --git a/doc/README.m52277evb b/doc/README.m52277evb index bec77b48aa5..40f9028c6f2 100644 --- a/doc/README.m52277evb +++ b/doc/README.m52277evb @@ -184,7 +184,6 @@ baudrate    = 115200 bps  ->  -> help  ?       - alias for 'help' -autoscr - run script from memory  base    - print or set address offset  bdinfo  - print Board Info structure  boot    - boot default, i.e., run 'bootcmd' @@ -227,5 +226,6 @@ run     - run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv  - set environment variables  sleep   - delay execution for some time +source  - run script from memory  version - print monitor version  -> diff --git a/doc/README.m5373evb b/doc/README.m5373evb index 0bd1101c793..55917489338 100644 --- a/doc/README.m5373evb +++ b/doc/README.m5373evb @@ -195,7 +195,6 @@ baudrate    = 115200 bps  ->  -> help  ?	- alias for 'help' -autoscr - run script from memory  base	- print or set address offset  bdinfo	- print Board Info structure  boot	- boot default, i.e., run 'bootcmd' @@ -243,6 +242,7 @@ run	- run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv	- set environment variables  sleep	- delay execution for some time +source	- run script from memory  tftpboot- boot image via network using TFTP protocol  version - print monitor version  -> tftp 0x40800000 uImage diff --git a/doc/README.m54455evb b/doc/README.m54455evb index b769ff99571..1888e166253 100644 --- a/doc/README.m54455evb +++ b/doc/README.m54455evb @@ -276,7 +276,6 @@ baudrate    = 115200 bps  ->  -> help  ?       - alias for 'help' -autoscr - run script from memory  base    - print or set address offset  bdinfo  - print Board Info structure  boot    - boot default, i.e., run 'bootcmd' @@ -332,6 +331,7 @@ run     - run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv  - set environment variables  sleep   - delay execution for some time +source  - run script from memory  tftpboot- boot image via network using TFTP protocol  version - print monitor version  ->bootm 4000000 diff --git a/doc/README.m5475evb b/doc/README.m5475evb index 936c01815a8..f3a1d7b28b2 100644 --- a/doc/README.m5475evb +++ b/doc/README.m5475evb @@ -215,7 +215,6 @@ ip_addr     = 192.162.1.2  baudrate    = 115200 bps  -> ?  ?	- alias for 'help' -autoscr - run script from memory  base	- print or set address offset  bdinfo	- print Board Info structure  boot	- boot default, i.e., run 'bootcmd' @@ -260,6 +259,7 @@ run	- run commands in an environment variable  saveenv - save environment variables to persistent storage  setenv	- set environment variables  sleep	- delay execution for some time +source	- run script from memory  tftpboot- boot image via network using TFTP protocol  usb	- USB sub-system  usbboot - boot from USB device diff --git a/doc/feature-removal-schedule.txt b/doc/feature-removal-schedule.txt index 0238d97d2f1..5fe21e863f8 100644 --- a/doc/feature-removal-schedule.txt +++ b/doc/feature-removal-schedule.txt @@ -26,25 +26,6 @@ Who:	Ben Warren <biggerbadderben@gmail.com>  --------------------------- -What:	"autoscr" command -When:	Release 2009-09 - -Why:	"autosrc" is an ugly and completely non-standard name. -	The "autoscr" command is deprecated and will be replaced by - -	the "source" command as used by other shells such as bash. - -	Starting with March 2009, both commands will be supported for -	a transition period of 6 months after which "autoscr" will be -	removed. During the transition period existing scripts and -	environment variable names remain untouched for maximum -	compatibiltiy; thse will be changed when support for the -	"autoscr" command get's finally dropped. - -Who:	Peter Tyser <ptyser@xes-inc.com> - ---------------------------- -  What:	GPL cleanup  When:	August 2009  Why:	Over time, a couple of files have sneaked in into the U-Boot diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 856cb36c0c5..7fd8a354791 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c @@ -334,6 +334,7 @@ static void mpc5121_nfc_command(struct mtd_info *mtd, unsigned command,  	case NAND_CMD_ERASE2:  	case NAND_CMD_READID:  	case NAND_CMD_STATUS: +	case NAND_CMD_RESET:  		break;  	default: diff --git a/include/configs/CCM.h b/include/configs/CCM.h index d1c293ff0ad..3f4a2c103e3 100644 --- a/include/configs/CCM.h +++ b/include/configs/CCM.h @@ -37,6 +37,8 @@  #define CONFIG_MPC860           1   /* This is a MPC860 CPU ... */  #define CONFIG_CCM              1   /* on a Card Controller Module  */ +#define CONFIG_MISC_INIT_R	    /* Call misc_init_r() */ +#define CONFIG_RESET_PHY_R	1   /* Call reset_phy() */  #define CONFIG_8xx_CONS_SMC1    1   /* Console is on SMC1       */  #undef  CONFIG_8xx_CONS_SMC2 diff --git a/include/configs/CPCI405.h b/include/configs/CPCI405.h index fca6de0c6bc..d131aeaf43b 100644 --- a/include/configs/CPCI405.h +++ b/include/configs/CPCI405.h @@ -38,6 +38,7 @@  #define CONFIG_CPCI405		1	/* ...on a CPCI405 board	*/  #define CONFIG_BOARD_EARLY_INIT_F 1	/* call board_early_init_f()	*/ +#define CONFIG_MISC_INIT_R	 1	/* call misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33000000 /* external frequency to pll	*/ diff --git a/include/configs/CPCI4052.h b/include/configs/CPCI4052.h index fd045660897..07c4e359955 100644 --- a/include/configs/CPCI4052.h +++ b/include/configs/CPCI4052.h @@ -40,6 +40,7 @@  #undef  CONFIG_CPCI405_6U               /* enable this for 6U boards    */  #define CONFIG_BOARD_EARLY_INIT_F 1	/* call board_early_init_f()	*/ +#define CONFIG_MISC_INIT_R	 1	/* call misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33330000 /* external frequency to pll	*/ diff --git a/include/configs/CPCI405AB.h b/include/configs/CPCI405AB.h index d718ed40a3d..c78552bbd42 100644 --- a/include/configs/CPCI405AB.h +++ b/include/configs/CPCI405AB.h @@ -40,6 +40,7 @@  #define CONFIG_CPCI405AB	1	/* ...and special AB version	*/  #define CONFIG_BOARD_EARLY_INIT_F 1	/* call board_early_init_f()	*/ +#define CONFIG_MISC_INIT_R	 1	/* call misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33330000 /* external frequency to pll	*/ diff --git a/include/configs/CPCI405DT.h b/include/configs/CPCI405DT.h index 09df47082b6..59e0778f6a3 100644 --- a/include/configs/CPCI405DT.h +++ b/include/configs/CPCI405DT.h @@ -39,6 +39,7 @@  #define CONFIG_CPCI405_VER2	1	/* ...version 2			*/  #define CONFIG_BOARD_EARLY_INIT_F 1	/* call board_early_init_f()	*/ +#define CONFIG_MISC_INIT_R	 1	/* call misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33330000 /* external frequency to pll	*/ diff --git a/include/configs/ELPT860.h b/include/configs/ELPT860.h index ff58ea92237..0f56302003b 100644 --- a/include/configs/ELPT860.h +++ b/include/configs/ELPT860.h @@ -57,6 +57,7 @@  #define CONFIG_BOOTDELAY	5	/* autoboot after 5 seconds	*/  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  /* BOOT arguments */  #define CONFIG_PREBOOT							   \ diff --git a/include/configs/IDS8247.h b/include/configs/IDS8247.h index 4c4af054b2a..147a8b267da 100644 --- a/include/configs/IDS8247.h +++ b/include/configs/IDS8247.h @@ -125,8 +125,6 @@  #define CONFIG_OF_LIBFDT	1  #define CONFIG_OF_BOARD_SETUP	1 -#define OF_CPU	"PowerPC,8247@0" -#define OF_SOC	"soc@f0000000"  #define OF_TBCLK	(bd->bi_busfreq / 4)  #define OF_STDOUT_PATH	"/soc@f0000000/serial8250@e0008000" diff --git a/include/configs/IP860.h b/include/configs/IP860.h index 125aa6c8025..be63ea5736b 100644 --- a/include/configs/IP860.h +++ b/include/configs/IP860.h @@ -36,6 +36,7 @@  #define CONFIG_MPC860		1	/* This is a MPC860 CPU		*/  #define CONFIG_IP860		1	/* ...on a IP860 board		*/  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  #define	CONFIG_8xx_CONS_SMC1	1	/* Console is on SMC1		*/  #define CONFIG_BAUDRATE		9600 diff --git a/include/configs/IVML24.h b/include/configs/IVML24.h index cd100df0577..1a4924e1e6d 100644 --- a/include/configs/IVML24.h +++ b/include/configs/IVML24.h @@ -52,6 +52,8 @@  #define	CONFIG_CLOCKS_IN_MHZ	1	/* clocks passsed to Linux in MHz */  #define CONFIG_8xx_GCLK_FREQ    50331648 +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/ +  #define	CONFIG_SHOW_BOOT_PROGRESS 1	/* Show boot progress on LEDs	*/  #if 0 diff --git a/include/configs/IVMS8.h b/include/configs/IVMS8.h index 125cb4b2037..256cabd0368 100644 --- a/include/configs/IVMS8.h +++ b/include/configs/IVMS8.h @@ -49,6 +49,8 @@  #undef	CONFIG_8xx_CONS_NONE  #define CONFIG_BAUDRATE		115200 +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/ +  #define	CONFIG_CLOCKS_IN_MHZ	1	/* clocks passsed to Linux in MHz */  #define CONFIG_8xx_GCLK_FREQ    50331648 diff --git a/include/configs/MPC8260ADS.h b/include/configs/MPC8260ADS.h index 942a4cc4876..39b8b8fce4f 100644 --- a/include/configs/MPC8260ADS.h +++ b/include/configs/MPC8260ADS.h @@ -81,6 +81,7 @@  #endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  /* allow serial and ethaddr to be overwritten */  #define CONFIG_ENV_OVERWRITE @@ -209,7 +210,6 @@  #define CONFIG_OF_LIBFDT	1  #define CONFIG_OF_BOARD_SETUP	1  #if defined(CONFIG_OF_LIBFDT) -#define OF_CPU			"cpu@0"  #define OF_TBCLK		(bd->bi_busfreq / 4)  #endif diff --git a/include/configs/MPC8266ADS.h b/include/configs/MPC8266ADS.h index 4fd86d3923f..b0162c3971b 100644 --- a/include/configs/MPC8266ADS.h +++ b/include/configs/MPC8266ADS.h @@ -54,6 +54,7 @@  #define CONFIG_CPM2		1	/* Has a CPM2 */  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  /* allow serial and ethaddr to be overwritten */  #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h index c1a1a6d923e..8ddce5c699d 100644 --- a/include/configs/MPC8560ADS.h +++ b/include/configs/MPC8560ADS.h @@ -48,6 +48,7 @@  #undef CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */  #define CONFIG_ENV_OVERWRITE  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy() */  /*   * sysclk for MPC85xx diff --git a/include/configs/MVBC_P.h b/include/configs/MVBC_P.h index 0c228cb5a0d..8f6b16b93bf 100644 --- a/include/configs/MVBC_P.h +++ b/include/configs/MVBC_P.h @@ -73,8 +73,8 @@  #define MV_INITRD_LENGTH	0x00400000  #define MV_SCRATCH_ADDR		0x00000000  #define MV_SCRATCH_LENGTH	MV_INITRD_LENGTH -#define MV_SOURCE_ADDR		0xff840000 -#define MV_SOURCE_ADDR2		0xff850000 +#define MV_SCRIPT_ADDR		0xff840000 +#define MV_SCRIPT_ADDR2		0xff850000  #define MV_DTB_ADDR		0xfffc0000  #define CONFIG_SHOW_BOOT_PROGRESS 1 @@ -130,9 +130,9 @@  #define CONFIG_ZERO_BOOTDELAY_CHECK  #define CONFIG_RESET_TO_RETRY		1000 -#define CONFIG_BOOTCOMMAND	"if imi ${autoscr_addr}; \ -					then source ${autoscr_addr};	\ -					else source ${autoscr_addr2};	\ +#define CONFIG_BOOTCOMMAND	"if imi ${script_addr}; \ +					then source ${script_addr};	\ +					else source ${script_addr2};	\  				fi;"  #define CONFIG_BOOTARGS		"root=/dev/ram ro rootfstype=squashfs" @@ -150,8 +150,8 @@  	"fpga=0\0"						\  	"fpgadata=" MK_STR(MV_FPGA_DATA) "\0"			\  	"fpgadatasize=" MK_STR(MV_FPGA_SIZE) "\0"		\ -	"autoscr_addr=" MK_STR(MV_SOURCE_ADDR) "\0"		\ -	"autoscr_addr2=" MK_STR(MV_SOURCE_ADDR2) "\0"		\ +	"script_addr=" MK_STR(MV_SCRIPT_ADDR) "\0"		\ +	"script_addr2=" MK_STR(MV_SCRIPT_ADDR2) "\0"		\  	"mv_kernel_addr=" MK_STR(MV_KERNEL_ADDR) "\0"		\  	"mv_kernel_addr_ram=" MK_STR(MV_KERNEL_ADDR_RAM) "\0"	\  	"mv_initrd_addr=" MK_STR(MV_INITRD_ADDR) "\0"		\ diff --git a/include/configs/MVBLM7.h b/include/configs/MVBLM7.h index 80334bd607e..9835567838f 100644 --- a/include/configs/MVBLM7.h +++ b/include/configs/MVBLM7.h @@ -399,8 +399,8 @@  #define MV_FPGA_SIZE		0  #define MV_KERNEL_ADDR		0xff810000  #define MV_INITRD_ADDR		0xffb00000 -#define MV_SOURCE_ADDR		0xff804000 -#define MV_SOURCE_ADDR2		0xff806000 +#define MV_SCRIPT_ADDR		0xff804000 +#define MV_SCRIPT_ADDR2		0xff806000  #define MV_DTB_ADDR		0xff808000  #define MV_INITRD_LENGTH	0x00400000 @@ -410,9 +410,9 @@  #define MV_DTB_ADDR_RAM		0x00600000  #define MV_INITRD_ADDR_RAM	0x01000000 -#define CONFIG_BOOTCOMMAND	"if imi ${autoscr_addr}; \ -					then source ${autoscr_addr};  \ -					else source ${autoscr_addr2}; \ +#define CONFIG_BOOTCOMMAND	"if imi ${script_addr}; \ +					then source ${script_addr};  \ +					else source ${script_addr2}; \  				fi;"  #define CONFIG_BOOTARGS		"root=/dev/ram ro rootfstype=squashfs" @@ -425,8 +425,8 @@  	"fpga=0\0"						\  	"fpgadata=" MK_STR(MV_FPGA_DATA) "\0"			\  	"fpgadatasize=" MK_STR(MV_FPGA_SIZE) "\0"		\ -	"autoscr_addr=" MK_STR(MV_SOURCE_ADDR) "\0"		\ -	"autoscr_addr2=" MK_STR(MV_SOURCE_ADDR2) "\0"		\ +	"script_addr=" MK_STR(MV_SCRIPT_ADDR) "\0"		\ +	"script_addr2=" MK_STR(MV_SCRIPT_ADDR2) "\0"		\  	"mv_kernel_addr=" MK_STR(MV_KERNEL_ADDR) "\0"		\  	"mv_kernel_addr_ram=" MK_STR(MV_KERNEL_ADDR_RAM) "\0"	\  	"mv_initrd_addr=" MK_STR(MV_INITRD_ADDR) "\0"		\ diff --git a/include/configs/RPXsuper.h b/include/configs/RPXsuper.h index e97ef9565ad..da962f3b937 100644 --- a/include/configs/RPXsuper.h +++ b/include/configs/RPXsuper.h @@ -189,6 +189,7 @@  #define CONFIG_CPM2		1	/* Has a CPM2 */  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  /*   * Miscellaneous configurable options diff --git a/include/configs/SBC8540.h b/include/configs/SBC8540.h index 7239f8409de..272b5dd56cb 100644 --- a/include/configs/SBC8540.h +++ b/include/configs/SBC8540.h @@ -77,6 +77,7 @@  #undef	CONFIG_BTB			    /* toggle branch predition	*/  #define CONFIG_BOARD_EARLY_INIT_F 1	    /* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	    /* Call reset_phy() */  #undef	CONFIG_SYS_DRAM_TEST			    /* memory test, takes time	*/  #define CONFIG_SYS_MEMTEST_START	0x00200000  /* memtest region */ diff --git a/include/configs/SPD823TS.h b/include/configs/SPD823TS.h index 4181a400e88..fa77882cfd1 100644 --- a/include/configs/SPD823TS.h +++ b/include/configs/SPD823TS.h @@ -36,6 +36,8 @@  #define CONFIG_MPC823		1	/* This is a MPC823 CPU		*/  #define CONFIG_SPD823TS		1	/* ...on a SPD823TS board	*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/ +  #define CONFIG_8xx_CONS_SMC1	1	/* Console is on SMC1		*/  #undef	CONFIG_8xx_CONS_SMC2  #undef	CONFIG_8xx_CONS_NONE diff --git a/include/configs/W7OLMC.h b/include/configs/W7OLMC.h index 40e4735b681..c0179150c2b 100644 --- a/include/configs/W7OLMC.h +++ b/include/configs/W7OLMC.h @@ -40,6 +40,7 @@  #define CONFIG_BOARD_EARLY_INIT_F 1		/* Call board_early_init_f	*/  #define	CONFIG_MISC_INIT_F	1		/* and misc_init_f()		*/ +#define	CONFIG_MISC_INIT_R	1		/* and misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33333333	/* external frequency to pll	*/ diff --git a/include/configs/W7OLMG.h b/include/configs/W7OLMG.h index a62f1b4d578..1d4ad13ed3b 100644 --- a/include/configs/W7OLMG.h +++ b/include/configs/W7OLMG.h @@ -40,6 +40,7 @@  #define CONFIG_BOARD_EARLY_INIT_F 1		/* Call board_early_init_f	*/  #define	CONFIG_MISC_INIT_F	1		/* and misc_init_f()		*/ +#define	CONFIG_MISC_INIT_R	1		/* and misc_init_r()		*/  #define CONFIG_SYS_CLK_FREQ	33333333	/* external frequency to pll	*/ diff --git a/include/configs/cogent_mpc8260.h b/include/configs/cogent_mpc8260.h index c580230225d..566565aad2c 100644 --- a/include/configs/cogent_mpc8260.h +++ b/include/configs/cogent_mpc8260.h @@ -38,6 +38,7 @@  #define CONFIG_CPM2		1	/* Has a CPM2 */  #define	CONFIG_MISC_INIT_F	1	/* Use misc_init_f()		*/ +#define	CONFIG_MISC_INIT_R		/* Use misc_init_r()		*/  /* Cogent Modular Architecture options */  #define CONFIG_CMA282		1	/* ...on a CMA282 CPU module	*/ diff --git a/include/configs/cogent_mpc8xx.h b/include/configs/cogent_mpc8xx.h index 17bd9a02742..750c0df0c58 100644 --- a/include/configs/cogent_mpc8xx.h +++ b/include/configs/cogent_mpc8xx.h @@ -37,6 +37,7 @@  #define CONFIG_COGENT		1	/* using Cogent Modular Architecture */  #define	CONFIG_MISC_INIT_F	1	/* Use misc_init_f()		*/ +#define	CONFIG_MISC_INIT_R		/* Use misc_init_r()		*/  /* Cogent Modular Architecture options */  #define CONFIG_CMA286_60_OLD	1	/* ...on an old CMA286-60 CPU module */ diff --git a/include/configs/keymile-common.h b/include/configs/keymile-common.h index 0cc1b3b59ce..80c41a49688 100644 --- a/include/configs/keymile-common.h +++ b/include/configs/keymile-common.h @@ -171,7 +171,7 @@  	"kernel_addr_r=200000\0"					\  	"fdt_addr_r=600000\0"						\  	"ram_ws=800000 \0"						\ -	"autoscr_ws=780000 \0"						\ +	"script_ws=780000 \0"						\  	"fdt_file=" xstr(CONFIG_HOSTNAME) "/" 				\  		xstr(CONFIG_HOSTNAME) ".dtb\0"				\  	"u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin \0" 		\ @@ -253,8 +253,8 @@  	"set_new_esw_script=setenv new_esw_script "			\  		"new_esw_0x${IVM_BoardId}_0x${IVM_HWKey}.scr \0"	\  	"new_esw=run set_new_esw_script; "				\ -		"tftp ${autoscr_ws} ${new_esw_script}; "		\ -		"iminfo ${autoscr_ws}; source ${autoscr_ws} \0"	\ +		"tftp ${script_ws} ${new_esw_script}; "			\ +		"iminfo ${script_ws}; source ${script_ws} \0"		\  	"bootlimit=0 \0" 						\  	CONFIG_KM_DEF_ENV_IOMUX						\  	CONFIG_KM_DEF_ENV_PRIVATE					\ diff --git a/include/configs/linkstation.h b/include/configs/linkstation.h index 2feb3ae31d4..16b464cf6da 100644 --- a/include/configs/linkstation.h +++ b/include/configs/linkstation.h @@ -96,8 +96,6 @@  #define CONFIG_OF_LIBFDT	1 -#define OF_CPU			"PowerPC,603e" -#define OF_SOC			"soc10x@80000000"  #define OF_STDOUT_PATH		"/soc10x/serial@80004600"  /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ diff --git a/include/configs/lwmon.h b/include/configs/lwmon.h index 8f00773216a..be20d729095 100644 --- a/include/configs/lwmon.h +++ b/include/configs/lwmon.h @@ -47,8 +47,9 @@  #define CONFIG_OVERWRITE_ETHADDR_ONCE   1  #endif -#define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ -#define CONFIG_BOARD_POSTCLK_INIT 1	/* Call board_postclk_init	*/ +#define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f()	*/ +#define CONFIG_BOARD_POSTCLK_INIT 1	/* Call board_postclk_init()	*/ +#define CONFIG_MISC_INIT_R	1	/* Call misc_init_r()		*/  #define CONFIG_LCD		1	/* use LCD controller ...	*/  #define CONFIG_HLD1045		1	/* ... with a HLD1045 display	*/ diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h index b955749d8fc..55d1fc90fc6 100644 --- a/include/configs/mgcoge.h +++ b/include/configs/mgcoge.h @@ -347,8 +347,6 @@  #define CONFIG_OF_LIBFDT	1  #define CONFIG_OF_BOARD_SETUP	1 -#define OF_CPU			"PowerPC,8247@0" -#define OF_SOC			"soc@f0000000"  #define OF_TBCLK		(bd->bi_busfreq / 4)  #define OF_STDOUT_PATH		"/soc/cpm/serial@11a90" diff --git a/include/configs/mpc7448hpc2.h b/include/configs/mpc7448hpc2.h index 4f98ba41a5d..be12186aca0 100644 --- a/include/configs/mpc7448hpc2.h +++ b/include/configs/mpc7448hpc2.h @@ -79,7 +79,6 @@  #define CONFIG_OF_LIBFDT	1  #define CONFIG_OF_BOARD_SETUP	1 -#define OF_CPU			"PowerPC,7448@0"  #define OF_TSI			"tsi108@c0000000"  #define OF_TBCLK		(bd->bi_busfreq / 8)  #define OF_STDOUT_PATH		"/tsi108@c0000000/serial@7808" diff --git a/include/configs/muas3001.h b/include/configs/muas3001.h index ae033b2da55..c94daa3d033 100644 --- a/include/configs/muas3001.h +++ b/include/configs/muas3001.h @@ -405,8 +405,6 @@  #define CONFIG_OF_LIBFDT	1  #define CONFIG_OF_BOARD_SETUP	1 -#define OF_CPU			"PowerPC,8270@0" -#define OF_SOC			"soc@f0000000"  #define OF_TBCLK		(bd->bi_busfreq / 4)  #if defined(CONFIG_MUAS_DEV_BOARD)  #define OF_STDOUT_PATH		"/soc/cpm/serial@11a90" diff --git a/include/configs/pcu_e.h b/include/configs/pcu_e.h index 65173811706..3aee206ad76 100644 --- a/include/configs/pcu_e.h +++ b/include/configs/pcu_e.h @@ -42,6 +42,9 @@  #define CONFIG_MPC860T		1  #define CONFIG_PCU_E		1	/* ...on a PCU E board		*/ +#define CONFIG_MISC_INIT_R	1	/* Call misc_init_r()		*/ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/ +  #define	CONFIG_8xx_CONS_SMC1	1	/* Console is on SMC1		*/  #define CONFIG_BAUDRATE		9600 diff --git a/include/configs/sbc8560.h b/include/configs/sbc8560.h index 4fa501da5eb..46c94bf16be 100644 --- a/include/configs/sbc8560.h +++ b/include/configs/sbc8560.h @@ -71,6 +71,7 @@  #undef	CONFIG_BTB			    /* toggle branch predition	*/  #define CONFIG_BOARD_EARLY_INIT_F 1	    /* Call board_early_init_f	*/ +#define CONFIG_RESET_PHY_R	1	    /* Call reset_phy()		*/  #undef	CONFIG_SYS_DRAM_TEST			    /* memory test, takes time	*/  #define CONFIG_SYS_MEMTEST_START	0x00200000  /* memtest region */ diff --git a/include/configs/sc3.h b/include/configs/sc3.h index 7e00ab8c710..57637607af8 100644 --- a/include/configs/sc3.h +++ b/include/configs/sc3.h @@ -63,6 +63,7 @@  #define CONFIG_405GP	1  #define CONFIG_BOARD_EARLY_INIT_F	1 +#define CONFIG_MISC_INIT_R		1	/* Call misc_init_r() */  /*   * Define IDE_USES_ISA_EMULATION for slower IDE access in the ISA-IO address range diff --git a/include/configs/stxgp3.h b/include/configs/stxgp3.h index 0424e2978e3..86b231ca8ee 100644 --- a/include/configs/stxgp3.h +++ b/include/configs/stxgp3.h @@ -66,6 +66,7 @@  #define  CONFIG_BTB                          /* toggle branch predition */  #define CONFIG_BOARD_EARLY_INIT_F   1        /* Call board_pre_init      */ +#define CONFIG_RESET_PHY_R	1	/* Call reset_phy()		*/  #undef  CONFIG_SYS_DRAM_TEST                       /* memory test, takes time  */  #define CONFIG_SYS_MEMTEST_START       0x00200000  /* memtest region */ diff --git a/include/configs/stxxtc.h b/include/configs/stxxtc.h index d16262b6cff..585436604f2 100644 --- a/include/configs/stxxtc.h +++ b/include/configs/stxxtc.h @@ -509,7 +509,6 @@ typedef unsigned int led_id_t;  /* pass open firmware flattened device tree */  #define CONFIG_OF_LIBFDT	1 -#define OF_CPU			"PowerPC,MPC870@0"  #define OF_TBCLK		(MPC8XX_HZ / 16)  #endif	/* __CONFIG_H */ diff --git a/lib_ppc/board.c b/lib_ppc/board.c index e8509ee0e8d..f9dbdb9a86e 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -921,17 +921,7 @@ void board_init_r (gd_t *id, ulong dest_addr)  	/* Initialize the console (after the relocation and devices init) */  	console_init_r (); -#if defined(CONFIG_CCM)		|| \ -    defined(CONFIG_COGENT)	|| \ -    defined(CONFIG_CPCI405)	|| \ -    defined(CONFIG_EVB64260)	|| \ -    defined(CONFIG_KUP4K)	|| \ -    defined(CONFIG_KUP4X)	|| \ -    defined(CONFIG_LWMON)	|| \ -    defined(CONFIG_PCU_E)	|| \ -    defined(CONFIG_SC3)		|| \ -    defined(CONFIG_W7O)		|| \ -    defined(CONFIG_MISC_INIT_R) +#if defined(CONFIG_MISC_INIT_R)  	/* miscellaneous platform dependent initialisations */  	misc_init_r ();  #endif @@ -1010,22 +1000,7 @@ void board_init_r (gd_t *id, ulong dest_addr)  	eth_initialize (bd);  #endif -#if defined(CONFIG_CMD_NET) && ( \ -    defined(CONFIG_CCM)		|| \ -    defined(CONFIG_ELPT860)	|| \ -    defined(CONFIG_EP8260)	|| \ -    defined(CONFIG_IP860)	|| \ -    defined(CONFIG_IVML24)	|| \ -    defined(CONFIG_IVMS8)	|| \ -    defined(CONFIG_MPC8260ADS)	|| \ -    defined(CONFIG_MPC8266ADS)	|| \ -    defined(CONFIG_MPC8560ADS)	|| \ -    defined(CONFIG_PCU_E)	|| \ -    defined(CONFIG_RPXSUPER)	|| \ -    defined(CONFIG_STXGP3)	|| \ -    defined(CONFIG_SPD823TS)	|| \ -    defined(CONFIG_RESET_PHY_R)	) - +#if defined(CONFIG_CMD_NET) && defined(CONFIG_RESET_PHY_R)  	WATCHDOG_RESET ();  	debug ("Reset Ethernet PHY\n");  	reset_phy (); | 
