]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
drivers, block: remove sil680 driver
[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 DECLARE_GLOBAL_DATA_PTR;
14
15 ulong get_PCI_freq(void)
16 {
17 return 0;
18 }
19
20 int checkboard(void)
21 {
22 puts("Xilinx PPC405 Generic Board\n");
23 return 0;
24 }
25
26 int dram_init(void)
27 {
28 gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
29 CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
30
31 return 0;
32 }
33
34 void get_sys_info(sys_info_t *sys_info)
35 {
36 sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
37 sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
38 sys_info->freqPCI = 0;
39
40 return;
41 }
42
43 int get_serial_clock(void){
44 return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
45 }