Raphael Assenat | 843a7ee | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * eco5pk.c - board file for 8D Technology's AM3517 based eco5pk board |
| 3 | * |
| 4 | * Based on am3517evm.c |
| 5 | * |
| 6 | * Copyright (C) 2011-2012 8D Technologies inc. |
| 7 | * Copyright (C) 2009 Texas Instruments Incorporated |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (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 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | */ |
| 23 | #include <common.h> |
| 24 | #include <netdev.h> |
| 25 | #include <asm/io.h> |
| 26 | #include <asm/arch/mem.h> |
| 27 | #include <asm/arch/mux.h> |
| 28 | #include <asm/arch/sys_proto.h> |
| 29 | #include <asm/arch/emac_defs.h> |
| 30 | #include <asm/gpio.h> |
| 31 | #include <i2c.h> |
| 32 | #include <crc.h> |
| 33 | #include <asm/mach-types.h> |
| 34 | #include "eco5pk.h" |
| 35 | |
| 36 | DECLARE_GLOBAL_DATA_PTR; |
| 37 | |
| 38 | /* |
| 39 | * Routine: board_init |
| 40 | * Description: Early hardware init. |
| 41 | */ |
| 42 | int board_init(void) |
| 43 | { |
| 44 | gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ |
| 45 | gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); |
| 46 | |
| 47 | gpio_request(30, "RESOUT"); |
| 48 | gpio_direction_output(30, 1); |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | /* |
| 53 | * Routine: set_muxconf_regs |
| 54 | * Description: Setting up the configuration Mux registers specific to the |
| 55 | * hardware. Many pins need to be moved from protect to primary |
| 56 | * mode. |
| 57 | */ |
| 58 | void set_muxconf_regs(void) |
| 59 | { |
| 60 | MUX_ECO5_PK(); |
| 61 | } |