km-powerpc.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * (C) Copyright 2011
  3. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef __CONFIG_KEYMILE_POWERPC_H
  24. #define __CONFIG_KEYMILE_POWERPC_H
  25. #define CONFIG_BOOTCOUNT_LIMIT
  26. #define CONFIG_CMD_DTT
  27. #define CONFIG_JFFS2_CMDLINE
  28. #define CONFIG_ENV_SIZE 0x04000 /* Size of Environment */
  29. #define CONFIG_FLASH_CFI_MTD
  30. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  31. #define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
  32. #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
  33. /******************************************************************************
  34. * (PRAM usage)
  35. * ... -------------------------------------------------------
  36. * ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM
  37. * ... |<------------------- pram -------------------------->|
  38. * ... -------------------------------------------------------
  39. * @END_OF_RAM:
  40. * @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose
  41. * @CONFIG_KM_PHRAM: address for /var
  42. * @CONFIG_KM_PNVRAM: address for PNVRAM (for the application)
  43. * @CONFIG_KM_ROOTFSSIZE: address for rootfilesystem in RAM
  44. */
  45. /* size of rootfs in RAM */
  46. #define CONFIG_KM_ROOTFSSIZE 0x0
  47. /* pseudo-non volatile RAM [hex] */
  48. #define CONFIG_KM_PNVRAM 0x80000
  49. /* physical RAM MTD size [hex] */
  50. #define CONFIG_KM_PHRAM 0x100000
  51. /* resereved pram area at the end of memroy [hex] */
  52. #define CONFIG_KM_RESERVED_PRAM 0x0
  53. /* enable protected RAM */
  54. #define CONFIG_PRAM 0
  55. #define CONFIG_KM_CRAMFS_ADDR 0x800000
  56. #define CONFIG_KM_KERNEL_ADDR 0x400000 /* 3968Kbytes */
  57. #define CONFIG_KM_FDT_ADDR 0x7E0000 /* 128Kbytes */
  58. /* architecture specific default bootargs */
  59. #define CONFIG_KM_DEF_BOOT_ARGS_CPU ""
  60. #define CONFIG_KM_DEF_ENV_CPU \
  61. "boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \
  62. "cramfsloadfdt=" \
  63. "cramfsload ${fdt_addr_r} " \
  64. "fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \
  65. "fdt_addr_r=" xstr(CONFIG_KM_FDT_ADDR) "\0" \
  66. "u-boot="xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
  67. "update=" \
  68. "protect off " xstr(BOOTFLASH_START) " +${filesize} && "\
  69. "erase " xstr(BOOTFLASH_START) " +${filesize} && " \
  70. "cp.b ${load_addr_r} " xstr(BOOTFLASH_START) \
  71. " ${filesize} && " \
  72. "protect on " xstr(BOOTFLASH_START) " +${filesize}\0" \
  73. ""
  74. #endif /* __CONFIG_KEYMILE_POWERPC_H */