~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 089d1d77f0b97f19c086f6ec710ac9b05c4b4b1d (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
#define CFG_SYS_HID0_FINAL ( \
	CONFIG_HID0_FINAL_ABE_BIT |\
	CONFIG_HID0_FINAL_CLKOUT |\
	CONFIG_HID0_FINAL_DCE_BIT |\
	CONFIG_HID0_FINAL_DCFI_BIT |\
	CONFIG_HID0_FINAL_DECAREN_BIT |\
	CONFIG_HID0_FINAL_DLOCK_BIT |\
	CONFIG_HID0_FINAL_DOZE_BIT |\
	CONFIG_HID0_FINAL_DPM_BIT |\
	CONFIG_HID0_FINAL_EBA_BIT |\
	CONFIG_HID0_FINAL_EBD_BIT |\
	CONFIG_HID0_FINAL_ECLK_BIT |\
	CONFIG_HID0_FINAL_ECPE_BIT |\
	CONFIG_HID0_FINAL_EMCP_BIT |\
	CONFIG_HID0_FINAL_FBIOB_BIT |\
	CONFIG_HID0_FINAL_ICE_BIT |\
	CONFIG_HID0_FINAL_ICFI_BIT |\
	CONFIG_HID0_FINAL_IFEM_BIT |\
	CONFIG_HID0_FINAL_ILOCK_BIT |\
	CONFIG_HID0_FINAL_NAP_BIT |\
	CONFIG_HID0_FINAL_NOOPTI_BIT |\
	CONFIG_HID0_FINAL_PAR_BIT |\
	CONFIG_HID0_FINAL_SBCLK_BIT |\
	CONFIG_HID0_FINAL_SLEEP_BIT \
)

#define CFG_SYS_HID0_INIT ( \
	CONFIG_HID0_INIT_ABE_BIT |\
	CONFIG_HID0_INIT_CLKOUT |\
	CONFIG_HID0_INIT_DCE_BIT |\
	CONFIG_HID0_INIT_DCFI_BIT |\
	CONFIG_HID0_INIT_DECAREN_BIT |\
	CONFIG_HID0_INIT_DLOCK_BIT |\
	CONFIG_HID0_INIT_DOZE_BIT |\
	CONFIG_HID0_INIT_DPM_BIT |\
	CONFIG_HID0_INIT_EBA_BIT |\
	CONFIG_HID0_INIT_EBD_BIT |\
	CONFIG_HID0_INIT_ECPE_BIT |\
	CONFIG_HID0_INIT_EMCP_BIT |\
	CONFIG_HID0_INIT_FBIOB_BIT |\
	CONFIG_HID0_INIT_ICE_BIT |\
	CONFIG_HID0_INIT_ICFI_BIT |\
	CONFIG_HID0_INIT_IFEM_BIT |\
	CONFIG_HID0_INIT_ILOCK_BIT |\
	CONFIG_HID0_INIT_NAP_BIT |\
	CONFIG_HID0_INIT_NOOPTI_BIT |\
	CONFIG_HID0_INIT_PAR_BIT |\
	CONFIG_HID0_INIT_SLEEP_BIT \
)

#ifdef CONFIG_TARGET_IDS8313
/* IDS8313 defines a reserved bit; keep to not break compatibility */
#define CFG_HID2_SPECIAL 0x00020000
#else
#define CFG_HID2_SPECIAL 0x0
#endif

#define CFG_SYS_HID2 ( \
	CONFIG_HID2_LET_BIT |\
	CONFIG_HID2_IFEB_BIT |\
	CONFIG_HID2_MESISTATE_BIT |\
	CONFIG_HID2_IFEC_BIT |\
	CONFIG_HID2_EBQS_BIT |\
	CONFIG_HID2_EBPX_BIT |\
	CONFIG_HID2_ELRW_BIT |\
	CONFIG_HID2_NOKS_BIT |\
	CONFIG_HID2_HBE_BIT |\
	CONFIG_HID2_IWLCK |\
	CONFIG_HID2_ICWP_BIT |\
	CONFIG_HID2_DWLCK |\
	CFG_HID2_SPECIAL \
)