blob: 995c262b6c75e3daac38b06791177eea48e66b7b [file] [log] [blame]
wdenkfa89d7c2004-09-28 16:44:41 +00001/*
2 * (C) Copyright 2004
3 * Vincent Dubey, Xa SA, vincent.dubey@xa-ch.com
4 *
5 * (C) Copyright 2002
6 * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
7 *
8 * (C) Copyright 2002
9 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
10 * Marius Groeger <mgroeger@sysgo.de>
11 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020012 * SPDX-License-Identifier: GPL-2.0+
wdenkfa89d7c2004-09-28 16:44:41 +000013 */
14
15#include <common.h>
Ben Warren0fd6aae2009-10-04 22:37:03 -070016#include <netdev.h>
Marek Vasut71d058b2011-11-26 11:17:32 +010017#include <asm/arch/pxa.h>
wdenkfa89d7c2004-09-28 16:44:41 +000018
Wolfgang Denk6405a152006-03-31 18:32:53 +020019DECLARE_GLOBAL_DATA_PTR;
wdenkfa89d7c2004-09-28 16:44:41 +000020
21/*
22 * Miscelaneous platform dependent initialisations
23 */
24
25int board_init (void)
26{
Marek Vasut7cdb9762010-10-20 21:54:19 +020027 /* We have RAM, disable cache */
28 dcache_disable();
29 icache_disable();
wdenkfa89d7c2004-09-28 16:44:41 +000030
31 /* arch number of xaeniax */
32 gd->bd->bi_arch_number = 585;
33
34 /* adress of boot parameters */
35 gd->bd->bi_boot_params = 0xa0000100;
36
37 return 0;
38}
39
40int board_late_init(void)
41{
42 setenv("stdout", "serial");
43 setenv("stderr", "serial");
44 return 0;
45}
46
Marek Vasut7cdb9762010-10-20 21:54:19 +020047int dram_init(void)
48{
Marek Vasut08341be2011-11-26 11:18:57 +010049 pxa2xx_dram_init();
Marek Vasut7cdb9762010-10-20 21:54:19 +020050 gd->ram_size = PHYS_SDRAM_1_SIZE;
51 return 0;
52}
wdenkfa89d7c2004-09-28 16:44:41 +000053
Marek Vasut7cdb9762010-10-20 21:54:19 +020054void dram_init_banksize(void)
wdenkfa89d7c2004-09-28 16:44:41 +000055{
wdenkfa89d7c2004-09-28 16:44:41 +000056 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
57 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
wdenkfa89d7c2004-09-28 16:44:41 +000058}
Ben Warren0fd6aae2009-10-04 22:37:03 -070059
60#ifdef CONFIG_CMD_NET
61int board_eth_init(bd_t *bis)
62{
63 int rc = 0;
64#ifdef CONFIG_SMC91111
65 rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
66#endif
67 return rc;
68}
69#endif