mxs: Rename 'mx28_dram_init' to 'mxs_dram_init'
The DRAM initialization, after SPL has complete, is exactly the same for all mxs SoCs so we should name it accordinly. The following boards has been changed: * apx4devkit * m28evk * mx28evk * sc_sps_1 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
This commit is contained in:
parent
89ce53ffcd
commit
72f8ebf17e
@ -320,13 +320,13 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
|
||||
}
|
||||
#endif
|
||||
|
||||
int mx28_dram_init(void)
|
||||
int mxs_dram_init(void)
|
||||
{
|
||||
struct mxs_spl_data *data = (struct mxs_spl_data *)
|
||||
((CONFIG_SYS_TEXT_BASE - sizeof(struct mxs_spl_data)) & ~0xf);
|
||||
|
||||
if (data->mem_dram_size == 0) {
|
||||
printf("MX28:\n"
|
||||
printf("MXS:\n"
|
||||
"Error, the RAM size passed up from SPL is 0!\n");
|
||||
hang();
|
||||
}
|
||||
|
@ -69,6 +69,6 @@ struct mxs_spl_data {
|
||||
uint32_t mem_dram_size;
|
||||
};
|
||||
|
||||
int mx28_dram_init(void);
|
||||
int mxs_dram_init(void);
|
||||
|
||||
#endif /* __SYS_PROTO_H__ */
|
||||
|
@ -55,7 +55,7 @@ int board_early_init_f(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
return mx28_dram_init();
|
||||
return mxs_dram_init();
|
||||
}
|
||||
|
||||
int board_init(void)
|
||||
|
@ -72,7 +72,7 @@ int board_init(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
return mx28_dram_init();
|
||||
return mxs_dram_init();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_MMC
|
||||
|
@ -64,7 +64,7 @@ int board_early_init_f(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
return mx28_dram_init();
|
||||
return mxs_dram_init();
|
||||
}
|
||||
|
||||
int board_init(void)
|
||||
|
@ -72,7 +72,7 @@ int board_init(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
return mx28_dram_init();
|
||||
return mxs_dram_init();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_MMC
|
||||
|
Loading…
Reference in New Issue
Block a user