blob: f5b9100b82ad677abdca621b1a13937cd4f687c8 [file] [log] [blame]
Lokesh Vutlafbf27282013-07-30 11:36:27 +05301/*
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/sys_proto.h>
14#include <asm/arch/mux.h>
15#include "board.h"
16
17DECLARE_GLOBAL_DATA_PTR;
18
19#ifdef CONFIG_SPL_BUILD
20
21const struct dpll_params dpll_ddr = {
22 266, OSC-1, 1, -1, -1, -1, -1};
23
24const struct dpll_params *get_dpll_ddr_params(void)
25{
26 return &dpll_ddr;
27}
28
29void set_uart_mux_conf(void)
30{
31 enable_uart0_pin_mux();
32}
33
34void set_mux_conf_regs(void)
35{
36 enable_board_pin_mux();
37}
38
39void sdram_init(void)
40{
41}
42#endif
43
44int board_init(void)
45{
46 gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
47
48 return 0;
49}
50
51#ifdef CONFIG_BOARD_LATE_INIT
52int board_late_init(void)
53{
54 return 0;
55}
56#endif