xilinx-ppc405-generic.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include "../board/xilinx/ppc405-generic/xparameters.h"
  31. /* sdram */
  32. #define CONFIG_SYS_SDRAM_SIZE_MB 256
  33. /* environment */
  34. #define CONFIG_ENV_IS_IN_FLASH 1
  35. #define CONFIG_ENV_SIZE 0x10000
  36. #define CONFIG_ENV_SECT_SIZE 0x10000
  37. #define CONFIG_SYS_ENV_OFFSET 0x3F0000
  38. #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_ENV_OFFSET)
  39. #define CONFIG_ENV_OVERWRITE 1
  40. /*Misc*/
  41. #define CONFIG_SYS_PROMPT "xlx-ppc405:/# " /* Monitor Command Prompt */
  42. #define CONFIG_PREBOOT "echo U-Boot is up and runnining;"
  43. /*Flash*/
  44. #define CONFIG_SYS_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR
  45. #define CONFIG_SYS_FLASH_SIZE (32*1024*1024)
  46. #define CONFIG_SYS_MAX_FLASH_SECT 71
  47. #define CONFIG_SYS_FLASH_CFI 1
  48. #define CONFIG_FLASH_CFI_DRIVER 1
  49. #define MTDIDS_DEFAULT "nor0=ppc405-flash"
  50. #define MTDPARTS_DEFAULT "mtdpartsa=ppc405-flash:-(user)"
  51. #include <configs/xilinx-ppc405.h>
  52. #endif /* __CONFIG_H */