1/* 2 * 3 * (C) Copyright 2008 4 * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es 5 * This work has been supported by: QTechnology http://qtec.com/ 6 * 7 * (C) Copyright 2008 8 * Georg Schardt <schardt@team-ctech.de> 9 * 10 * See file CREDITS for list of people who contributed to this 11 * project. 12 * 13 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License as 15 * published by the Free Software Foundation; either version 2 of 16 * the License, or (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program; if not, write to the Free Software 25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 26 * MA 02111-1307 USA 27 */ 28#ifndef __CONFIG_GEN_H 29#define __CONFIG_GEN_H 30 31#include "../board/xilinx/ppc405-generic/xparameters.h" 32 33/* sdram */ 34#define CONFIG_SYS_SDRAM_SIZE_MB 256 35 36/* environment */ 37#define CONFIG_ENV_IS_IN_FLASH 1 38#define CONFIG_ENV_SIZE 0x10000 39#define CONFIG_ENV_SECT_SIZE 0x10000 40#define CONFIG_SYS_ENV_OFFSET 0x3F0000 41#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_ENV_OFFSET) 42#define CONFIG_ENV_OVERWRITE 1 43 44/*Misc*/ 45#define CONFIG_SYS_PROMPT "xlx-ppc405:/# " /* Monitor Command Prompt */ 46#define CONFIG_PREBOOT "echo U-Boot is up and runnining;" 47 48/*Flash*/ 49#define CONFIG_SYS_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR 50#define CONFIG_SYS_FLASH_SIZE (32*1024*1024) 51#define CONFIG_SYS_MAX_FLASH_SECT 71 52#define CONFIG_SYS_FLASH_CFI 1 53#define CONFIG_FLASH_CFI_DRIVER 1 54#define MTDIDS_DEFAULT "nor0=ppc405-flash" 55#define MTDPARTS_DEFAULT "mtdpartsa=ppc405-flash:-(user)" 56 57#include <configs/xilinx-ppc405.h> 58#endif /* __CONFIG_H */ 59