iconnect.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * (C) Copyright 2009-2012
  3. * Wojciech Dubowik <wojciech.dubowik@neratec.com>
  4. * Luka Perkov <luka@openwrt.org>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef _CONFIG_ICONNECT_H
  9. #define _CONFIG_ICONNECT_H
  10. /*
  11. * High level configuration options
  12. */
  13. #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  14. #define CONFIG_KW88F6281 /* SOC Name */
  15. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  16. /*
  17. * Machine type
  18. */
  19. #define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT
  20. /*
  21. * Compression configuration
  22. */
  23. #define CONFIG_BZIP2
  24. #define CONFIG_LZMA
  25. #define CONFIG_LZO
  26. /*
  27. * Commands configuration
  28. */
  29. #define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
  30. #define CONFIG_SYS_MVFS
  31. #define CONFIG_CMD_ENV
  32. #define CONFIG_CMD_NAND
  33. /*
  34. * mv-common.h should be defined after CMD configs since it used them
  35. * to enable certain macros
  36. */
  37. #include "mv-common.h"
  38. /*
  39. * Environment variables configuration
  40. */
  41. #ifdef CONFIG_CMD_NAND
  42. #define CONFIG_ENV_IS_IN_NAND
  43. #define CONFIG_ENV_SECT_SIZE 0x20000
  44. #else
  45. #define CONFIG_ENV_IS_NOWHERE
  46. #endif
  47. #define CONFIG_ENV_SIZE 0x20000
  48. #define CONFIG_ENV_OFFSET 0x80000
  49. /*
  50. * Default environment variables
  51. */
  52. #define CONFIG_BOOTCOMMAND \
  53. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  54. "ubi part rootfs; " \
  55. "ubifsmount ubi:rootfs; " \
  56. "ubifsload 0x800000 ${kernel}; " \
  57. "bootm 0x800000"
  58. #define CONFIG_MTDPARTS \
  59. "mtdparts=orion_nand:" \
  60. "0x80000@0x0(uboot)," \
  61. "0x20000@0x80000(uboot_env)," \
  62. "-@0xa0000(rootfs)\0"
  63. #define CONFIG_EXTRA_ENV_SETTINGS \
  64. "console=console=ttyS0,115200\0" \
  65. "mtdids=nand0=orion_nand\0" \
  66. "mtdparts="CONFIG_MTDPARTS \
  67. "kernel=/boot/uImage\0" \
  68. "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
  69. /*
  70. * Ethernet driver configuration
  71. */
  72. #ifdef CONFIG_CMD_NET
  73. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  74. #define CONFIG_PHY_BASE_ADR 11
  75. #undef CONFIG_RESET_PHY_R
  76. #endif /* CONFIG_CMD_NET */
  77. /*
  78. * File system
  79. */
  80. #define CONFIG_CMD_JFFS2
  81. #define CONFIG_CMD_UBIFS
  82. #define CONFIG_RBTREE
  83. #define CONFIG_MTD_DEVICE
  84. #define CONFIG_MTD_PARTITIONS
  85. #define CONFIG_CMD_MTDPARTS
  86. #endif /* _CONFIG_ICONNECT_H */