]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/davinci/dm6467evm/dm6467evm.c
TI DaVinci DM646x: Enable NAND on DM6467 EVM
[people/ms/u-boot.git] / board / davinci / dm6467evm / dm6467evm.c
1 /*
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>
21 #include <nand.h>
22 #include <asm/arch/nand_defs.h>
23
24 DECLARE_GLOBAL_DATA_PTR;
25
26 int 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 }
33
34 #ifdef CONFIG_NAND_DAVINCI
35 int board_nand_init(struct nand_chip *nand)
36 {
37 davinci_nand_init(nand);
38
39 return 0;
40 }
41 #endif