summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-12 14:16:57 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-12 14:16:57 +0000
commit8a54204379574c12af94a9491a91cf59a5857e22 (patch)
tree8000c0ad4c8734fc33326e0d37abd5c12f10d80f /c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
parent2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-8a54204379574c12af94a9491a91cf59a5857e22.tar.bz2
2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
* console/console.h, console/console.c, console/config.c, console/ns16550cfg.c: Removed files. * console/console-config.c: New file. * Makefile.am: Reflect changes above. * configure.ac: New BSP options. * include/bsp.h: Use new BSP options. * network/network.c: Avoid memory leak. * startup/bspstart.c: Initialize console port table. * spi/spi_init.c: Update for SD card API changes.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
index 9e691e5b82..3e88cf2ee6 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
@@ -20,6 +20,8 @@
* $Id$
*/
+#include <libchip/serial.h>
+
#include <libcpu/powerpc-utility.h>
#include <bsp.h>
@@ -83,6 +85,7 @@ void _BSP_Fatal_error(unsigned n)
void bsp_start( void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
+ unsigned long i = 0;
ppc_cpu_id_t myCpu;
ppc_cpu_revision_t myCpuRevision;
@@ -127,6 +130,16 @@ void bsp_start( void)
bsp_clicks_per_usec = BSP_bus_frequency / 4000000;
#endif /* HAS_UBOOT */
+ /* Initialize some console parameters */
+ for (i = 0; i < Console_Port_Count; ++i) {
+ Console_Port_Tbl [i].ulClock = BSP_bus_frequency;
+
+ #ifdef HAS_UBOOT
+ Console_Port_Tbl [i].pDeviceParams =
+ (void *) bsp_uboot_board_info.bi_baudrate;
+ #endif
+ }
+
/* Initialize exception handler */
sc = ppc_exc_initialize(
PPC_INTERRUPT_DISABLE_MASK_DEFAULT,