diff options
author | Raphael Assenat <raph@8d.com> | 2012-10-22 05:23:46 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-30 15:28:06 -0700 |
commit | 843a7ee8c4b1e47fae41268d6b95306f7e6408f5 (patch) | |
tree | df00fb8f8242d7e07de587bb450c41be806c72ea /board/8dtech/eco5pk/eco5pk.c | |
parent | ed407be53e1e8f0be90d5723ca71ab1c37e2eed8 (diff) | |
download | u-boot-imx-843a7ee8c4b1e47fae41268d6b95306f7e6408f5.zip u-boot-imx-843a7ee8c4b1e47fae41268d6b95306f7e6408f5.tar.gz u-boot-imx-843a7ee8c4b1e47fae41268d6b95306f7e6408f5.tar.bz2 |
eco5pk: Add new board and default config
Signed-off-by: Raphael Assenat <raph@8d.com>
[trini: Squash boards.cfg / MAINTAINERS change into main patch]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/8dtech/eco5pk/eco5pk.c')
-rw-r--r-- | board/8dtech/eco5pk/eco5pk.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/board/8dtech/eco5pk/eco5pk.c b/board/8dtech/eco5pk/eco5pk.c new file mode 100644 index 0000000..cdb5b6f --- /dev/null +++ b/board/8dtech/eco5pk/eco5pk.c @@ -0,0 +1,61 @@ +/* + * eco5pk.c - board file for 8D Technology's AM3517 based eco5pk board + * + * Based on am3517evm.c + * + * Copyright (C) 2011-2012 8D Technologies inc. + * Copyright (C) 2009 Texas Instruments Incorporated + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +#include <common.h> +#include <netdev.h> +#include <asm/io.h> +#include <asm/arch/mem.h> +#include <asm/arch/mux.h> +#include <asm/arch/sys_proto.h> +#include <asm/arch/emac_defs.h> +#include <asm/gpio.h> +#include <i2c.h> +#include <crc.h> +#include <asm/mach-types.h> +#include "eco5pk.h" + +DECLARE_GLOBAL_DATA_PTR; + +/* + * Routine: board_init + * Description: Early hardware init. + */ +int board_init(void) +{ + gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ + gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); + + gpio_request(30, "RESOUT"); + gpio_direction_output(30, 1); + return 0; +} + +/* + * Routine: set_muxconf_regs + * Description: Setting up the configuration Mux registers specific to the + * hardware. Many pins need to be moved from protect to primary + * mode. + */ +void set_muxconf_regs(void) +{ + MUX_ECO5_PK(); +} |