-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbcp.h
More file actions
126 lines (66 loc) · 1.81 KB
/
Copy pathbcp.h
File metadata and controls
126 lines (66 loc) · 1.81 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#ifndef _BCP_H_
#define _BCP_H_
#ifdef BBPLAYER
#include "rcp.h"
/**
* MIPS Interface (MI) Additional Registers
*/
//! MI_SK_EXCEPTION_REG ?
#define MI_14_REG (MI_BASE_REG + 0x14)
//! ?
#define MI_30_REG (MI_BASE_REG + 0x30)
//! ?
#define MI_38_REG (MI_BASE_REG + 0x38)
//! MI_HW_INTR_MASK_REG ?
#define MI_3C_REG (MI_BASE_REG + 0x3C)
/**
* Peripheral Interface (PI) Additional Registers
*/
//! PI_ATB_UPPER_REG ?
#define PI_40_REG (PI_BASE_REG + 0x40)
//! ?
#define PI_44_REG (PI_BASE_REG + 0x44)
/**
* [31] : Exec
* [30] : Raise interrupt when command is done
* [29:24] : ??
* [23:16] : NAND command
* [15] : ??
* [14] : Buffer Select
* [13:12] : Device Select
* [11] : ECC
* [10] : NAND command is multi-cycle
* [ 9: 0] : Transfer Length
*/
#define PI_48_REG (PI_BASE_REG + 0x48)
//! ?
#define PI_4C_REG (PI_BASE_REG + 0x4C)
//! PI_AES_CNT_REG ?
#define PI_50_REG (PI_BASE_REG + 0x50)
//! PI_ALLOWED_IO_REG ?
#define PI_54_REG (PI_BASE_REG + 0x54)
//! ?
#define PI_58_REG (PI_BASE_REG + 0x58)
//! ?
#define PI_5C_REG (PI_BASE_REG + 0x5C)
//! PI_MISC_REG ?
#define PI_60_REG (PI_BASE_REG + 0x60)
//! ?
#define PI_64_REG (PI_BASE_REG + 0x64)
//! PI_CARD_BLK_OFFSET_REG ?
#define PI_70_REG (PI_BASE_REG + 0x70)
//! PI_EX_DMA_BUF ?
#define PI_10000_BUF(offset) (PI_BASE_REG + 0x10000 + (offset))
#define PI_NAND_DATA_BUFFER(bufSelect, offset) PI_10000_BUF((bufSelect) * 0x200 + (offset))
#define PI_NAND_SPARE_BUFFER(bufSelect, offset) PI_10000_BUF(0x400 + (bufSelect) * 0x10 + (offset))
//! PI_ATB_LOWER_REG ?
#define PI_10500_REG(i) (PI_BASE_REG + 0x10500 + (i) * 4)
/**
* Serial Interface (SI) Additional Registers
*/
//! ?
#define SI_0C_REG (SI_BASE_REG + 0x0C)
//! ?
#define SI_1C_REG (SI_BASE_REG + 0x1C)
#endif
#endif