iconnect.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #include "mv-common.h"
  20. /*
  21. * Environment variables configuration
  22. */
  23. /*
  24. * Default environment variables
  25. */
  26. #define CONFIG_BOOTCOMMAND \
  27. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  28. "ubi part rootfs; " \
  29. "ubifsmount ubi:rootfs; " \
  30. "ubifsload 0x800000 ${kernel}; " \
  31. "bootm 0x800000"
  32. #define CONFIG_EXTRA_ENV_SETTINGS \
  33. "console=console=ttyS0,115200\0" \
  34. "mtdids=nand0=orion_nand\0" \
  35. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  36. "kernel=/boot/uImage\0" \
  37. "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
  38. /*
  39. * Ethernet driver configuration
  40. */
  41. #ifdef CONFIG_CMD_NET
  42. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  43. #define CONFIG_PHY_BASE_ADR 11
  44. #undef CONFIG_RESET_PHY_R
  45. #endif /* CONFIG_CMD_NET */
  46. /*
  47. * File system
  48. */
  49. #endif /* _CONFIG_ICONNECT_H */