Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 |
Ricardo Ribalda Delgado | 5712d04 | 2016-01-26 11:24:08 +0100 | [diff] [blame] | 3 | * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 4 | * This work has been supported by: QTechnology http://qtec.com/ |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <config.h> |
| 10 | #include <common.h> |
| 11 | #include <asm/processor.h> |
| 12 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 13 | ulong get_PCI_freq(void) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 18 | int checkboard(void) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 19 | { |
| 20 | puts("Xilinx PPC405 Generic Board\n"); |
| 21 | return 0; |
| 22 | } |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 23 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 24 | phys_size_t initdram(int board_type) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 25 | { |
| 26 | return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, |
| 27 | CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024); |
| 28 | } |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 29 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 30 | void get_sys_info(sys_info_t *sys_info) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 31 | { |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 32 | sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ; |
| 33 | sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ; |
| 34 | sys_info->freqPCI = 0; |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 35 | |
| 36 | return; |
| 37 | } |
Ricardo Ribalda Delgado | 4f40e13 | 2016-01-26 11:24:19 +0100 | [diff] [blame] | 38 | |
| 39 | int get_serial_clock(void){ |
| 40 | return XPAR_UARTNS550_0_CLOCK_FREQ_HZ; |
| 41 | } |