]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/lubbock/lubbock.c
nand: remove CONFIG_SYS_NAND_PAGE_SIZE
[karo-tx-uboot.git] / board / lubbock / lubbock.c
1 /*
2  * (C) Copyright 2002
3  * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
4  *
5  * (C) Copyright 2002
6  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
7  * Marius Groeger <mgroeger@sysgo.de>
8  *
9  * SPDX-License-Identifier:     GPL-2.0+
10  */
11
12 #include <common.h>
13 #include <netdev.h>
14 #include <asm/arch/pxa.h>
15 #include <asm/arch/pxa-regs.h>
16 #include <asm/arch/regs-mmc.h>
17 #include <asm/io.h>
18
19 DECLARE_GLOBAL_DATA_PTR;
20
21 /*
22  * Miscelaneous platform dependent initialisations
23  */
24
25 int board_init (void)
26 {
27         /* We have RAM, disable cache */
28         dcache_disable();
29         icache_disable();
30
31         /* arch number of Lubbock-Board */
32         gd->bd->bi_arch_number = MACH_TYPE_LUBBOCK;
33
34         /* adress of boot parameters */
35         gd->bd->bi_boot_params = 0xa0000100;
36
37         /* Configure GPIO6 and GPIO8 as OUT, AF1. */
38         setbits_le32(GPDR0, (1 << 6) | (1 << 8));
39         clrsetbits_le32(GAFR0_L, (3 << 12) | (3 << 16), (1 << 12) | (1 << 16));
40
41         return 0;
42 }
43
44 #ifdef CONFIG_CMD_MMC
45 int board_mmc_init(bd_t *bis)
46 {
47         pxa_mmc_register(0);
48         return 0;
49 }
50 #endif
51
52 int board_late_init(void)
53 {
54         setenv("stdout", "serial");
55         setenv("stderr", "serial");
56         return 0;
57 }
58
59 int dram_init(void)
60 {
61         pxa2xx_dram_init();
62         gd->ram_size = PHYS_SDRAM_1_SIZE;
63         return 0;
64 }
65
66 void dram_init_banksize(void)
67 {
68         gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
69         gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
70 }
71
72 #ifdef CONFIG_CMD_NET
73 int board_eth_init(bd_t *bis)
74 {
75         int rc = 0;
76 #ifdef CONFIG_LAN91C96
77         rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
78 #endif
79         return rc;
80 }
81 #endif