Debian Codegraph @

src/vendorcode/mediatek/mt8192/include/dramc_int_slt.h

raw symbols SCIP
1 /* SPDX-License-Identifier: BSD-3-Clause */
2
3 #ifndef _INT_SLT_H
4 #define _INT_SLT_H
5
6
7 //======================== EMI LPBK TEST Definition =====================================
8
9 #if defined(SLT)
10 #define ENABLE_EMI_LPBK_TEST 1
11 #else
12 #define ENABLE_EMI_LPBK_TEST 0
13 #endif
14
15 #define EMI_LPBK_DRAM_USED !ENABLE_EMI_LPBK_TEST // 0: EMI LPBK test, 1: normal K, dram used
16
17 #define EMI_LPBK_USE_THROUGH_IO 0 //test through IO
18 #define EMI_INT_LPBK_WL_DQS_RINGCNT 0 //DQS Ring cnt: through io @ 800,1600,2400,3200, emi intlpbk wo rx/tx K window
19 #define EMI_LPBK_ADDRESS_DEFECT 0 //test address defect, MUST use CPU WRITE mode
20
21 #if ENABLE_EMI_LPBK_TEST
22 #define EMI_USE_TA2 0 // 0:CPU write, 1:TA2, DVsim/Dsim use TA2, but 1:4 mode must use cpu write(because TA2 not support 1:4 mode)
23 #else
24 #define EMI_USE_TA2 0
25 #endif
26
27 /****************************
28 Summary:
29 1W1R: address offset : 0, 4, 8, c (1:8 mode only), no support 1:4 mode
30 8W1R: address offset 0x0 ~ 0xC (8W1R), 0x10 ~ 0x1C, (10W1R) (1:8 & 1:4 mode)
31 ****************************/
32 #define EMI_LPBK_1W1R 0 //CPU mode 0:8W1R, 1:1W1R
33
34 #define EMI_LPBK_S1 0
35
36 #define FREQ_METER 1
37 #define DQSG_COUNTER 1
38
39
40 #define ADJUST_TXDLY_SCAN_RX_WIN 0
41
42 #define EMI_LPBK_K_TX 0
43 #define ENABLE_PRE_POSTAMBLE !EMI_USE_TA2 //0: no pre/post-amble for TA2, 1: need pre/post-amble for cpu write
44
45
46 #define EMI_LPBK_DFS_32 0 //DFS 32<->32<->32
47 #define EMI_LPBK_DFS_24 0 //DFS 24<->24<->24
48 #define EMI_LPBK_DFS_16 0 //DFS 16<->16<->16
49 #define EMI_LPBK_USE_LP3_PINMUX 0
50 #define EMI_LPBK_8W1R 1
51 #if EMI_LPBK_1W1R
52 #undef EMI_LPBK_8W1R
53 #define EMI_LPBK_8W1R 0
54 #endif
55
56 #if EMI_LPBK_USE_THROUGH_IO
57 #define EMI_LPBK_USE_DDR_800 1
58 #else
59 #define EMI_LPBK_USE_DDR_800 0
60 #endif
61 //#define K_TX_DQS_DLY 0
62
63 #define LP4_4266_freq_meter 533 // //shu0 533
64 #define LP4_3733_freq_meter 464 // //shu0 464
65 #define LP4_3200_freq_meter 386 // //shu8 386 //shu9 386
66 #define LP4_2400_freq_meter 299 //shu6 299 shu5 299
67 #define LP4_1600_freq_meter 191 //199 //shu4 383 shu3 191
68 #define LP4_1200_freq_meter 299 //shu2 299 shu1 299
69 #define LP4_800_freq_meter 199 //shu7 199
70
71
72 #if ENABLE_EMI_LPBK_TEST //EMI_LPBK_DRAM_USED==0
73 /*
74 #define SLT
75 #undef ENABLE_TMRRI_NEW_MODE
76 #define ENABLE_TMRRI_NEW_MODE 0
77 #undef ENABLE_DUTY_SCAN_V2
78 #define ENABLE_DUTY_SCAN_V2 0
79 #undef ENABLE_RODT_TRACKING
80 #define ENABLE_RODT_TRACKING 0
81 #undef TX_K_DQM_WITH_WDBI
82 #define TX_K_DQM_WITH_WDBI 0
83 #undef ENABLE_WRITE_DBI
84 #define ENABLE_WRITE_DBI 0
85 */
86
87 #if EMI_INT_LPBK_WL_DQS_RINGCNT
88 #undef EMI_LPBK_USE_THROUGH_IO
89 #define EMI_LPBK_USE_THROUGH_IO 1
90 #undef EMI_LPBK_USE_DDR_800
91 #define EMI_LPBK_USE_DDR_800 0
92 #endif
93
94 #endif
95 //#if (EMI_LPBK_DRAM_USED)
96 //#undef ENABLE_MIOCK_JMETER
97 //#define ENABLE_MIOCK_JMETER // for TX_PER_BIT_DELAY_CELL
98 //#endif
99
100
101 //=============================================================================
102
103
104
105
106 #endif //_INT_GLOBAL_H