1 /** 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 16 static const struct pl01x_serial_platdata serial0 = { 17 .base = CONFIG_SYS_SERIAL0, 18 .type = TYPE_PL011, 19 .clock = 0, 20 .skip_init = true, 21 }; 22 23 U_BOOT_DEVICE(thunderx_serial0) = { 24 .name = "serial_pl01x", 25 .platdata = &serial0, 26 }; 27 28 static const struct pl01x_serial_platdata serial1 = { 29 .base = CONFIG_SYS_SERIAL1, 30 .type = TYPE_PL011, 31 .clock = 0, 32 .skip_init = true, 33 }; 34 35 U_BOOT_DEVICE(thunderx_serial1) = { 36 .name = "serial_pl01x", 37 .platdata = &serial1, 38 }; 39 #endif 40 41 DECLARE_GLOBAL_DATA_PTR; 42 43 int board_init(void) 44 { 45 return 0; 46 } 47 48 int timer_init(void) 49 { 50 return 0; 51 } 52 53 /* 54 * Board specific reset that is system reset. 55 */ 56 void reset_cpu(ulong addr) 57 { 58 } 59 60 /* 61 * Board specific ethernet initialization routine. 62 */ 63 int board_eth_init(bd_t *bis) 64 { 65 int rc = 0; 66 67 return rc; 68 } 69 70 #ifdef CONFIG_PCI 71 void pci_init_board(void) 72 { 73 printf("DEBUG: PCI Init TODO *****\n"); 74 } 75 #endif 76