dockstar.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
  4. *
  5. * Based on sheevaplug.h originally written by
  6. * Prafulla Wadaskar <prafulla@marvell.com>
  7. * (C) Copyright 2009
  8. * Marvell Semiconductor <www.marvell.com>
  9. */
  10. #ifndef _CONFIG_DOCKSTAR_H
  11. #define _CONFIG_DOCKSTAR_H
  12. /*
  13. * High Level Configuration Options (easy to change)
  14. */
  15. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  16. #define CONFIG_KW88F6281 1 /* SOC Name */
  17. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  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. /*
  24. * Environment variables configurations
  25. */
  26. /*
  27. * max 4k env size is enough, but in case of nand
  28. * it has to be rounded to sector size
  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:root; " \
  37. "ubifsload 0x800000 ${kernel}; " \
  38. "ubifsload 0x1100000 ${initrd}; " \
  39. "bootm 0x800000 0x1100000"
  40. #define CONFIG_EXTRA_ENV_SETTINGS \
  41. "console=console=ttyS0,115200\0" \
  42. "mtdids=nand0=orion_nand\0" \
  43. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  44. "kernel=/boot/uImage\0" \
  45. "initrd=/boot/uInitrd\0" \
  46. "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
  47. /*
  48. * Ethernet Driver configuration
  49. */
  50. #ifdef CONFIG_CMD_NET
  51. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  52. #define CONFIG_PHY_BASE_ADR 0
  53. #endif /* CONFIG_CMD_NET */
  54. /*
  55. * File system
  56. */
  57. #endif /* _CONFIG_DOCKSTAR_H */