mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
|
/*
|
||
|
* (C) Copyright 2011 Freescale Semiconductor, Inc.
|
||
|
*
|
||
|
* Author: Fabio Estevam <fabio.estevam@freescale.com>
|
||
|
*
|
||
|
* See file CREDITS for list of people who contributed to this
|
||
|
* project.
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of
|
||
|
* the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
|
#include <asm/io.h>
|
||
|
#include <asm/arch/imx-regs.h>
|
||
|
#include <asm/arch/imx25-pinmux.h>
|
||
|
#include <asm/arch/sys_proto.h>
|
||
|
|
||
|
DECLARE_GLOBAL_DATA_PTR;
|
||
|
|
||
|
int dram_init(void)
|
||
|
{
|
||
|
/* dram_init must store complete ramsize in gd->ram_size */
|
||
|
gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
|
||
|
PHYS_SDRAM_1_SIZE);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int board_early_init_f(void)
|
||
|
{
|
||
|
mx25_uart1_init_pins();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int board_init(void)
|
||
|
{
|
||
|
/* address of boot parameters */
|
||
|
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int checkboard(void)
|
||
|
{
|
||
|
puts("Board: MX25PDK\n");
|
||
|
|
||
|
return 0;
|
||
|
}
|