blob: 995c262b6c75e3daac38b06791177eea48e66b7b [file] [log] [blame]
wdenk4ec3a7f2004-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 Denk1a459662013-07-08 09:37:19 +020012 * SPDX-License-Identifier: GPL-2.0+
wdenk4ec3a7f2004-09-28 16:44:41 +000013 */
14
15#include <common.h>
Ben Warren7194ab82009-10-04 22:37:03 -070016#include <netdev.h>
Marek Vasut4438a452011-11-26 11:17:32 +010017#include <asm/arch/pxa.h>
wdenk4ec3a7f2004-09-28 16:44:41 +000018
Wolfgang Denkd87080b2006-03-31 18:32:53 +020019DECLARE_GLOBAL_DATA_PTR;
wdenk4ec3a7f2004-09-28 16:44:41 +000020
21/*
22 * Miscelaneous platform dependent initialisations
23 */
24
25int board_init (void)
26{
Marek Vasut1123d412010-10-20 21:54:19 +020027 /* We have RAM, disable cache */
28 dcache_disable();
29 icache_disable();
wdenk4ec3a7f2004-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 Vasut1123d412010-10-20 21:54:19 +020047int dram_init(void)
48{
Marek Vasutf68d2a22011-11-26 11:18:57 +010049 pxa2xx_dram_init();
Marek Vasut1123d412010-10-20 21:54:19 +020050 gd->ram_size = PHYS_SDRAM_1_SIZE;
51 return 0;
52}
wdenk4ec3a7f2004-09-28 16:44:41 +000053
Marek Vasut1123d412010-10-20 21:54:19 +020054void dram_init_banksize(void)
wdenk4ec3a7f2004-09-28 16:44:41 +000055{
wdenk4ec3a7f2004-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;
wdenk4ec3a7f2004-09-28 16:44:41 +000058}
Ben Warren7194ab82009-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