5
Last change
on this file since ff081aee was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
885 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This routine does the bulk of the system initialisation. |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Author: |
---|
7 | * David Fiddes, D.J@fiddes.surfaid.org |
---|
8 | * http://www.calm.hw.ac.uk/davidf/coldfire/ |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1998. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #include <bsp.h> |
---|
19 | #include <bsp/bootcard.h> |
---|
20 | #include <rtems/rtems/cache.h> |
---|
21 | |
---|
22 | void bsp_start(void) |
---|
23 | { |
---|
24 | /* cfinit invalidates cache and sets acr registers */ |
---|
25 | |
---|
26 | /* |
---|
27 | * Enable the cache, we only need to enable the instruction cache as the |
---|
28 | * 532x has a unified data and instruction cache. |
---|
29 | */ |
---|
30 | rtems_cache_enable_instruction(); |
---|
31 | } |
---|
32 | |
---|
33 | uint32_t bsp_get_CPU_clock_speed(void) |
---|
34 | { |
---|
35 | return 240000000; |
---|
36 | } |
---|
37 | |
---|
38 | uint32_t bsp_get_BUS_clock_speed(void) |
---|
39 | { |
---|
40 | return 80000000; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.