Sandeep Paulraj | 1830bba | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 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> |
Sandeep Paulraj | dd62a11 | 2009-11-21 18:08:49 -0500 | [diff] [blame] | 21 | #include <nand.h> |
| 22 | #include <asm/arch/nand_defs.h> |
Sandeep Paulraj | 1830bba | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 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 | } |
Sandeep Paulraj | dd62a11 | 2009-11-21 18:08:49 -0500 | [diff] [blame] | 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 |