xref: /openbmc/u-boot/board/ti/am43xx/board.c (revision 6496d00f)
1 /*
2  * board.c
3  *
4  * Board functions for TI AM43XX based boards
5  *
6  * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
7  *
8  * SPDX-License-Identifier:	GPL-2.0+
9  */
10 
11 #include <common.h>
12 #include <spl.h>
13 #include <asm/arch/clock.h>
14 #include <asm/arch/sys_proto.h>
15 #include <asm/arch/mux.h>
16 #include "board.h"
17 
18 DECLARE_GLOBAL_DATA_PTR;
19 
20 #ifdef CONFIG_SPL_BUILD
21 
22 const struct dpll_params dpll_ddr = {
23 		-1, -1, -1, -1, -1, -1, -1};
24 
25 const struct dpll_params *get_dpll_ddr_params(void)
26 {
27 	return &dpll_ddr;
28 }
29 
30 void set_uart_mux_conf(void)
31 {
32 	enable_uart0_pin_mux();
33 }
34 
35 void set_mux_conf_regs(void)
36 {
37 	enable_board_pin_mux();
38 }
39 
40 void sdram_init(void)
41 {
42 }
43 #endif
44 
45 int board_init(void)
46 {
47 	gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
48 
49 	return 0;
50 }
51 
52 #ifdef CONFIG_BOARD_LATE_INIT
53 int board_late_init(void)
54 {
55 	return 0;
56 }
57 #endif
58