summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx6-mmdc.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: i.MX6: esdctl: Fix CS0_end for 4GiB/csSascha Hauer2016-04-011-1/+1
| | | | | | | | On i.MX6 a single chipselect can have 4GiB. In this case the calculation for CS0_end overflows the 7 bit field. Clamp it to 127, the maximum supported value. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6-mmdc: Fix MAPSR usageMarek Vasut2015-11-131-1/+1
| | | | | | | | | | | | The commit ea1fb2f75db8c20f6b950c3b96dc39b26fc72bd0 by Eric Nelson imx6-mmdc: fix automatic power down enable in write level calibration fixed the incorrect usage of the MAPSR register, but there is one more place where the MAPSR is misused in the exact same way, so fix that as well. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6-mmdc: restore RALAT/WALAT in MMDC0, not MMDC1Eric Nelson2015-10-261-1/+1
| | | | | Signed-off-by: Eric Nelson <eric@nelint.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6-mmdc: fix automatic power down enable in write level calibrationEric Nelson2015-10-261-2/+2
| | | | | | | | | | Bit 0 of the MAPSR register controls auto power down. Explicitly clear this bit instead of reserved bit when exiting from mmdc_do_write_level_calibration(). Signed-off-by: Eric Nelson <eric@nelint.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx6-mmdc: Fix cs0_end calculationSascha Hauer2015-07-311-1/+1
| | | | | | | | | | The current calculation does not take the 0x10000000 offset where SDRAM starts into account. For example with a 1GiB chip density the current code calculates cs1 start to 0x40000000, but it has to be 0x10000000 + 0x40000000 = 0x50000000. Add the missing 8 32MiB chunks. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6: Add DDR setup code from U-BootSascha Hauer2015-07-291-0/+544
| | | | | | | | Several i.MX6 boards like to do their SDRAM setup in code rather than in DCD tables. Add the SDRAM setup code from U-Boot to make it easy to adopt the SDRAM setup from the U-Boot port of these boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: mmdc: move calibration result printout to separate functionSascha Hauer2014-10-221-24/+31
| | | | | | To be able to print the results without compiling with DEBUG enabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: mmdc: Only print calibration values of enabled physSascha Hauer2014-10-221-8/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx:mmdc:Move imx6-reg include to imx6-mmdc headerChristian Hemp2014-05-051-1/+0
| | | | | | | Move the imx6-reg.h include to the imx6-mmdc header. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx6:mmdc: Move register defines to header fileChristian Hemp2014-04-281-37/+0
| | | | | | | Move mmdc register defines to mmdc header file. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: Add mmdc calibration supportSascha Hauer2013-03-111-0/+868
This adds support for the various DDR calibration functions in the i.MX6 MMDC. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>