blob: cf48de00cca96ceb69a68973c5bba32413c857cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
#include "sbmips.h"
/* *********************************************************************
* BOARD_EARLYINIT()
*
* Initialize board registers. This is the earliest
* time the BSP gets control. This routine cannot assume that
* memory is operational, and therefore all code in this routine
* must run from registers only. The $ra register must not
* be modified, as it contains the return address.
*
* This routine will be called from uncached space, before
* the caches are initialized. If you want to make
* subroutine calls from here, you must use the CALLKSEG1 macro.
*
* Among other things, this is where the GPIO registers get
* programmed to make on-board LEDs function, or other startup
* that has to be done before anything will work.
*
* Input parameters:
* nothing
*
* Return value:
* nothing
********************************************************************* */
LEAF(board_earlyinit)
j ra
END(board_earlyinit)
/* *********************************************************************
* BOARD_DRAMINFO
*
* Return the address of the DRAM information table
*
* Input parameters:
* nothing
*
* Return value:
* v0 - DRAM info table, return 0 to use default table
********************************************************************* */
LEAF(board_draminfo)
j ra
END(board_draminfo)
/* *********************************************************************
* BOARD_DRAMINIT
*
* This routine should activate memory.
*
* Input parameters:
* a0 - points to configuration table returned by board_draminfo
* or 0 to use an automatic table
*
* Return value:
* v0 - total memory installed
*
* Registers used:
* can use all registers.
********************************************************************* */
LEAF(board_draminit)
j ra
END(board_draminit)
/* *********************************************************************
* BOARD_SETLEDS(x)
*
* Set LEDs for boot-time progress indication. Not used if
* the board does not have progress LEDs. This routine
* must not call any other routines, since it may be invoked
* either from KSEG0 or KSEG1 and it may be invoked
* whether or not the icache is operational.
*
* Input parameters:
* a0 - LED value (8 bits per character, 4 characters)
*
* Return value:
* nothing
*
* Registers used:
* t0,t1,t2,t3
********************************************************************* */
LEAF(board_setleds)
j ra
END(board_setleds)
LEAF(bcmcore_tp1_switch)
j ra
END(bcmcore_tp1_switch)
|