ib62x0.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. * Copyright (C) 2011-2012
  3. * Gerald Kerma <dreagle@doukki.net>
  4. * Luka Perkov <luka@openwrt.org>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. #ifndef _CONFIG_IB62x0_H
  23. #define _CONFIG_IB62x0_H
  24. /*
  25. * Version number information
  26. */
  27. #define CONFIG_IDENT_STRING " RaidSonic ICY BOX IB-NAS62x0"
  28. /*
  29. * High level configuration options
  30. */
  31. #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  32. #define CONFIG_KIRKWOOD /* SOC Family Name */
  33. #define CONFIG_KW88F6281 /* SOC Name */
  34. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  35. /*
  36. * Machine type
  37. */
  38. #define CONFIG_MACH_TYPE MACH_TYPE_NAS6210
  39. /*
  40. * Compression configuration
  41. */
  42. #define CONFIG_BZIP2
  43. #define CONFIG_LZMA
  44. #define CONFIG_LZO
  45. /*
  46. * Commands configuration
  47. */
  48. #define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
  49. #define CONFIG_SYS_MVFS
  50. #include <config_cmd_default.h>
  51. #define CONFIG_CMD_ENV
  52. #define CONFIG_CMD_IDE
  53. #define CONFIG_CMD_MII
  54. #define CONFIG_CMD_NAND
  55. #define CONFIG_CMD_PING
  56. #define CONFIG_CMD_USB
  57. /*
  58. * mv-common.h should be defined after CMD configs since it used them
  59. * to enable certain macros
  60. */
  61. #include "mv-common.h"
  62. #undef CONFIG_SYS_PROMPT
  63. #define CONFIG_SYS_PROMPT "ib62x0 => "
  64. /*
  65. * Environment variables configuration
  66. */
  67. #ifdef CONFIG_CMD_NAND
  68. #define CONFIG_ENV_IS_IN_NAND
  69. #define CONFIG_ENV_SECT_SIZE 0x20000
  70. #else
  71. #define CONFIG_ENV_IS_NOWHERE
  72. #endif
  73. #define CONFIG_ENV_SIZE 0x20000
  74. #define CONFIG_ENV_OFFSET 0x80000
  75. /*
  76. * Default environment variables
  77. */
  78. #define CONFIG_BOOTCOMMAND \
  79. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  80. "ubi part root; " \
  81. "ubifsmount root; " \
  82. "ubifsload 0x800000 ${kernel}; " \
  83. "ubifsload 0x1100000 ${initrd}; " \
  84. "bootm 0x800000 0x1100000"
  85. #define CONFIG_MTDPARTS \
  86. "mtdparts=orion_nand:" \
  87. "0x80000@0x0(uboot)," \
  88. "0x20000@0x80000(uboot_env)," \
  89. "-@0xa0000(root)\0"
  90. #define CONFIG_EXTRA_ENV_SETTINGS \
  91. "console=console=ttyS0,115200\0" \
  92. "mtdids=nand0=orion_nand\0" \
  93. "mtdparts="CONFIG_MTDPARTS \
  94. "kernel=/boot/uImage\0" \
  95. "initrd=/boot/uInitrd\0" \
  96. "bootargs_root=ubi.mtd=2 root=ubi0:root rootfstype=ubifs\0"
  97. /*
  98. * Ethernet driver configuration
  99. */
  100. #ifdef CONFIG_CMD_NET
  101. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  102. #define CONFIG_PHY_BASE_ADR 0
  103. #undef CONFIG_RESET_PHY_R
  104. #endif /* CONFIG_CMD_NET */
  105. /*
  106. * SATA driver configuration
  107. */
  108. #ifdef CONFIG_CMD_IDE
  109. #define __io
  110. #define CONFIG_IDE_PREINIT
  111. #define CONFIG_DOS_PARTITION
  112. #define CONFIG_MVSATA_IDE_USE_PORT0
  113. #define CONFIG_MVSATA_IDE_USE_PORT1
  114. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  115. #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
  116. #endif /* CONFIG_CMD_IDE */
  117. /*
  118. * RTC driver configuration
  119. */
  120. #ifdef CONFIG_CMD_DATE
  121. #define CONFIG_RTC_MV
  122. #endif /* CONFIG_CMD_DATE */
  123. /*
  124. * File system
  125. */
  126. #define CONFIG_CMD_EXT2
  127. #define CONFIG_CMD_FAT
  128. #define CONFIG_CMD_JFFS2
  129. #define CONFIG_CMD_UBI
  130. #define CONFIG_CMD_UBIFS
  131. #define CONFIG_RBTREE
  132. #define CONFIG_MTD_DEVICE
  133. #define CONFIG_MTD_PARTITIONS
  134. #define CONFIG_CMD_MTDPARTS
  135. #endif /* _CONFIG_IB62x0_H */