mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
at91: rename mem_init() to at91_mem_init()
The AT91-based platforms have a mem_init() function declared in arch/arm/mach-at91/include/mach/at91_common.h and implemented in various places. In preparation of the introduction of the lwIP networking library which also has a global mem_init() function, rename the AT91 one to at91_mem_init(). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Hari Prasath Gujulan Elango <hari.prasathge@microchip.com>
This commit is contained in:
parent
9aa7e531f6
commit
effe97d49c
@ -28,7 +28,7 @@ void at91_pllb_init(u32 pllar);
|
||||
void at91_mck_init(u32 mckr);
|
||||
void at91_mck_init_down(u32 mckr);
|
||||
void at91_pmc_init(void);
|
||||
void mem_init(void);
|
||||
void at91_mem_init(void);
|
||||
void at91_phy_reset(void);
|
||||
void at91_sdram_hw_init(void);
|
||||
void at91_mck_init(u32 mckr);
|
||||
|
@ -142,7 +142,7 @@ void board_init_f(ulong dummy)
|
||||
preloader_console_init();
|
||||
#endif
|
||||
|
||||
mem_init();
|
||||
at91_mem_init();
|
||||
|
||||
at91_spl_board_init();
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ void board_init_f(ulong dummy)
|
||||
|
||||
board_early_init_f();
|
||||
|
||||
mem_init();
|
||||
at91_mem_init();
|
||||
|
||||
ret = spl_init();
|
||||
if (ret) {
|
||||
|
@ -125,7 +125,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
|
||||
|
@ -167,7 +167,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX;
|
||||
|
@ -181,7 +181,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX;
|
||||
|
@ -146,7 +146,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc)
|
||||
(8 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET));
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -208,7 +208,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc)
|
||||
ddrc->cal_mr4 |= ATMEL_MPDDRC_CAL_MR4_MR4R(0xFFFE);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -180,7 +180,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc)
|
||||
(7 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET));
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -146,7 +146,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc)
|
||||
7 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -175,7 +175,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
|
||||
|
@ -241,7 +241,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
|
||||
|
@ -184,7 +184,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
|
||||
|
@ -169,7 +169,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
const struct atmel_mpddr *mpddr = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -182,7 +182,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc)
|
||||
(8 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET));
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC;
|
||||
|
@ -110,7 +110,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX;
|
||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
||||
|
@ -187,7 +187,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2)
|
||||
2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct atmel_mpddrc_config ddr2;
|
||||
|
||||
|
@ -238,7 +238,7 @@ void at91_spl_board_init(void)
|
||||
| AT91_SDRAMC_TRP_VAL(2) | AT91_SDRAMC_TRCD_VAL(2) \
|
||||
| AT91_SDRAMC_TRAS_VAL(5) | AT91_SDRAMC_TXSR_VAL(8))
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
struct at91_matrix *ma = (struct at91_matrix *)ATMEL_BASE_MATRIX;
|
||||
struct at91_port *port = (struct at91_port *)ATMEL_BASE_PIOC;
|
||||
|
@ -177,7 +177,7 @@ void sdramc_configure(unsigned int mask)
|
||||
sdramc_initialize(ATMEL_BASE_CS1, &setting);
|
||||
}
|
||||
|
||||
void mem_init(void)
|
||||
void at91_mem_init(void)
|
||||
{
|
||||
unsigned int ram_size = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user