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 | |
Simon Glass | 39f90ba | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 15 | ulong get_PCI_freq(void) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 16 | { |
| 17 | return 0; |
| 18 | } |
| 19 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 20 | int checkboard(void) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 21 | { |
| 22 | puts("Xilinx PPC405 Generic Board\n"); |
| 23 | return 0; |
| 24 | } |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 25 | |
Simon Glass | d35f338 | 2017-04-06 12:47:05 -0600 | [diff] [blame] | 26 | int dram_init(void) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 27 | { |
Simon Glass | 39f90ba | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 28 | gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 29 | CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024); |
Simon Glass | 39f90ba | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 30 | |
| 31 | return 0; |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 32 | } |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 33 | |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 34 | void get_sys_info(sys_info_t *sys_info) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 35 | { |
Ricardo Ribalda Delgado | 53b7e9f | 2016-01-26 11:24:20 +0100 | [diff] [blame] | 36 | sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ; |
| 37 | sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ; |
| 38 | sys_info->freqPCI = 0; |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 39 | |
| 40 | return; |
| 41 | } |
Ricardo Ribalda Delgado | 4f40e13 | 2016-01-26 11:24:19 +0100 | [diff] [blame] | 42 | |
| 43 | int get_serial_clock(void){ |
| 44 | return XPAR_UARTNS550_0_CLOCK_FREQ_HZ; |
| 45 | } |