2 * (C) Copyright 2014, Cavium Inc.
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <linux/compiler.h>
12 #include <cavium/atf.h>
14 #if !CONFIG_IS_ENABLED(OF_CONTROL)
15 #include <dm/platdata.h>
16 #include <dm/platform_data/serial_pl01x.h>
18 static const struct pl01x_serial_platdata serial0 = {
19 .base = CONFIG_SYS_SERIAL0,
25 U_BOOT_DEVICE(thunderx_serial0) = {
26 .name = "serial_pl01x",
30 static const struct pl01x_serial_platdata serial1 = {
31 .base = CONFIG_SYS_SERIAL1,
37 U_BOOT_DEVICE(thunderx_serial1) = {
38 .name = "serial_pl01x",
43 DECLARE_GLOBAL_DATA_PTR;
57 ssize_t node_count = atf_node_count();
61 printf("Initializing\nNodes in system: %zd\n", node_count);
65 for (node = 0; node < node_count; node++) {
66 dram_size = atf_dram_size(node);
67 printf("Node %d: %zd MBytes of DRAM\n", node, dram_size >> 20);
68 gd->ram_size += dram_size;
71 gd->ram_size -= MEM_BASE;
73 *(unsigned long *)CPU_RELEASE_ADDR = 0;
81 * Board specific reset that is system reset.
83 void reset_cpu(ulong addr)
88 * Board specific ethernet initialization routine.
90 int board_eth_init(bd_t *bis)
98 void pci_init_board(void)
100 printf("DEBUG: PCI Init TODO *****\n");