source: rtems/c/src/lib/libbsp/m68k/mcf5329/startup/bspstart.c @ d4b4664b

4.104.115
Last change on this file since d4b4664b was d4b4664b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/29/09 at 14:59:41

Whitespace removal.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  BSP startup
3 *
4 *  This routine starts the application.  It includes application,
5 *  board, and monitor specific initialization and configuration.
6 *  The generic CPU dependent initialization has been performed
7 *  before this routine is invoked.
8 *
9 *  Author:
10 *    David Fiddes, D.J@fiddes.surfaid.org
11 *    http://www.calm.hw.ac.uk/davidf/coldfire/
12 *
13 *  COPYRIGHT (c) 1989-1998.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#include <bsp.h>
24#include <rtems/rtems/cache.h>
25
26/*
27 *  bsp_start
28 *
29 *  This routine does the bulk of the system initialisation.
30 */
31void bsp_start(void)
32{
33  /* cfinit invalidates cache and sets acr registers */
34
35  /*
36   * Enable the cache, we only need to enable the instruction cache as the
37   * 532x has a unified data and instruction cache.
38   */
39  rtems_cache_enable_instruction();
40}
41
42uint32_t bsp_get_CPU_clock_speed(void)
43{
44  return 240000000;
45}
46
47uint32_t bsp_get_BUS_clock_speed(void)
48{
49  return 80000000;
50}
Note: See TracBrowser for help on using the repository browser.