summaryrefslogtreecommitdiffstats
path: root/drivers/ddr/fsl/fsl_ddr.h
Commit message (Collapse)AuthorAgeFilesLines
* fsl-ddr: remove duplicate prototypeSascha Hauer2024-01-021-1/+0
| | | | | Link: https://lore.barebox.org/20231219131802.7475-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ddr_dimms: Move ddr*_dimm_params to commonJohn Watts2023-01-251-12/+0
| | | | | | | | | | This code is no longer specific to the any board. Also make ddr2_speed_bins static to not break PowerPC compilation Signed-off-by: John Watts <contact@jookia.org> Link: https://lore.barebox.org/20230121144429.3524905-6-contact@jookia.org Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ddr: fsl: Pass mclk_ps to ddr*_compute_dimm_parametersJohn Watts2023-01-241-4/+4
| | | | | | | | | | | | | | | | | | This is in preparation for use for generic SPD calculations. I had to also rewrite uses of mclk_to_picos like this: - pdimm->trtp_ps = mclk_to_picos(c, 2); /* By the book. */ + pdimm->trtp_ps = mclk_ps * 2; /* By the book. */ This is the same result as: mclk_to_picos(c, mclk) expands to: get_memory_clk_period_ps(c) * mclk, and that can just be rewritten as mclk_ps * mclk. Signed-off-by: John Watts <contact@jookia.org> Link: https://lore.barebox.org/20230121144429.3524905-3-contact@jookia.org Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: migrate "GPL-2.0" license identifiers to SPDX 2.0Roland Hieber2021-11-221-1/+1
| | | | | | | | | | "GPL-2.0-only" was introduced in SPDX 2.0, and the old identifier "GPL-2.0" is now considered deprecated; see <https://spdx.org/licenses>. Fixes: 28f4a6a4df76f0f1581d (2021-10-30, "drivers: add missing SPDX-License-Identifier") Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20211117113851.2022669-2-rhi@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ddr: fsl: move fsl_ddr_set_memctl_regs prototype to include/Sascha Hauer2019-05-081-2/+0
| | | | | | | | | fsl_ddr_set_memctl_regs() is not only used internally in the DDR controller driver, but can also be called by the boards to configure a static setting. Move the prototype to include/ where it can be used by board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ddr: fsl: Add Freescale ddr driverSascha Hauer2019-03-131-0/+234
This adds the Freescale ddr driver used on various PowerPC and Layerscape SoCs. This is based on U-Boot-2019.01 but with many adjustments: - PowerPC support has been removed - CPP #ifdeffery replaced with C - No more global variables/functions expected from the driver, configuration is passed by the board code which calls the driver We already have the driver in the tree in an older version forked from U-Boot-2013.04. This version lacks Layerscape support and many quirks in the driver are PowerPC specific. Since the existing driver should work on all known PowerPC and PowerPC is a dead end I decided not to improve the existing driver and instead add a new Layerscape specific driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>