Lokesh Vutla | faa680f | 2013-07-30 11:36:27 +0530 | [diff] [blame^] | 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/sys_proto.h> |
| 14 | #include <asm/arch/mux.h> |
| 15 | #include "board.h" |
| 16 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
| 19 | #ifdef CONFIG_SPL_BUILD |
| 20 | |
| 21 | const struct dpll_params dpll_ddr = { |
| 22 | 266, OSC-1, 1, -1, -1, -1, -1}; |
| 23 | |
| 24 | const struct dpll_params *get_dpll_ddr_params(void) |
| 25 | { |
| 26 | return &dpll_ddr; |
| 27 | } |
| 28 | |
| 29 | void set_uart_mux_conf(void) |
| 30 | { |
| 31 | enable_uart0_pin_mux(); |
| 32 | } |
| 33 | |
| 34 | void set_mux_conf_regs(void) |
| 35 | { |
| 36 | enable_board_pin_mux(); |
| 37 | } |
| 38 | |
| 39 | void sdram_init(void) |
| 40 | { |
| 41 | } |
| 42 | #endif |
| 43 | |
| 44 | int 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 |
| 52 | int board_late_init(void) |
| 53 | { |
| 54 | return 0; |
| 55 | } |
| 56 | #endif |