]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/armltd/vexpress64/vexpress64.c
karo: fdt: fix panel-dpi support
[karo-tx-uboot.git] / board / armltd / vexpress64 / vexpress64.c
1 /*
2  * (C) Copyright 2013
3  * David Feng <fenghua@phytium.com.cn>
4  * Sharma Bhupesh <bhupesh.sharma@freescale.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8 #include <common.h>
9 #include <malloc.h>
10 #include <errno.h>
11 #include <netdev.h>
12 #include <asm/io.h>
13 #include <linux/compiler.h>
14
15 DECLARE_GLOBAL_DATA_PTR;
16
17 static const struct pl01x_serial_platdata serial_platdata = {
18         .base = V2M_UART0,
19         .type = TYPE_PL011,
20         .clock = CONFIG_PL011_CLOCK,
21 };
22
23 U_BOOT_DEVICE(vexpress_serials) = {
24         .name = "serial_pl01x",
25         .platdata = &serial_platdata,
26 };
27
28 int board_init(void)
29 {
30         return 0;
31 }
32
33 int dram_init(void)
34 {
35         gd->ram_size = PHYS_SDRAM_1_SIZE;
36         return 0;
37 }
38
39 /*
40  * Board specific reset that is system reset.
41  */
42 void reset_cpu(ulong addr)
43 {
44 }
45
46 /*
47  * Board specific ethernet initialization routine.
48  */
49 int board_eth_init(bd_t *bis)
50 {
51         int rc = 0;
52 #ifdef CONFIG_SMC91111
53         rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
54 #endif
55 #ifdef CONFIG_SMC911X
56         rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
57 #endif
58         return rc;
59 }