iconnect.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * (C) Copyright 2009-2012
  3. * Wojciech Dubowik <wojciech.dubowik@neratec.com>
  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_ICONNECT_H
  23. #define _CONFIG_ICONNECT_H
  24. /*
  25. * Version number information
  26. */
  27. #define CONFIG_IDENT_STRING " Iomega iConnect"
  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_ICONNECT
  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_MII
  53. #define CONFIG_CMD_NAND
  54. #define CONFIG_CMD_PING
  55. #define CONFIG_CMD_USB
  56. /*
  57. * mv-common.h should be defined after CMD configs since it used them
  58. * to enable certain macros
  59. */
  60. #include "mv-common.h"
  61. #undef CONFIG_SYS_PROMPT
  62. #define CONFIG_SYS_PROMPT "iconnect => "
  63. /*
  64. * Environment variables configuration
  65. */
  66. #ifdef CONFIG_CMD_NAND
  67. #define CONFIG_ENV_IS_IN_NAND
  68. #define CONFIG_ENV_SECT_SIZE 0x20000
  69. #else
  70. #define CONFIG_ENV_IS_NOWHERE
  71. #endif
  72. #define CONFIG_ENV_SIZE 0x20000
  73. #define CONFIG_ENV_OFFSET 0x80000
  74. /*
  75. * Default environment variables
  76. */
  77. #define CONFIG_BOOTCOMMAND \
  78. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  79. "ubi part rootfs; " \
  80. "ubifsmount rootfs; " \
  81. "ubifsload 0x800000 ${kernel}; " \
  82. "bootm 0x800000"
  83. #define CONFIG_MTDPARTS \
  84. "mtdparts=orion_nand:" \
  85. "0x80000@0x0(uboot)," \
  86. "0x20000@0x80000(uboot_env)," \
  87. "-@0xa0000(rootfs)\0"
  88. #define CONFIG_EXTRA_ENV_SETTINGS \
  89. "console=console=ttyS0,115200\0" \
  90. "mtdids=nand0=orion_nand\0" \
  91. "mtdparts="CONFIG_MTDPARTS \
  92. "kernel=/boot/uImage\0" \
  93. "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
  94. /*
  95. * Ethernet driver configuration
  96. */
  97. #ifdef CONFIG_CMD_NET
  98. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  99. #define CONFIG_PHY_BASE_ADR 11
  100. #undef CONFIG_RESET_PHY_R
  101. #endif /* CONFIG_CMD_NET */
  102. /*
  103. * File system
  104. */
  105. #define CONFIG_CMD_EXT2
  106. #define CONFIG_CMD_FAT
  107. #define CONFIG_CMD_JFFS2
  108. #define CONFIG_CMD_UBI
  109. #define CONFIG_CMD_UBIFS
  110. #define CONFIG_RBTREE
  111. #define CONFIG_MTD_DEVICE
  112. #define CONFIG_MTD_PARTITIONS
  113. #define CONFIG_CMD_MTDPARTS
  114. #endif /* _CONFIG_ICONNECT_H */