nsa310s.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2015
  4. * Gerald Kerma <dreagle@doukki.net>
  5. * Tony Dinh <mibodhi@gmail.com>
  6. * Luka Perkov <luka.perkov@sartura.hr>
  7. */
  8. #ifndef _CONFIG_NSA310S_H
  9. #define _CONFIG_NSA310S_H
  10. /* high level configuration options */
  11. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  12. #define CONFIG_KW88F6192 1 /* SOC Name */
  13. #define CONFIG_KW88F6702 1 /* SOC Name */
  14. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  15. /* compression configuration */
  16. #define CONFIG_BZIP2
  17. /* commands configuration */
  18. /*
  19. * mv-common.h should be defined after CMD configs since it used them
  20. * to enable certain macros
  21. */
  22. #include "mv-common.h"
  23. /* environment variables configuration */
  24. /* default environment variables */
  25. #define CONFIG_BOOTCOMMAND \
  26. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  27. "ubi part root; " \
  28. "ubifsmount ubi:rootfs; " \
  29. "ubifsload 0x800000 ${kernel}; " \
  30. "ubifsload 0x700000 ${fdt}; " \
  31. "ubifsumount; " \
  32. "fdt addr 0x700000; fdt resize; fdt chosen; " \
  33. "bootz 0x800000 - 0x700000"
  34. #define CONFIG_EXTRA_ENV_SETTINGS \
  35. "console=console=ttyS0,115200\0" \
  36. "mtdids=nand0=orion_nand\0" \
  37. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  38. "kernel=/boot/zImage\0" \
  39. "fdt=/boot/nsa310s.dtb\0" \
  40. "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
  41. /* Ethernet driver configuration */
  42. #ifdef CONFIG_CMD_NET
  43. #define CONFIG_NETCONSOLE
  44. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  45. #define CONFIG_PHY_BASE_ADR 1
  46. #define CONFIG_RESET_PHY_R
  47. #endif /* CONFIG_CMD_NET */
  48. /* SATA driver configuration */
  49. #ifdef CONFIG_IDE
  50. #define __io
  51. #define CONFIG_IDE_PREINIT
  52. #define CONFIG_MVSATA_IDE_USE_PORT0
  53. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  54. #endif /* CONFIG_IDE */
  55. /* RTC driver configuration */
  56. #ifdef CONFIG_CMD_DATE
  57. #define CONFIG_RTC_MV
  58. #endif /* CONFIG_CMD_DATE */
  59. #endif /* _CONFIG_NSA310S_H */