2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>

Add Embedded Planets EP5200 which is the same as the Freescale
	5200Lite (a.k.a. IceCube) evaluation board.
	* Makefile.am: Add linkcmds.ep5200.
	Add -DMPC5200_BAPI_LIBC_HEADERS to remove some warnings in bestcomm.
	* preinstall.am: Add linkcmds.ep5200.
	* clock/clock.c: Correct math for prescaler/counter when bus speed
	is high enough to require multiple passes of loop.
	* console/console.c: Use same math for initial baud rate as when it
	is changed via ioctl.  When HAS_UBOOT is defined, initialize console
	to the same baud as it was with U-Boot.
	* include/bsp.h: Add EP5200 and console boot baud support.
	* include/mpc5200.h: Spacing.
	* startup/bspstart.c: If HAS_UBOOT and SHOW_MORE_INIT_SETTINGS are
	both defined, dump the U-Boot BD info structure.
	* vectors/vectors.S: ep5200 cannot use vectors segment.  When loading
	it, U-Boot freezes.  Besides, U-Boot can automatically start the BSP
	so we do not have to run from board reset.
	* startup/linkcmds.ep5200: New file.
This commit is contained in:
Joel Sherrill
2007-06-20 21:42:00 +00:00
parent 18481be37d
commit 7da34053e7
10 changed files with 424 additions and 16 deletions

View File

@@ -244,8 +244,6 @@ void bsp_predriver_hook(void)
#endif
}
void bsp_start(void)
{
extern void *_WorkspaceBase;
@@ -257,13 +255,21 @@ void bsp_start(void)
* Get CPU identification dynamically. Note that the get_ppc_cpu_type() function
* store the result in global variables so that it can be used latter...
*/
myCpu = get_ppc_cpu_type();
myCpu = get_ppc_cpu_type();
myCpuRevision = get_ppc_cpu_revision();
#if defined(HAS_UBOOT)
uboot_bdinfo_copy = *uboot_bdinfo_ptr;
uboot_bdinfo_ptr = &uboot_bdinfo_copy;
#endif
#if defined(HAS_UBOOT) && defined(SHOW_MORE_INIT_SETTINGS)
{
void dumpUBootBDInfo( bd_t * );
dumpUBootBDInfo( uboot_bdinfo_ptr );
}
#endif
cpu_init();
/*