Enric Balletbo i Serra | 1a832dc | 2010-10-14 16:57:39 -0400 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 |
| 3 | * ISEE 2007 SL, <www.iseebcn.com> |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | #include <common.h> |
| 24 | #include <twl4030.h> |
| 25 | #include <asm/io.h> |
| 26 | #include <asm/arch/mem.h> |
Enric Balletbo i Serra | ac657c4 | 2010-11-04 15:34:37 -0400 | [diff] [blame] | 27 | #include <asm/arch/mmc_host_def.h> |
Enric Balletbo i Serra | 1a832dc | 2010-10-14 16:57:39 -0400 | [diff] [blame] | 28 | #include <asm/arch/mux.h> |
| 29 | #include <asm/arch/sys_proto.h> |
| 30 | #include <asm/mach-types.h> |
| 31 | #include "igep0030.h" |
| 32 | |
| 33 | /* |
| 34 | * Routine: board_init |
| 35 | * Description: Early hardware init. |
| 36 | */ |
| 37 | int board_init(void) |
| 38 | { |
| 39 | DECLARE_GLOBAL_DATA_PTR; |
| 40 | |
| 41 | gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ |
| 42 | /* board id for Linux */ |
| 43 | gd->bd->bi_arch_number = MACH_TYPE_IGEP0030; |
| 44 | /* boot param addr */ |
| 45 | gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); |
| 46 | |
| 47 | return 0; |
| 48 | } |
| 49 | |
Enric Balletbo i Serra | ac657c4 | 2010-11-04 15:34:37 -0400 | [diff] [blame] | 50 | #ifdef CONFIG_GENERIC_MMC |
| 51 | int board_mmc_init(bd_t *bis) |
| 52 | { |
| 53 | omap_mmc_init(0); |
| 54 | return 0; |
| 55 | } |
| 56 | #endif |
| 57 | |
Enric Balletbo i Serra | 1a832dc | 2010-10-14 16:57:39 -0400 | [diff] [blame] | 58 | /* |
| 59 | * Routine: misc_init_r |
| 60 | * Description: Configure board specific parts |
| 61 | */ |
| 62 | int misc_init_r(void) |
| 63 | { |
| 64 | twl4030_power_init(); |
| 65 | |
| 66 | dieid_num_r(); |
| 67 | |
| 68 | return 0; |
| 69 | } |
| 70 | |
| 71 | /* |
| 72 | * Routine: set_muxconf_regs |
| 73 | * Description: Setting up the configuration Mux registers specific to the |
| 74 | * hardware. Many pins need to be moved from protect to primary |
| 75 | * mode. |
| 76 | */ |
| 77 | void set_muxconf_regs(void) |
| 78 | { |
| 79 | MUX_DEFAULT(); |
| 80 | } |