blob: be6b4dc5b9ad05c356efdcdcb7f8d0a09f5cf137 [file] [log] [blame]
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001/*
2 * (C) Copyright 2008
Ricardo Ribalda Delgado5712d042016-01-26 11:24:08 +01003 * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02004 * This work has been supported by: QTechnology http://qtec.com/
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02007*/
8
9#include <config.h>
10#include <common.h>
11#include <asm/processor.h>
12
Simon Glass39f90ba2017-03-31 08:40:25 -060013DECLARE_GLOBAL_DATA_PTR;
14
Ricardo Ribalda Delgado53b7e9f2016-01-26 11:24:20 +010015ulong get_PCI_freq(void)
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020016{
17 return 0;
18}
19
Ricardo Ribalda Delgado53b7e9f2016-01-26 11:24:20 +010020int checkboard(void)
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020021{
22 puts("Xilinx PPC405 Generic Board\n");
23 return 0;
24}
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020025
Simon Glassd35f3382017-04-06 12:47:05 -060026int dram_init(void)
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020027{
Simon Glass39f90ba2017-03-31 08:40:25 -060028 gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020029 CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
Simon Glass39f90ba2017-03-31 08:40:25 -060030
31 return 0;
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020032}
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020033
Ricardo Ribalda Delgado53b7e9f2016-01-26 11:24:20 +010034void get_sys_info(sys_info_t *sys_info)
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020035{
Ricardo Ribalda Delgado53b7e9f2016-01-26 11:24:20 +010036 sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
37 sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
38 sys_info->freqPCI = 0;
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020039
40 return;
41}
Ricardo Ribalda Delgado4f40e132016-01-26 11:24:19 +010042
43int get_serial_clock(void){
44 return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
45}