correct bsp_clicks_per_usec initialization for non-U-Boot case

This commit is contained in:
Thomas Doerfler
2008-09-19 16:25:52 +00:00
parent 1e3c7f856c
commit 112490e44e
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-09-19 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* startup/bspstart.c: correct bsp_clicks_per_usec initialization
for non-U-Boot case
2008-09-06 Ralf Corsépius <ralf.corsepius@rtems.org> 2008-09-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/console.h: Convert to "bool". * console/console.h: Convert to "bool".

View File

@@ -151,7 +151,7 @@ void bsp_start( void)
bsp_clicks_per_usec = mpc83xx_uboot_board_info.bi_busfreq / 4000000; bsp_clicks_per_usec = mpc83xx_uboot_board_info.bi_busfreq / 4000000;
#else /* HAS_UBOOT */ #else /* HAS_UBOOT */
BSP_bus_frequency = BSP_CLKIN_FRQ * BSP_SYSPLL_MF / BSP_SYSPLL_CKID; BSP_bus_frequency = BSP_CLKIN_FRQ * BSP_SYSPLL_MF / BSP_SYSPLL_CKID;
bsp_clicks_per_usec = BSP_bus_frequency / 1000000; bsp_clicks_per_usec = BSP_bus_frequency / 4000000;
#endif /* HAS_UBOOT */ #endif /* HAS_UBOOT */
/* Initialize exception handler */ /* Initialize exception handler */