Ricardo Ribalda Delgado | 1f4d532 | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Ricardo Ribalda Delgado | 1f4d532 | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 11 | */ |
| 12 | #ifndef __CONFIG_GEN_H |
| 13 | #define __CONFIG_GEN_H |
| 14 | |
| 15 | #include "../board/xilinx/ppc405-generic/xparameters.h" |
| 16 | |
| 17 | /* sdram */ |
| 18 | #define CONFIG_SYS_SDRAM_SIZE_MB 256 |
| 19 | |
| 20 | /* environment */ |
| 21 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 22 | #define CONFIG_ENV_SIZE 0x10000 |
| 23 | #define CONFIG_ENV_SECT_SIZE 0x10000 |
| 24 | #define CONFIG_SYS_ENV_OFFSET 0x3F0000 |
| 25 | #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_ENV_OFFSET) |
| 26 | #define CONFIG_ENV_OVERWRITE 1 |
| 27 | |
| 28 | /*Misc*/ |
Ricardo Ribalda Delgado | 1f4d532 | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 29 | #define CONFIG_PREBOOT "echo U-Boot is up and runnining;" |
| 30 | |
| 31 | /*Flash*/ |
| 32 | #define CONFIG_SYS_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR |
| 33 | #define CONFIG_SYS_FLASH_SIZE (32*1024*1024) |
| 34 | #define CONFIG_SYS_MAX_FLASH_SECT 71 |
| 35 | #define CONFIG_SYS_FLASH_CFI 1 |
| 36 | #define CONFIG_FLASH_CFI_DRIVER 1 |
| 37 | #define MTDIDS_DEFAULT "nor0=ppc405-flash" |
| 38 | #define MTDPARTS_DEFAULT "mtdpartsa=ppc405-flash:-(user)" |
| 39 | |
| 40 | #include <configs/xilinx-ppc405.h> |
| 41 | #endif /* __CONFIG_H */ |