blob: df51750e949a0cae48f9cb4b3fc347aa368e82ab (
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
|
/*++
linux/include/asm-arm/arch-wmt/wmt_scc.h
Copyright (c) 2012 WonderMedia Technologies, Inc.
This program is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software Foundation,
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
WonderMedia Technologies, Inc.
10F, 529, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C.
--*/
/* Be sure that virtual mapping is defined right */
#ifndef __ASM_ARCH_HARDWARE_H
#error "You must include hardware.h, not wmt_scc.h"
#endif
#ifndef __WMT_SCC_H
#define __WMT_SCC_H
/*
* Refer SCC module register set.pdf ver. 0.15
*
*/
/*#define SYSTEM_CFG_CTRL_BASE_ADDR 0xF8400000 // 64K */
/*
* Address
*/
#define SCC_CHIP_ID_ADDR (0x0000+SYSTEM_CFG_CTRL_BASE_ADDR)
/*
* Registers
*/
#define SCC_CHIP_ID_REG REG32_PTR(0x0000+SYSTEM_CFG_CTRL_BASE_ADDR)
/*
* VAL Registers
*/
#define SCC_CHIP_ID_VAL REG32_VAL(0x0000+SYSTEM_CFG_CTRL_BASE_ADDR)
/*
* SCC_CHIP_ID_REG
*
*/
#define SCC_ID_PART_NUMBER_MASK 0xFFFF0000
#define SCC_ID_MAJOR_MASK 0x0000FF00
#define SCC_ID_METAL_MASK 0x000000FF
#define SCC_CHIP_ID_MASK 0xFFFFFFFF
#define SCC_ID_DEFAULT_PART_NUMBER 0x33000000
#define SCC_ID_MAJOR_01 0x00000100
#define SCC_ID_METAL_01 0x00000001
#define SCC_CHIP_ID_01 (SCC_ID_DEFAULT_PART_NUMBER|SCC_ID_MAJOR_01|SCC_ID_METAL_01)
#endif /* __WMT_SCC_H */
|