ib62x0.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2011-2012
  4. * Gerald Kerma <dreagle@doukki.net>
  5. * Luka Perkov <luka@openwrt.org>
  6. */
  7. #ifndef _CONFIG_IB62x0_H
  8. #define _CONFIG_IB62x0_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. * Compression configuration
  17. */
  18. #define CONFIG_BZIP2
  19. /*
  20. * Commands configuration
  21. */
  22. /*
  23. * mv-common.h should be defined after CMD configs since it used them
  24. * to enable certain macros
  25. */
  26. #include "mv-common.h"
  27. /*
  28. * Environment variables configuration
  29. */
  30. /*
  31. * Default environment variables
  32. */
  33. #define CONFIG_BOOTCOMMAND \
  34. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  35. "ubi part root; " \
  36. "ubifsmount ubi:rootfs; " \
  37. "ubifsload 0x800000 ${kernel}; " \
  38. "ubifsload 0x700000 ${fdt}; " \
  39. "ubifsumount; " \
  40. "fdt addr 0x700000; fdt resize; fdt chosen; " \
  41. "bootz 0x800000 - 0x700000"
  42. #define CONFIG_EXTRA_ENV_SETTINGS \
  43. "console=console=ttyS0,115200\0" \
  44. "mtdids=nand0=orion_nand\0" \
  45. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  46. "kernel=/boot/zImage\0" \
  47. "fdt=/boot/ib62x0.dtb\0" \
  48. "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\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 0
  55. #undef CONFIG_RESET_PHY_R
  56. #endif /* CONFIG_CMD_NET */
  57. /*
  58. * SATA driver configuration
  59. */
  60. #ifdef CONFIG_IDE
  61. #define __io
  62. #define CONFIG_IDE_PREINIT
  63. #define CONFIG_MVSATA_IDE_USE_PORT0
  64. #define CONFIG_MVSATA_IDE_USE_PORT1
  65. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  66. #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
  67. #endif /* CONFIG_IDE */
  68. /*
  69. * RTC driver configuration
  70. */
  71. #ifdef CONFIG_CMD_DATE
  72. #define CONFIG_RTC_MV
  73. #endif /* CONFIG_CMD_DATE */
  74. #endif /* _CONFIG_IB62x0_H */