Ricardo Ribalda Delgado | a8822a7 | 2008-07-17 12:47:09 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 |
| 3 | * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es |
| 4 | * This work has been supported by: QTechnology http://qtec.com/ |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include <config.h> |
| 20 | #include <common.h> |
| 21 | #include <asm/processor.h> |
| 22 | |
| 23 | int board_pre_init(void) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | int checkboard(void) |
| 29 | { |
Ricardo Ribalda Delgado | 0e0e3e6 | 2008-07-29 17:16:10 +0200 | [diff] [blame] | 30 | puts("ML507 Board\n"); |
Ricardo Ribalda Delgado | a8822a7 | 2008-07-17 12:47:09 +0200 | [diff] [blame] | 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | phys_size_t initdram(int board_type) |
| 35 | { |
Ricardo Ribalda Delgado | 0e0e3e6 | 2008-07-29 17:16:10 +0200 | [diff] [blame] | 36 | return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR, |
| 37 | CFG_SDRAM_SIZE_MB * 1024 * 1024); |
Ricardo Ribalda Delgado | a8822a7 | 2008-07-17 12:47:09 +0200 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | void get_sys_info(sys_info_t * sysInfo) |
| 41 | { |
| 42 | sysInfo->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ; |
| 43 | sysInfo->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ; |
| 44 | sysInfo->freqPCI = 0; |
| 45 | |
| 46 | return; |
| 47 | } |