]> git.ipfire.org Git - people/ms/u-boot.git/blame - 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
CommitLineData
1f4d5326
RR
1/*
2 * (C) Copyright 2008
5b218ae1 3 * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
1f4d5326
RR
4 * This work has been supported by: QTechnology http://qtec.com/
5 *
1a459660 6 * SPDX-License-Identifier: GPL-2.0+
1f4d5326
RR
7*/
8
9#include <config.h>
10#include <common.h>
11#include <asm/processor.h>
12
088454cd
SG
13DECLARE_GLOBAL_DATA_PTR;
14
cd4695da 15ulong get_PCI_freq(void)
1f4d5326
RR
16{
17 return 0;
18}
19
cd4695da 20int checkboard(void)
1f4d5326
RR
21{
22 puts("Xilinx PPC405 Generic Board\n");
23 return 0;
24}
1f4d5326 25
f1683aa7 26int dram_init(void)
1f4d5326 27{
088454cd 28 gd->ram_size = get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
1f4d5326 29 CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
088454cd
SG
30
31 return 0;
1f4d5326 32}
1f4d5326 33
cd4695da 34void get_sys_info(sys_info_t *sys_info)
1f4d5326 35{
cd4695da
RR
36 sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
37 sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
38 sys_info->freqPCI = 0;
1f4d5326
RR
39
40 return;
41}
80cce262
RR
42
43int get_serial_clock(void){
44 return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
45}