Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * (C) Copyright 2008 |
Ricardo Ribalda Delgado | 5712d04 | 2016-01-26 11:24:08 +0100 | [diff] [blame] | 4 | * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Ricardo Ribalda Delgado | 78ea77e | 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 | |
Ricardo Ribalda Delgado | 46c2ec2 | 2016-01-26 11:24:14 +0100 | [diff] [blame] | 17 | #define CONFIG_405 1 |
| 18 | #define CONFIG_XILINX_405 1 |
| 19 | |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 20 | /* sdram */ |
| 21 | #define CONFIG_SYS_SDRAM_SIZE_MB 256 |
| 22 | |
| 23 | /* environment */ |
| 24 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 25 | #define CONFIG_ENV_SIZE 0x10000 |
| 26 | #define CONFIG_ENV_SECT_SIZE 0x10000 |
| 27 | #define CONFIG_SYS_ENV_OFFSET 0x3F0000 |
| 28 | #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_ENV_OFFSET) |
| 29 | #define CONFIG_ENV_OVERWRITE 1 |
| 30 | |
| 31 | /*Misc*/ |
Ricardo Ribalda Delgado | 7e7ebd5 | 2016-01-26 11:24:17 +0100 | [diff] [blame] | 32 | #define CONFIG_PREBOOT "echo U-Boot is up and running;" |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 33 | |
| 34 | /*Flash*/ |
Ricardo Ribalda Delgado | 7e7ebd5 | 2016-01-26 11:24:17 +0100 | [diff] [blame] | 35 | #define CONFIG_SYS_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR |
| 36 | #define CONFIG_SYS_FLASH_SIZE (128*1024*1024) |
| 37 | #define CONFIG_SYS_MAX_FLASH_SECT 1024 |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 38 | #define CONFIG_SYS_FLASH_CFI 1 |
| 39 | #define CONFIG_FLASH_CFI_DRIVER 1 |
Ricardo Ribalda Delgado | 7e7ebd5 | 2016-01-26 11:24:17 +0100 | [diff] [blame] | 40 | #define MTDIDS_DEFAULT "nor0=flash" |
| 41 | #define MTDPARTS_DEFAULT "mtdparts=flash:-(user)" |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 42 | |
Ricardo Ribalda Delgado | 46c2ec2 | 2016-01-26 11:24:14 +0100 | [diff] [blame] | 43 | #include <configs/xilinx-ppc.h> |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 44 | #endif /* __CONFIG_H */ |