blob: 994a9aae9fa701ce4a6d0ff02c3af7c527cdba63 [file] [log] [blame]
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -04001/*
2 * Copyright (C) 2009 Texas Instruments Incorporated
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18
19#include <common.h>
20#include <asm/io.h>
Sandeep Paulrajc1ee63c2009-11-21 18:08:49 -050021#include <nand.h>
22#include <asm/arch/nand_defs.h>
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -040023
24DECLARE_GLOBAL_DATA_PTR;
25
26int board_init(void)
27{
28 gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;
29 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
30
31 return 0;
32}
Sandeep Paulrajc1ee63c2009-11-21 18:08:49 -050033
34#ifdef CONFIG_NAND_DAVINCI
35int board_nand_init(struct nand_chip *nand)
36{
37 davinci_nand_init(nand);
38
39 return 0;
40}
41#endif