2008-10-21 16:29:46 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2008
|
2016-01-26 10:24:08 +00:00
|
|
|
* Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
|
2008-10-21 16:29:46 +00:00
|
|
|
* This work has been supported by: QTechnology http://qtec.com/
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-10-21 16:29:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/processor.h>
|
|
|
|
|
2017-03-31 14:40:25 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2016-01-26 10:24:20 +00:00
|
|
|
ulong get_PCI_freq(void)
|
2008-10-21 16:29:46 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-01-26 10:24:20 +00:00
|
|
|
int checkboard(void)
|
2008-10-21 16:29:46 +00:00
|
|
|
{
|
|
|
|
puts("Xilinx PPC405 Generic Board\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-03-31 14:40:25 +00:00
|
|
|
int initdram(void)
|
2008-10-21 16:29:46 +00:00
|
|
|
{
|
2017-03-31 14:40:25 +00:00
|
|
|
gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
|
2008-10-21 16:29:46 +00:00
|
|
|
CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
|
2017-03-31 14:40:25 +00:00
|
|
|
|
|
|
|
return 0;
|
2008-10-21 16:29:46 +00:00
|
|
|
}
|
|
|
|
|
2016-01-26 10:24:20 +00:00
|
|
|
void get_sys_info(sys_info_t *sys_info)
|
2008-10-21 16:29:46 +00:00
|
|
|
{
|
2016-01-26 10:24:20 +00:00
|
|
|
sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
|
|
|
|
sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
|
|
|
|
sys_info->freqPCI = 0;
|
2008-10-21 16:29:46 +00:00
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2016-01-26 10:24:19 +00:00
|
|
|
|
|
|
|
int get_serial_clock(void){
|
|
|
|
return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
|
|
|
|
}
|