OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [hal/] [m68k/] [mcf52xx/] [mcf5272/] [mcf5272c3/] [plf/] [v2_0/] [src/] [plf_startup.c] - Blame information for rev 1254

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//####ECOSGPLCOPYRIGHTBEGIN####
3
// -------------------------------------------
4
// This file is part of eCos, the Embedded Configurable Operating System.
5
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
6
//
7
// eCos is free software; you can redistribute it and/or modify it under
8
// the terms of the GNU General Public License as published by the Free
9
// Software Foundation; either version 2 or (at your option) any later version.
10
//
11
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
12
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
// for more details.
15
//
16
// You should have received a copy of the GNU General Public License along
17
// with eCos; if not, write to the Free Software Foundation, Inc.,
18
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
//
20
// As a special exception, if other files instantiate templates or use macros
21
// or inline functions from this file, or you compile this file and link it
22
// with other works to produce a work based on this file, this file does not
23
// by itself cause the resulting work to be covered by the GNU General Public
24
// License. However the source code for this file must still be made available
25
// in accordance with section (3) of the GNU General Public License.
26
//
27
// This exception does not invalidate any other reasons why a work based on
28
// this file might be covered by the GNU General Public License.
29
//
30
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
31
// at http://sources.redhat.com/ecos/ecos-license/
32
// -------------------------------------------
33
//####ECOSGPLCOPYRIGHTEND####
34
//==========================================================================
35
 
36
#include <cyg/infra/cyg_type.h>
37
#include <pkgconf/hal.h>
38
#include <cyg/hal/hal_startup.h>
39
#include <cyg/hal/hal_memmap.h>
40
#include <cyg/hal/hal_arch.h>
41
 
42
/*****************************************************************************
43
plf_init_cache_acr -- Initialize the cache and access control registers
44
 
45
     The var_init_cache_acr routine already invalidated the cache and ACRs.
46
This routine only needs to enable the ACRs that it will use.
47
 
48
INPUT:
49
 
50
OUTPUT:
51
 
52
RETURN VALUE:
53
 
54
     None
55
 
56
*****************************************************************************/
57
void plf_init_cache_acr(void)
58
{
59
 
60
    // Enable the instruction cache with the following options:
61
    // Enable CPUSHL invalidation.
62
    // No freeze.
63
    // Invalidate all cache lines (flush).
64
    // No external arbiter control.
65
    // Disable non-cacheable instruction bursting.
66
    // Default memory is cacheable.
67
    // Enable buffered writes.
68
    // Read and write access permitted by default.
69
    // Instruction fetch size is cache line.
70
 
71
    mcf52xx_wr_cacr((CYG_WORD32)0x81000102);
72
 
73
    //   Leave the access control registers disabled by default.
74
 
75
}
76
 
77
/*****************************************************************************
78
plf_reset -- Platform-specific reset vector initialization routine
79
 
80
     This routine must be called with interrupts disabled.
81
 
82
INPUT:
83
 
84
OUTPUT:
85
 
86
RETURN VALUE:
87
 
88
     None
89
 
90
*****************************************************************************/
91
void plf_reset(void)
92
{
93
 
94
}
95
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.