summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-11-10 14:00:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-11-13 13:48:03 +0100
commitf8d836f57cc81a43aead76b15c59cd54eabf1d1d (patch)
treeb282d5dbc2f2a039da438bc531e9cf773aa8cf53 /include/soc
parent0b6d0ebc903e5b0717360e4ba435660660ca7736 (diff)
downloadbarebox-f8d836f57cc81a43aead76b15c59cd54eabf1d1d.tar.gz
barebox-f8d836f57cc81a43aead76b15c59cd54eabf1d1d.tar.xz
ddr: imx8m: move PLL init to SoC specific code
The PLL initialization will be different on i.MX9, so move the code to the i.MX8M specific file and a add a function hook to struct dram_controller. Link: https://lore.barebox.org/20231110130028.2123895-5-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx8m/ddr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/soc/imx8m/ddr.h b/include/soc/imx8m/ddr.h
index c89dfe78cf..ec82f3233a 100644
--- a/include/soc/imx8m/ddr.h
+++ b/include/soc/imx8m/ddr.h
@@ -388,6 +388,7 @@ struct dram_controller {
enum ddrc_type ddrc_type;
enum dram_type dram_type;
void (*get_trained_CDD)(struct dram_controller *dram, u32 fsp);
+ void (*set_dfi_clk)(struct dram_controller *dram, unsigned int drate_mhz);
};
extern struct dram_timing_info dram_timing;
@@ -458,7 +459,6 @@ void dram_config_save(struct dram_timing_info *info, unsigned long base);
/* utils function for ddr phy training */
int wait_ddrphy_training_complete(void);
-void ddrphy_init_set_dfi_clk(unsigned int drate, enum ddrc_type ddrc_type);
void ddrphy_init_read_msg_block(enum fw_type fw_type);
#define reg32_write(a, v) writel(v, a)