Chandan Nath | 7d74410 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 1 | /* |
| 2 | * evm.c |
| 3 | * |
| 4 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation version 2. |
| 9 | * |
| 10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 11 | * kind, whether express or implied; without even the implied warranty |
| 12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #include <common.h> |
| 17 | #include <asm/arch/cpu.h> |
| 18 | #include <asm/arch/hardware.h> |
| 19 | #include "common_def.h" |
| 20 | #include <serial.h> |
| 21 | |
| 22 | DECLARE_GLOBAL_DATA_PTR; |
| 23 | |
| 24 | #define UART_RESET (0x1 << 1) |
| 25 | #define UART_CLK_RUNNING_MASK 0x1 |
| 26 | #define UART_SMART_IDLE_EN (0x1 << 0x3) |
| 27 | |
| 28 | /* |
| 29 | * Basic board specific setup |
| 30 | */ |
| 31 | int init_basic_setup(void) |
| 32 | { |
| 33 | /* Initialize the Timer */ |
| 34 | init_timer(); |
| 35 | |
| 36 | /* address of boot parameters */ |
| 37 | gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100; |
| 38 | |
| 39 | return 0; |
| 40 | } |
| 41 | |
| 42 | int board_init(void) |
| 43 | { |
| 44 | enable_uart0_pin_mux(); |
| 45 | init_basic_setup(); |
| 46 | |
| 47 | return 0; |
| 48 | } |