1 /* SPDX-License-Identifier:     GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 Rockchip Electronics Co., Ltd
4  */
5 
6 #ifndef _ASM_ARCH_SDRAM_PHY_RON_RTT_PX30_H
7 #define _ASM_ARCH_SDRAM_PHY_RON_RTT_PX30_H
8 
9 #define PHY_DDR3_RON_RTT_DISABLE	(0)
10 #define PHY_DDR3_RON_RTT_451ohm		(1)
11 #define PHY_DDR3_RON_RTT_225ohm		(2)
12 #define PHY_DDR3_RON_RTT_150ohm		(3)
13 #define PHY_DDR3_RON_RTT_112ohm		(4)
14 #define PHY_DDR3_RON_RTT_90ohm		(5)
15 #define PHY_DDR3_RON_RTT_75ohm		(6)
16 #define PHY_DDR3_RON_RTT_64ohm		(7)
17 #define PHY_DDR3_RON_RTT_56ohm		(16)
18 #define PHY_DDR3_RON_RTT_50ohm		(17)
19 #define PHY_DDR3_RON_RTT_45ohm		(18)
20 #define PHY_DDR3_RON_RTT_41ohm		(19)
21 #define PHY_DDR3_RON_RTT_37ohm		(20)
22 #define PHY_DDR3_RON_RTT_34ohm		(21)
23 #define PHY_DDR3_RON_RTT_33ohm		(22)
24 #define PHY_DDR3_RON_RTT_30ohm		(23)
25 #define PHY_DDR3_RON_RTT_28ohm		(24)
26 #define PHY_DDR3_RON_RTT_26ohm		(25)
27 #define PHY_DDR3_RON_RTT_25ohm		(26)
28 #define PHY_DDR3_RON_RTT_23ohm		(27)
29 #define PHY_DDR3_RON_RTT_22ohm		(28)
30 #define PHY_DDR3_RON_RTT_21ohm		(29)
31 #define PHY_DDR3_RON_RTT_20ohm		(30)
32 #define PHY_DDR3_RON_RTT_19ohm		(31)
33 
34 #define PHY_DDR4_LPDDR3_RON_RTT_DISABLE	(0)
35 #define PHY_DDR4_LPDDR3_RON_RTT_480ohm	(1)
36 #define PHY_DDR4_LPDDR3_RON_RTT_240ohm	(2)
37 #define PHY_DDR4_LPDDR3_RON_RTT_160ohm	(3)
38 #define PHY_DDR4_LPDDR3_RON_RTT_120ohm	(4)
39 #define PHY_DDR4_LPDDR3_RON_RTT_96ohm	(5)
40 #define PHY_DDR4_LPDDR3_RON_RTT_80ohm	(6)
41 #define PHY_DDR4_LPDDR3_RON_RTT_68ohm	(7)
42 #define PHY_DDR4_LPDDR3_RON_RTT_60ohm	(16)
43 #define PHY_DDR4_LPDDR3_RON_RTT_53ohm	(17)
44 #define PHY_DDR4_LPDDR3_RON_RTT_48ohm	(18)
45 #define PHY_DDR4_LPDDR3_RON_RTT_43ohm	(19)
46 #define PHY_DDR4_LPDDR3_RON_RTT_40ohm	(20)
47 #define PHY_DDR4_LPDDR3_RON_RTT_37ohm	(21)
48 #define PHY_DDR4_LPDDR3_RON_RTT_34ohm	(22)
49 #define PHY_DDR4_LPDDR3_RON_RTT_32ohm	(23)
50 #define PHY_DDR4_LPDDR3_RON_RTT_30ohm	(24)
51 #define PHY_DDR4_LPDDR3_RON_RTT_28ohm	(25)
52 #define PHY_DDR4_LPDDR3_RON_RTT_26ohm	(26)
53 #define PHY_DDR4_LPDDR3_RON_RTT_25ohm	(27)
54 #define PHY_DDR4_LPDDR3_RON_RTT_24ohm	(28)
55 #define PHY_DDR4_LPDDR3_RON_RTT_22ohm	(29)
56 #define PHY_DDR4_LPDDR3_RON_RTT_21ohm	(30)
57 #define PHY_DDR4_LPDDR3_RON_RTT_20ohm	(31)
58 
59 #endif
60