iconnect.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2009-2012
  4. * Wojciech Dubowik <wojciech.dubowik@neratec.com>
  5. * Luka Perkov <luka@openwrt.org>
  6. */
  7. #ifndef _CONFIG_ICONNECT_H
  8. #define _CONFIG_ICONNECT_H
  9. /*
  10. * High level configuration options
  11. */
  12. #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  13. #define CONFIG_KW88F6281 /* SOC Name */
  14. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  15. /*
  16. * Machine type
  17. */
  18. #define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT
  19. /*
  20. * Compression configuration
  21. */
  22. #define CONFIG_BZIP2
  23. /*
  24. * Commands configuration
  25. */
  26. /*
  27. * mv-common.h should be defined after CMD configs since it used them
  28. * to enable certain macros
  29. */
  30. #include "mv-common.h"
  31. /*
  32. * Environment variables configuration
  33. */
  34. /*
  35. * Default environment variables
  36. */
  37. #define CONFIG_BOOTCOMMAND \
  38. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  39. "ubi part rootfs; " \
  40. "ubifsmount ubi:rootfs; " \
  41. "ubifsload 0x800000 ${kernel}; " \
  42. "bootm 0x800000"
  43. #define CONFIG_EXTRA_ENV_SETTINGS \
  44. "console=console=ttyS0,115200\0" \
  45. "mtdids=nand0=orion_nand\0" \
  46. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  47. "kernel=/boot/uImage\0" \
  48. "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
  49. /*
  50. * Ethernet driver configuration
  51. */
  52. #ifdef CONFIG_CMD_NET
  53. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  54. #define CONFIG_PHY_BASE_ADR 11
  55. #undef CONFIG_RESET_PHY_R
  56. #endif /* CONFIG_CMD_NET */
  57. /*
  58. * File system
  59. */
  60. #endif /* _CONFIG_ICONNECT_H */