summaryrefslogtreecommitdiff
path: root/bsp/allwinner/libraries/sunxi-hal/hal/source/efuse/platform/efuse_sun8iw20.h
blob: a3a616e7d56c12694d6f93fe7837251d3caf6df5 (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
#ifndef __EFUSE_SUN8IW20_H
#define __EFUSE_SUN8IW20_H


#ifdef __cplusplus
extern "C"
{
#endif

#define SUNXI_SID_BASE          0x03006000
#define SID_PRCTL               (SUNXI_SID_BASE + 0x40)
#define SID_PRKEY               (SUNXI_SID_BASE + 0x50)
#define SID_RDKEY               (SUNXI_SID_BASE + 0x60)
#define SJTAG_AT0               (SUNXI_SID_BASE + 0x80)
#define SJTAG_AT1               (SUNXI_SID_BASE + 0x84)
#define SJTAG_S                 (SUNXI_SID_BASE + 0x88)

#define EFUSE_SRAM              (SUNXI_SID_BASE + 0x200)
#define EFUSE_SECURE_MODE       (SUNXI_SID_BASE + 0xA0)

#define EFUSE_CHIPD             (0x00)
#define EFUSE_BROM_CONFIG       (0x10)
#define EFUSE_BROM_TRY          (0X12)
#define EFUSE_THERMAL_SENSOR    (0x14)
#define EFUSE_THS1              (0x18)
#define EFUSE_TF_ZONE           (0x1C)
#define EFUSE_TVOUT             (0x2C)
#define EFUSE_TVOUT_GAMMA       (0x30)
#define EFUSE_OEM_PROG          (0x38)

#define SID_TVOUT_SIZE          (32)

/* write protect */
#define EFUSE_WRITE_PROTECT     (0x40)
/* read  protect */
#define EFUSE_READ_PROTECT      (0x44)


#define SID_OP_LOCK  (0xAC)

/*It can not be seen.*/
#define EFUSE_PRIVATE (0)
/*After burned ,cpu can not access.*/
#define EFUSE_NACCESS (1)

#define EFUSE_RO (2)    /* burn read_protect bit disable */
#define EFUSE_RW (3)    /* burn read/write_protect bit disable */

#define EFUSE_ACL_SET_BRUN_BIT      (1<<29)
#define EFUSE_ACL_SET_RD_FORBID_BIT (1<<30)
#define EFUSE_BRUN_RD_OFFSET_MASK    (0xFFFFFF)

#endif