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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Raphael Assenat | 843a7ee | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 10 | */ |
| 11 | #include <common.h> |
| 12 | #include <netdev.h> |
| 13 | #include <asm/io.h> |
| 14 | #include <asm/arch/mem.h> |
| 15 | #include <asm/arch/mux.h> |
| 16 | #include <asm/arch/sys_proto.h> |
| 17 | #include <asm/arch/emac_defs.h> |
| 18 | #include <asm/gpio.h> |
| 19 | #include <i2c.h> |
| 20 | #include <crc.h> |
| 21 | #include <asm/mach-types.h> |
| 22 | #include "eco5pk.h" |
| 23 | |
| 24 | DECLARE_GLOBAL_DATA_PTR; |
| 25 | |
| 26 | /* |
| 27 | * Routine: board_init |
| 28 | * Description: Early hardware init. |
| 29 | */ |
| 30 | int board_init(void) |
| 31 | { |
| 32 | gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ |
| 33 | gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); |
| 34 | |
| 35 | gpio_request(30, "RESOUT"); |
| 36 | gpio_direction_output(30, 1); |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | /* |
| 41 | * Routine: set_muxconf_regs |
| 42 | * Description: Setting up the configuration Mux registers specific to the |
| 43 | * hardware. Many pins need to be moved from protect to primary |
| 44 | * mode. |
| 45 | */ |
| 46 | void set_muxconf_regs(void) |
| 47 | { |
| 48 | MUX_ECO5_PK(); |
| 49 | } |