xref: /openbmc/u-boot/drivers/ddr/fsl/Kconfig (revision 4909b89e)
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
23d26e34c4SYork Sunmenu "Freescale DDR controllers"
24d26e34c4SYork Sun	depends on SYS_FSL_DDR
25d26e34c4SYork Sun
2651370d56SYork Sunconfig SYS_NUM_DDR_CTLRS
2766e399b6SYork Sun	int "Maximum DDR controllers"
2866e399b6SYork Sun	default 3 if	ARCH_LS2080A	|| \
2966e399b6SYork Sun			ARCH_T4240
3066e399b6SYork Sun	default 2 if	ARCH_B4860	|| \
3166e399b6SYork Sun			ARCH_BSC9132	|| \
3266e399b6SYork Sun			ARCH_MPC8572	|| \
3366e399b6SYork Sun			ARCH_MPC8641	|| \
3466e399b6SYork Sun			ARCH_P4080	|| \
3566e399b6SYork Sun			ARCH_P5020	|| \
3666e399b6SYork Sun			ARCH_P5040	|| \
37*4909b89eSPriyanka Jain			ARCH_LX2160A	|| \
3866e399b6SYork Sun			ARCH_T4160
3966e399b6SYork Sun	default 1
4066e399b6SYork Sun
41d26e34c4SYork Sunconfig SYS_FSL_DDR_VER
42d26e34c4SYork Sun	int
43d26e34c4SYork Sun	default 50 if SYS_FSL_DDR_VER_50
44d26e34c4SYork Sun	default 47 if SYS_FSL_DDR_VER_47
45d26e34c4SYork Sun	default 46 if SYS_FSL_DDR_VER_46
46d26e34c4SYork Sun	default 44 if SYS_FSL_DDR_VER_44
47d26e34c4SYork Sun
48d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_50
49d26e34c4SYork Sun	bool
50d26e34c4SYork Sun
51d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_47
52d26e34c4SYork Sun	bool
53d26e34c4SYork Sun
54d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_46
55d26e34c4SYork Sun	bool
56d26e34c4SYork Sun
57d26e34c4SYork Sunconfig SYS_FSL_DDR_VER_44
58d26e34c4SYork Sun	bool
59d26e34c4SYork Sun
60d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN1
61d26e34c4SYork Sun	bool
62d26e34c4SYork Sun	help
63d26e34c4SYork Sun	  Enable Freescale DDR controller.
64d26e34c4SYork Sun
65d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN2
66d26e34c4SYork Sun	bool
67d26e34c4SYork Sun	depends on !MPC86xx
68d26e34c4SYork Sun	help
69d26e34c4SYork Sun	  Enable Freescale DDR2 controller.
70d26e34c4SYork Sun
71d26e34c4SYork Sunconfig SYS_FSL_DDRC_86XX_GEN2
72d26e34c4SYork Sun	bool
73d26e34c4SYork Sun	depends on MPC86xx
74d26e34c4SYork Sun	help
75d26e34c4SYork Sun	  Enable Freescale DDR2 controller for MPC86xx SoCs.
76d26e34c4SYork Sun
77d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN3
78d26e34c4SYork Sun	bool
79d26e34c4SYork Sun	depends on PPC
80d26e34c4SYork Sun	help
81d26e34c4SYork Sun	  Enable Freescale DDR3 controller for PowerPC SoCs.
82d26e34c4SYork Sun
83d26e34c4SYork Sunconfig SYS_FSL_DDRC_ARM_GEN3
84d26e34c4SYork Sun	bool
85d26e34c4SYork Sun	depends on ARM
86d26e34c4SYork Sun	help
87d26e34c4SYork Sun	  Enable Freescale DDR3 controller for ARM SoCs.
88d26e34c4SYork Sun
89d26e34c4SYork Sunconfig SYS_FSL_DDRC_GEN4
90d26e34c4SYork Sun	bool
91d26e34c4SYork Sun	help
92d26e34c4SYork Sun	  Enable Freescale DDR4 controller.
93d26e34c4SYork Sun
94d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR4
95d26e34c4SYork Sun	bool
96d26e34c4SYork Sun
97d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR3
98d26e34c4SYork Sun	bool
99d26e34c4SYork Sun
100d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR2
101d26e34c4SYork Sun	bool
102d26e34c4SYork Sun
103d26e34c4SYork Sunconfig SYS_FSL_HAS_DDR1
104d26e34c4SYork Sun	bool
105d26e34c4SYork Sun
106d26e34c4SYork Sunchoice
107d26e34c4SYork Sun	prompt "DDR technology"
108d26e34c4SYork Sun	default SYS_FSL_DDR4 if SYS_FSL_HAS_DDR4
109d26e34c4SYork Sun	default SYS_FSL_DDR3 if SYS_FSL_HAS_DDR3
110d26e34c4SYork Sun	default SYS_FSL_DDR2 if SYS_FSL_HAS_DDR2
111d26e34c4SYork Sun	default SYS_FSL_DDR1 if SYS_FSL_HAS_DDR1
112d26e34c4SYork Sun
113d26e34c4SYork Sunconfig SYS_FSL_DDR4
114d26e34c4SYork Sun	bool "Freescale DDR4 controller"
115d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR4
116d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN4
117d26e34c4SYork Sun
118d26e34c4SYork Sunconfig SYS_FSL_DDR3
119d26e34c4SYork Sun	bool "Freescale DDR3 controller"
120d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR3
121d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN3 if PPC
122d26e34c4SYork Sun	select SYS_FSL_DDRC_ARM_GEN3 if ARM
123d26e34c4SYork Sun
124d26e34c4SYork Sunconfig SYS_FSL_DDR2
125d26e34c4SYork Sun	bool "Freescale DDR2 controller"
126d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR2
127d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3)
128d26e34c4SYork Sun	select SYS_FSL_DDRC_86XX_GEN2 if MPC86xx
129d26e34c4SYork Sun
130d26e34c4SYork Sunconfig SYS_FSL_DDR1
131d26e34c4SYork Sun	bool "Freescale DDR1 controller"
132d26e34c4SYork Sun	depends on SYS_FSL_HAS_DDR1
133d26e34c4SYork Sun	select SYS_FSL_DDRC_GEN1
134d26e34c4SYork Sun
135d26e34c4SYork Sunendchoice
136d26e34c4SYork Sun
137d26e34c4SYork Sunendmenu
138ba1b6fb5SYork Sun
139ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008378
140ba1b6fb5SYork Sun	bool
141ba1b6fb5SYork Sun
142ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008511
143ba1b6fb5SYork Sun	bool
144ba1b6fb5SYork Sun
145ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009663
146ba1b6fb5SYork Sun	bool
147ba1b6fb5SYork Sun
148ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009801
149ba1b6fb5SYork Sun	bool
150ba1b6fb5SYork Sun
151ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009803
152ba1b6fb5SYork Sun	bool
153ba1b6fb5SYork Sun
154ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009942
155ba1b6fb5SYork Sun	bool
156ba1b6fb5SYork Sun
157ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A010165
158ba1b6fb5SYork Sun	bool
15963659ff3SYork Sun
16063659ff3SYork Sunconfig SYS_FSL_ERRATUM_NMG_DDR120
16163659ff3SYork Sun	bool
16263659ff3SYork Sun
16363659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_115
16463659ff3SYork Sun	bool
16563659ff3SYork Sun
16663659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR111_DDR134
16763659ff3SYork Sun	bool
16863659ff3SYork Sun
16963659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_A003
17063659ff3SYork Sun	bool
17163659ff3SYork Sun
17263659ff3SYork Sunconfig SYS_FSL_ERRATUM_DDR_A003474
17363659ff3SYork Sun	bool
174