blob: 486374e982b5b6c511090ba806bfd07f86677323 [file] [log] [blame]
Sergey Temerkhanov746f9852015-10-14 09:55:50 -07001/**
2 * (C) Copyright 2014, Cavium Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5**/
6
7#include <common.h>
8#include <malloc.h>
9#include <errno.h>
10#include <linux/compiler.h>
11
12#if !CONFIG_IS_ENABLED(OF_CONTROL)
13#include <dm/platdata.h>
14#include <dm/platform_data/serial_pl01x.h>
15
16static const struct pl01x_serial_platdata serial0 = {
17 .base = CONFIG_SYS_SERIAL0,
18 .type = TYPE_PL011,
19 .clock = 0,
20 .skip_init = true,
21};
22
23U_BOOT_DEVICE(thunderx_serial0) = {
24 .name = "serial_pl01x",
25 .platdata = &serial0,
26};
27
28static const struct pl01x_serial_platdata serial1 = {
29 .base = CONFIG_SYS_SERIAL1,
30 .type = TYPE_PL011,
31 .clock = 0,
32 .skip_init = true,
33};
34
35U_BOOT_DEVICE(thunderx_serial1) = {
36 .name = "serial_pl01x",
37 .platdata = &serial1,
38};
39#endif
40
41DECLARE_GLOBAL_DATA_PTR;
42
43int board_init(void)
44{
45 return 0;
46}
47
48int timer_init(void)
49{
50 return 0;
51}
52
53/*
54 * Board specific reset that is system reset.
55 */
56void reset_cpu(ulong addr)
57{
58}
59
60/*
61 * Board specific ethernet initialization routine.
62 */
63int board_eth_init(bd_t *bis)
64{
65 int rc = 0;
66
67 return rc;
68}
69
70#ifdef CONFIG_PCI
71void pci_init_board(void)
72{
73 printf("DEBUG: PCI Init TODO *****\n");
74}
75#endif