diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-03-13 16:42:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-15 08:11:11 +0100 |
commit | 183058a549faa2ce1c6a0d1a1674fe0b1f1fe863 (patch) | |
tree | e86b94ef55bab034b41e9bb438a385a3f6980fd1 /drivers/ddr | |
parent | e706d9f8de6572a0dd1d1b370a52fec45a435267 (diff) | |
download | barebox-183058a549faa2ce1c6a0d1a1674fe0b1f1fe863.tar.gz barebox-183058a549faa2ce1c6a0d1a1674fe0b1f1fe863.tar.xz |
ddr: imx8m: add deprecation warnings for ddrphy_trained_csr
ddrphy_trained_csr and ddrphy_trained_csr_num are generated by the
spreadsheet, but are unused. Instead a default array with fixed values
is unconditionally used. Add a deprecation warning to alert to this
fact.
It seems GCC doesn't print this deprecation when using C99
designated initializers, but clang(d) does, so it's useful to have for
those using clangd in their editors.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240313154217.2747582-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ddr')
-rw-r--r-- | drivers/ddr/imx/helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ddr/imx/helper.c b/drivers/ddr/imx/helper.c index 674ca7e4ac..f9c25f7180 100644 --- a/drivers/ddr/imx/helper.c +++ b/drivers/ddr/imx/helper.c @@ -10,6 +10,13 @@ #include <errno.h> #include <soc/imx8m/ddr.h> +/* + * We deprecate ddrphy_trained_csr(_num) for board code, so we can set it + * ourselves here + */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + void ddrphy_trained_csr_save(struct dram_controller *dram, struct dram_cfg_param *ddrphy_csr, unsigned int num) { |