xref: /openbmc/u-boot/drivers/ddr/fsl/Kconfig (revision f18b7b27)
1d26e34c4SYork Sunconfig SYS_FSL_DDR
2d26e34c4SYork Sun	bool
3d26e34c4SYork Sun	help
4d26e34c4SYork Sun	  Select Freescale General DDR driver, shared between most Freescale
5d26e34c4SYork Sun	  PowerPC- based SoCs (such as mpc83xx, mpc85xx, mpc86xx) and ARM-
6d26e34c4SYork Sun	  based Layerscape SoCs (such as ls2080a).
7d26e34c4SYork Sun
8d26e34c4SYork Sunconfig SYS_FSL_MMDC
9d26e34c4SYork Sun	bool
10d26e34c4SYork Sun	help
11d26e34c4SYork Sun	  Select Freescale Multi Mode DDR controller (MMDC).
12d26e34c4SYork Sun
13d26e34c4SYork Sunconfig SYS_FSL_DDR_BE
14d26e34c4SYork Sun	bool
15d26e34c4SYork Sun	help
16d26e34c4SYork Sun		Access DDR registers in big-endian
17d26e34c4SYork Sun
18d26e34c4SYork Sunconfig SYS_FSL_DDR_LE
19d26e34c4SYork Sun	bool
20d26e34c4SYork Sun	help
21d26e34c4SYork Sun		Access DDR registers in little-endian
22d26e34c4SYork Sun
23*32413125SRajesh Bhagatconfig FSL_DDR_BIST
24*32413125SRajesh Bhagat	bool
25*32413125SRajesh Bhagat
26*32413125SRajesh Bhagatconfig FSL_DDR_INTERACTIVE
27*32413125SRajesh Bhagat	bool
28*32413125SRajesh Bhagat
29*32413125SRajesh Bhagatconfig FSL_DDR_SYNC_REFRESH
30*32413125SRajesh Bhagat	bool
31*32413125SRajesh Bhagat
32*32413125SRajesh Bhagatconfig FSL_DDR_FIRST_SLOT_QUAD_CAPABLE
33*32413125SRajesh Bhagat	bool
34*32413125SRajesh Bhagat
35d26e34c4SYork Sunmenu "Freescale DDR controllers"
36d26e34c4SYork Sun	depends on SYS_FSL_DDR
37d26e34c4SYork Sun
3851370d56SYork Sunconfig SYS_NUM_DDR_CTLRS
3966e399b6SYork Sun	int "Maximum DDR controllers"
4066e399b6SYork Sun	default 3 if	ARCH_LS2080A	|| \
4166e399b6SYork Sun			ARCH_T4240
4266e399b6SYork Sun	default 2 if	ARCH_B4860	|| \
4366e399b6SYork Sun			ARCH_BSC9132	|| \
4466e399b6SYork Sun			ARCH_MPC8572	|| \
4566e399b6SYork Sun			ARCH_MPC8641	|| \
4666e399b6SYork Sun			ARCH_P4080	|| \
4766e399b6SYork Sun			ARCH_P5020	|| \
4866e399b6SYork Sun			ARCH_P5040	|| \
494909b89eSPriyanka Jain			ARCH_LX2160A	|| \
5066e399b6SYork Sun			ARCH_T4160
5166e399b6SYork Sun	default 1
5266e399b6SYork Sun
53d26e34c4SYork Sunconfig SYS_FSL_DDR_VER
54d26e34c4SYork Sun	int
55d26e34c4SYork Sun	default 50 if SYS_FSL_DDR_VER_50
56d26e34c4SYork Sun	default 47 if SYS_FSL_DDR_VER_47
57d26e34c4SYork Sun	default 46 if SYS_FSL_DDR_VER_46
58d26e34c4SYork Sun	default 44 if SYS_FSL_DDR_VER_44
59d26e34c4SYork Sun
60d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_50
61d26e34c4SYork Sun	bool
62d26e34c4SYork Sun
63d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_47
64d26e34c4SYork Sun	bool
65d26e34c4SYork Sun
66d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_46
67d26e34c4SYork Sun	bool
68d26e34c4SYork Sun
69d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_44
70d26e34c4SYork Sun	bool
71d26e34c4SYork Sun
72d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN1
73d26e34c4SYork Sun	bool
74d26e34c4SYork Sun	help
75d26e34c4SYork Sun	  Enable Freescale DDR controller.
76d26e34c4SYork Sun
77d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN2
78d26e34c4SYork Sun	bool
79d26e34c4SYork Sun	depends on !MPC86xx
80d26e34c4SYork Sun	help
81d26e34c4SYork Sun	  Enable Freescale DDR2 controller.
82d26e34c4SYork Sun
83d26e34c4SYork Sunconfig SYS_FSL_DDRC_86XX_GEN2
84d26e34c4SYork Sun	bool
85d26e34c4SYork Sun	depends on MPC86xx
86d26e34c4SYork Sun	help
87d26e34c4SYork Sun	  Enable Freescale DDR2 controller for MPC86xx SoCs.
88d26e34c4SYork Sun
89d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN3
90d26e34c4SYork Sun	bool
91d26e34c4SYork Sun	depends on PPC
92d26e34c4SYork Sun	help
93d26e34c4SYork Sun	  Enable Freescale DDR3 controller for PowerPC SoCs.
94d26e34c4SYork Sun
95d26e34c4SYork Sunconfig SYS_FSL_DDRC_ARM_GEN3
96d26e34c4SYork Sun	bool
97d26e34c4SYork Sun	depends on ARM
98d26e34c4SYork Sun	help
99d26e34c4SYork Sun	  Enable Freescale DDR3 controller for ARM SoCs.
100d26e34c4SYork Sun
101d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN4
102d26e34c4SYork Sun	bool
103d26e34c4SYork Sun	help
104d26e34c4SYork Sun	  Enable Freescale DDR4 controller.
105d26e34c4SYork Sun
106d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR4
107d26e34c4SYork Sun	bool
108d26e34c4SYork Sun
109d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR3
110d26e34c4SYork Sun	bool
111d26e34c4SYork Sun
112d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR2
113d26e34c4SYork Sun	bool
114d26e34c4SYork Sun
115d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR1
116d26e34c4SYork Sun	bool
117d26e34c4SYork Sun
118d26e34c4SYork Sunchoice
119d26e34c4SYork Sun	prompt "DDR technology"
120d26e34c4SYork Sun	default SYS_FSL_DDR4 if SYS_FSL_HAS_DDR4
121d26e34c4SYork Sun	default SYS_FSL_DDR3 if SYS_FSL_HAS_DDR3
122d26e34c4SYork Sun	default SYS_FSL_DDR2 if SYS_FSL_HAS_DDR2
123d26e34c4SYork Sun	default SYS_FSL_DDR1 if SYS_FSL_HAS_DDR1
124d26e34c4SYork Sun
125d26e34c4SYork Sunconfig SYS_FSL_DDR4
126d26e34c4SYork Sun	bool "Freescale DDR4 controller"
127d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR4
128d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN4
129d26e34c4SYork Sun
130d26e34c4SYork Sunconfig SYS_FSL_DDR3
131d26e34c4SYork Sun	bool "Freescale DDR3 controller"
132d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR3
133d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN3 if PPC
134d26e34c4SYork Sun	select SYS_FSL_DDRC_ARM_GEN3 if ARM
135d26e34c4SYork Sun
136d26e34c4SYork Sunconfig SYS_FSL_DDR2
137d26e34c4SYork Sun	bool "Freescale DDR2 controller"
138d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR2
139d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3)
140d26e34c4SYork Sun	select SYS_FSL_DDRC_86XX_GEN2 if MPC86xx
141d26e34c4SYork Sun
142d26e34c4SYork Sunconfig SYS_FSL_DDR1
143d26e34c4SYork Sun	bool "Freescale DDR1 controller"
144d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR1
145d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN1
146d26e34c4SYork Sun
147d26e34c4SYork Sunendchoice
148d26e34c4SYork Sun
149d26e34c4SYork Sunendmenu
150ba1b6fb5SYork Sun
151ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008378
152ba1b6fb5SYork Sun	bool
153ba1b6fb5SYork Sun
154ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008511
155ba1b6fb5SYork Sun	bool
156ba1b6fb5SYork Sun
157ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009663
158ba1b6fb5SYork Sun	bool
159ba1b6fb5SYork Sun
160ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009801
161ba1b6fb5SYork Sun	bool
162ba1b6fb5SYork Sun
163ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009803
164ba1b6fb5SYork Sun	bool
165ba1b6fb5SYork Sun
166ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009942
167ba1b6fb5SYork Sun	bool
168ba1b6fb5SYork Sun
169ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A010165
170ba1b6fb5SYork Sun	bool
17163659ff3SYork Sun
17263659ff3SYork Sunconfig SYS_FSL_ERRATUM_NMG_DDR120
17363659ff3SYork Sun	bool
17463659ff3SYork Sun
17563659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_115
17663659ff3SYork Sun	bool
17763659ff3SYork Sun
17863659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR111_DDR134
17963659ff3SYork Sun	bool
18063659ff3SYork Sun
18163659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_A003
18263659ff3SYork Sun	bool
18363659ff3SYork Sun
18463659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_A003474
18563659ff3SYork Sun	bool
186