]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
Merge branch 'master' of git://git.denx.de/u-boot-x86
[people/ms/u-boot.git] / board / xilinx / ppc405-generic / xilinx_ppc405_generic.c
1 /*
2 * (C) Copyright 2008
3 * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
4 * This work has been supported by: QTechnology http://qtec.com/
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9 #include <config.h>
10 #include <common.h>
11 #include <asm/processor.h>
12
13 ulong get_PCI_freq(void)
14 {
15 return 0;
16 }
17
18 int checkboard(void)
19 {
20 puts("Xilinx PPC405 Generic Board\n");
21 return 0;
22 }
23
24 phys_size_t initdram(int board_type)
25 {
26 return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
27 CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
28 }
29
30 void get_sys_info(sys_info_t *sys_info)
31 {
32 sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
33 sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
34 sys_info->freqPCI = 0;
35
36 return;
37 }
38
39 int get_serial_clock(void){
40 return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
41 }