blob: dcbd4835b39779753d63c38366925e81cec259a4 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Raphael Assenat843a7ee2012-10-22 05:23:46 +00002/*
3 * eco5pk.c - board file for 8D Technology's AM3517 based eco5pk board
4 *
5 * Based on am3517evm.c
6 *
7 * Copyright (C) 2011-2012 8D Technologies inc.
8 * Copyright (C) 2009 Texas Instruments Incorporated
Raphael Assenat843a7ee2012-10-22 05:23:46 +00009 */
10#include <common.h>
11#include <netdev.h>
12#include <asm/io.h>
13#include <asm/arch/mem.h>
14#include <asm/arch/mux.h>
15#include <asm/arch/sys_proto.h>
16#include <asm/arch/emac_defs.h>
17#include <asm/gpio.h>
18#include <i2c.h>
Philipp Tomsicha740ee92018-11-25 19:22:18 +010019#include <u-boot/crc.h>
Raphael Assenat843a7ee2012-10-22 05:23:46 +000020#include <asm/mach-types.h>
21#include "eco5pk.h"
22
23DECLARE_GLOBAL_DATA_PTR;
24
25/*
26 * Routine: board_init
27 * Description: Early hardware init.
28 */
29int board_init(void)
30{
31 gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
32 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
33
34 gpio_request(30, "RESOUT");
35 gpio_direction_output(30, 1);
36 return 0;
37}
38
39/*
40 * Routine: set_muxconf_regs
41 * Description: Setting up the configuration Mux registers specific to the
42 * hardware. Many pins need to be moved from protect to primary
43 * mode.
44 */
45void set_muxconf_regs(void)
46{
47 MUX_ECO5_PK();
48}