diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-06-20 21:42:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-06-20 21:42:00 +0000 |
commit | 7da34053e781f749be7e05b29c2e008d55b98e12 (patch) | |
tree | 3a71c8ce5c32682f880c4835b064fc2214625fcc /c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c | |
parent | 2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-7da34053e781f749be7e05b29c2e008d55b98e12.tar.bz2 |
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.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c index 94dff27ec3..380bf42110 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c @@ -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(); /* |