1*baefb63aSEric Nelsonif TARGET_MX6MEMCAL
2*baefb63aSEric Nelson
3*baefb63aSEric Nelsonconfig SYS_BOARD
4*baefb63aSEric Nelson	default "mx6memcal"
5*baefb63aSEric Nelson
6*baefb63aSEric Nelsonconfig SYS_VENDOR
7*baefb63aSEric Nelson	default "freescale"
8*baefb63aSEric Nelson
9*baefb63aSEric Nelsonconfig SYS_CONFIG_NAME
10*baefb63aSEric Nelson	default "mx6memcal"
11*baefb63aSEric Nelson
12*baefb63aSEric Nelsonmenu "mx6memcal specifics"
13*baefb63aSEric Nelsonchoice
14*baefb63aSEric Nelson	prompt "Serial console"
15*baefb63aSEric Nelson	help
16*baefb63aSEric Nelson	  Either UART1 or UART2 will be used as the console for
17*baefb63aSEric Nelson	  displaying the calibration values or errors.
18*baefb63aSEric Nelson
19*baefb63aSEric Nelsonconfig SERIAL_CONSOLE_UART1
20*baefb63aSEric Nelson	bool "UART1"
21*baefb63aSEric Nelson	help
22*baefb63aSEric Nelson	  Select this if your board uses UART1 for its' console.
23*baefb63aSEric Nelson
24*baefb63aSEric Nelsonconfig SERIAL_CONSOLE_UART2
25*baefb63aSEric Nelson	bool "UART2"
26*baefb63aSEric Nelson	help
27*baefb63aSEric Nelson	  Select this if your board uses UART2 for its' console.
28*baefb63aSEric Nelson
29*baefb63aSEric Nelsonendchoice
30*baefb63aSEric Nelson
31*baefb63aSEric Nelsonchoice
32*baefb63aSEric Nelson	prompt "UART pads"
33*baefb63aSEric Nelson	help
34*baefb63aSEric Nelson	  Select the RX and TX pads used for your serial console.
35*baefb63aSEric Nelson	  The choices below reflect the most commonly used options
36*baefb63aSEric Nelson	  for your UART.
37*baefb63aSEric Nelson
38*baefb63aSEric Nelson	config UART2_EIM_D26_27
39*baefb63aSEric Nelson		bool "UART2 on EIM_D26/27 (SabreLite, Nitrogen6x)"
40*baefb63aSEric Nelson		depends on SERIAL_CONSOLE_UART2
41*baefb63aSEric Nelson		help
42*baefb63aSEric Nelson		  Choose this configuration if you're using pads
43*baefb63aSEric Nelson		  EIM_D26 and D27 for a console on UART2.
44*baefb63aSEric Nelson		  This is typical for designs that are based on the
45*baefb63aSEric Nelson		  NXP SABRELite.
46*baefb63aSEric Nelson
47*baefb63aSEric Nelson	config UART1_CSI0_DAT10_11
48*baefb63aSEric Nelson		bool "UART1 on CSI0_DAT10/11 (Wand)"
49*baefb63aSEric Nelson		depends on SERIAL_CONSOLE_UART1
50*baefb63aSEric Nelson		help
51*baefb63aSEric Nelson		  Choose this configuration if you're using pads
52*baefb63aSEric Nelson		  CSI0_DAT10 and DAT11 for a console on UART1 as
53*baefb63aSEric Nelson		  is done on the i.MX6 Wand board.
54*baefb63aSEric Nelson
55*baefb63aSEric Nelson	config UART1_SD3_DAT6_7
56*baefb63aSEric Nelson		bool "UART1 on SD3_DAT6/7 (SabreSD, SabreAuto)"
57*baefb63aSEric Nelson		depends on SERIAL_CONSOLE_UART1
58*baefb63aSEric Nelson		help
59*baefb63aSEric Nelson		  Choose this configuration if you're using pads
60*baefb63aSEric Nelson		  SD3_DAT6 and DAT7 for a console on UART1 as is
61*baefb63aSEric Nelson		  done on the NXP SABRESD or SABREAUTO designs.
62*baefb63aSEric Nelson
63*baefb63aSEric Nelson	config UART1_UART1
64*baefb63aSEric Nelson		bool "UART1 on UART1 (i.MX6SL EVK, WaRP)"
65*baefb63aSEric Nelson		depends on SERIAL_CONSOLE_UART1
66*baefb63aSEric Nelson		help
67*baefb63aSEric Nelson		  Choose this configuration if you're using pads
68*baefb63aSEric Nelson		  UART1_TXD/RXD for a console on UART1 as is done
69*baefb63aSEric Nelson		  on most i.MX6SL designs.
70*baefb63aSEric Nelson
71*baefb63aSEric Nelsonendchoice
72*baefb63aSEric Nelson
73*baefb63aSEric Nelsonconfig IMXIMAGE_OUTPUT
74*baefb63aSEric Nelson	bool "Include output for imximage .cfg files"
75*baefb63aSEric Nelson	default y
76*baefb63aSEric Nelson	help
77*baefb63aSEric Nelson	  Say "Y" if you want output formatted for use in non-SPL
78*baefb63aSEric Nelson	  (DCD-style) configuration files.
79*baefb63aSEric Nelson
80*baefb63aSEric Nelsonconfig DDRWIDTH
81*baefb63aSEric Nelson	int "DDR bus width"
82*baefb63aSEric Nelson	default 64
83*baefb63aSEric Nelson	help
84*baefb63aSEric Nelson	  Select either 32 or 64 to reflect the DDR bus width.
85*baefb63aSEric Nelson
86*baefb63aSEric Nelsonconfig DDRCS
87*baefb63aSEric Nelson	int "DDR chip selects"
88*baefb63aSEric Nelson	default 2
89*baefb63aSEric Nelson	range 1 2
90*baefb63aSEric Nelson	help
91*baefb63aSEric Nelson	  Select the number of chip selects used in your board design
92*baefb63aSEric Nelson
93*baefb63aSEric Nelsonchoice
94*baefb63aSEric Nelson	prompt "Memory type"
95*baefb63aSEric Nelson	help
96*baefb63aSEric Nelson	  Select the type of DDR (DDR3 or LPDDR2) used on your design
97*baefb63aSEric Nelson
98*baefb63aSEric Nelsonconfig	DDR3
99*baefb63aSEric Nelson	bool "DDR3"
100*baefb63aSEric Nelson	help
101*baefb63aSEric Nelson	  Select this if your board design uses DDR3.
102*baefb63aSEric Nelson
103*baefb63aSEric Nelsonconfig	LPDDR2
104*baefb63aSEric Nelson	bool "LPDDR2"
105*baefb63aSEric Nelson	help
106*baefb63aSEric Nelson	  Select this if your board design uses LPDDR2.
107*baefb63aSEric Nelson
108*baefb63aSEric Nelsonendchoice
109*baefb63aSEric Nelson
110*baefb63aSEric Nelsonchoice
111*baefb63aSEric Nelson	prompt "Memory device"
112*baefb63aSEric Nelson
113*baefb63aSEric Nelsonconfig MT41K512M16TNA
114*baefb63aSEric Nelson	bool "Micron MT41K512M16TNA 512Mx16 (1GiB/chip)"
115*baefb63aSEric Nelson	depends on DDR3
116*baefb63aSEric Nelson
117*baefb63aSEric Nelsonconfig MT41K128M16JT
118*baefb63aSEric Nelson	bool "Micron MT41K128M16JT 128Mx16 (256 MiB/chip)"
119*baefb63aSEric Nelson	depends on DDR3
120*baefb63aSEric Nelson
121*baefb63aSEric Nelsonconfig H5TQ4G63AFR
122*baefb63aSEric Nelson	bool "Hynix H5TQ4G63AFR 256Mx16 (512 MiB/chip)"
123*baefb63aSEric Nelson	depends on DDR3
124*baefb63aSEric Nelson
125*baefb63aSEric Nelsonconfig H5TQ2G63DFR
126*baefb63aSEric Nelson	bool "Hynix H5TQ2G63DFR 128Mx16 (256 MiB/chip)"
127*baefb63aSEric Nelson	depends on DDR3
128*baefb63aSEric Nelson
129*baefb63aSEric Nelsonconfig MT42L256M32D2LG
130*baefb63aSEric Nelson	bool "Micron MT42L256M32D2LG LPDDR2 256Mx32 (1GiB/chip)"
131*baefb63aSEric Nelson	depends on LPDDR2
132*baefb63aSEric Nelson
133*baefb63aSEric Nelsonconfig MT29PZZZ4D4BKESK
134*baefb63aSEric Nelson	bool "Micron MT29PZZZ4D4BKESK multi-chip 512MiB LPDDR2/4GiB eMMC"
135*baefb63aSEric Nelson	depends on LPDDR2
136*baefb63aSEric Nelson
137*baefb63aSEric Nelsonendchoice
138*baefb63aSEric Nelson
139*baefb63aSEric Nelsonconfig DDR_ODT
140*baefb63aSEric Nelson	int "DDR On-die-termination"
141*baefb63aSEric Nelson	default 2
142*baefb63aSEric Nelson	range 0 7
143*baefb63aSEric Nelson	help
144*baefb63aSEric Nelson	  Enter the on-die termination value as an index defined for
145*baefb63aSEric Nelson	  IOMUX settings for PAD_DRAM_SDCLK0_P and others.
146*baefb63aSEric Nelson	  0 == Disabled
147*baefb63aSEric Nelson	  1 == 120 Ohm
148*baefb63aSEric Nelson	  2 == 60 Ohm
149*baefb63aSEric Nelson	  3 == 40 Ohm
150*baefb63aSEric Nelson	  4 == 30 Ohm
151*baefb63aSEric Nelson	  5 == 24 Ohm
152*baefb63aSEric Nelson	  6 == 20 Ohm
153*baefb63aSEric Nelson	  7 == 17 Ohm
154*baefb63aSEric Nelson	  Value will be applied to all clock and data lines
155*baefb63aSEric Nelson
156*baefb63aSEric Nelson
157*baefb63aSEric Nelsonconfig DRAM_DRIVE_STRENGTH
158*baefb63aSEric Nelson	int "DRAM Drive strength"
159*baefb63aSEric Nelson	default 6
160*baefb63aSEric Nelson	range 0 7
161*baefb63aSEric Nelson	help
162*baefb63aSEric Nelson	  Enter drive strength as an index defined for IOMUX settings
163*baefb63aSEric Nelson	  for GRP_B1DS and others.
164*baefb63aSEric Nelson	  0 == Hi Z
165*baefb63aSEric Nelson	  6 == 40 Ohm (default)
166*baefb63aSEric Nelson	  7 == 34 Ohm
167*baefb63aSEric Nelson	  Value will be applied to all clock and data lines
168*baefb63aSEric Nelson
169*baefb63aSEric Nelsonconfig RTT_NOM
170*baefb63aSEric Nelson	int "RTT_NOM"
171*baefb63aSEric Nelson	default 1
172*baefb63aSEric Nelson	range 1 2
173*baefb63aSEric Nelson	help
174*baefb63aSEric Nelson	  Enter the RTT_NOM selector
175*baefb63aSEric Nelson	  1 == RZQ/4 (60ohm)
176*baefb63aSEric Nelson	  2 == RZQ/2 (120ohm)
177*baefb63aSEric Nelson
178*baefb63aSEric Nelsonconfig RTT_WR
179*baefb63aSEric Nelson	int "RTT_WR"
180*baefb63aSEric Nelson	default 1
181*baefb63aSEric Nelson	range 0 2
182*baefb63aSEric Nelson	help
183*baefb63aSEric Nelson	  Enter the RTT_WR selector for MR2
184*baefb63aSEric Nelson	  0 == Dynamic ODT disabled
185*baefb63aSEric Nelson	  1 == RZQ/4 (60ohm)
186*baefb63aSEric Nelson	  2 == RZQ/2 (120ohm)
187*baefb63aSEric Nelson
188*baefb63aSEric Nelsonconfig RALAT
189*baefb63aSEric Nelson	int "Read additional latency"
190*baefb63aSEric Nelson	default 5
191*baefb63aSEric Nelson	range 0 7
192*baefb63aSEric Nelson	help
193*baefb63aSEric Nelson	  Enter a latency in number of cycles. This will be added to
194*baefb63aSEric Nelson	  CAS and internal delays for which the MMDC will retrieve the
195*baefb63aSEric Nelson	  read data from the internal FIFO.
196*baefb63aSEric Nelson	  This is used to compensate for board/chip delays.
197*baefb63aSEric Nelson
198*baefb63aSEric Nelsonconfig WALAT
199*baefb63aSEric Nelson	int "Write additional latency"
200*baefb63aSEric Nelson	default 0
201*baefb63aSEric Nelson	range 0 7
202*baefb63aSEric Nelson	help
203*baefb63aSEric Nelson	  Enter a latency in number of cycles. This will be added to
204*baefb63aSEric Nelson	  CAS and internal delays for which the MMDC will retrieve the
205*baefb63aSEric Nelson	  read data from the internal FIFO
206*baefb63aSEric Nelson	  This is used to compensate for board/chip delays.
207*baefb63aSEric Nelson
208*baefb63aSEric Nelsonconfig REFSEL
209*baefb63aSEric Nelson	int "Refresh period"
210*baefb63aSEric Nelson	range 0 3
211*baefb63aSEric Nelson	default 1
212*baefb63aSEric Nelson	help
213*baefb63aSEric Nelson	  Select the DDR refresh period.
214*baefb63aSEric Nelson	  See the description of bitfield REF_SEL in the reference manual
215*baefb63aSEric Nelson	  for details.
216*baefb63aSEric Nelson	  0 == disabled
217*baefb63aSEric Nelson	  1 == 32 kHz
218*baefb63aSEric Nelson	  2 == 64 kHz
219*baefb63aSEric Nelson	  3 == fast counter
220*baefb63aSEric Nelson
221*baefb63aSEric Nelsonconfig REFR
222*baefb63aSEric Nelson	int "Number of refreshes"
223*baefb63aSEric Nelson	range 0 7
224*baefb63aSEric Nelson	default 7
225*baefb63aSEric Nelson	help
226*baefb63aSEric Nelson	   This selects the number of refreshes (-1) during each period.
227*baefb63aSEric Nelson	   i.e.:
228*baefb63aSEric Nelson	   0 == 1 refresh (tRFC)
229*baefb63aSEric Nelson	   7 == 8 refreshes (tRFC*8)
230*baefb63aSEric Nelson	   See the description of MDREF[REFR] in the reference manual for
231*baefb63aSEric Nelson	   details.
232*baefb63aSEric Nelson
233*baefb63aSEric Nelsonendmenu
234*baefb63aSEric Nelsonendif
235*baefb63aSEric Nelson
236