blob: 6b5d1fca824ff7aeff893dc649f4e7af51f2e76c [file] [log] [blame]
Fabio Estevamadac83a2011-09-06 09:05:43 +00001/*
2 * (C) Copyright 2011 Freescale Semiconductor, Inc.
3 *
4 * Author: Fabio Estevam <fabio.estevam@freescale.com>
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
19
20#include <common.h>
21#include <asm/io.h>
22#include <asm/arch/imx-regs.h>
23#include <asm/arch/imx25-pinmux.h>
24#include <asm/arch/sys_proto.h>
25
26DECLARE_GLOBAL_DATA_PTR;
27
28int dram_init(void)
29{
30 /* dram_init must store complete ramsize in gd->ram_size */
31 gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
32 PHYS_SDRAM_1_SIZE);
33 return 0;
34}
35
36void dram_init_banksize(void)
37{
38 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
39 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
40}
41
42int board_early_init_f(void)
43{
44 mx25_uart1_init_pins();
45
46 return 0;
47}
48
49int board_init(void)
50{
51 gd->bd->bi_arch_number = MACH_TYPE_MX25_3DS;
52 /* address of boot parameters */
53 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
54
55 return 0;
56}
57
58int checkboard(void)
59{
60 puts("Board: MX25PDK\n");
61
62 return 0;
63}