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