ds109.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2011
  4. * Jason Cooper <u-boot@lakedaemon.net>
  5. *
  6. * Based on work by:
  7. * Marvell Semiconductor <www.marvell.com>
  8. * Written-by: Siddarth Gore <gores@marvell.com>
  9. */
  10. #ifndef _CONFIG_DS109_H
  11. #define _CONFIG_DS109_H
  12. /* Provide the MACH_TYPE value that the vendor kernel requires. */
  13. #define CONFIG_MACH_TYPE 527
  14. /*
  15. * High Level Configuration Options (easy to change)
  16. */
  17. #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */
  18. /*
  19. * Commands configuration
  20. */
  21. #define CONFIG_CMD_EXT2
  22. /*
  23. * mv-plug-common.h should be defined after CMD configs since it used them
  24. * to enable certain macros
  25. */
  26. #include "mv-plug-common.h"
  27. /*
  28. * Environment variables configurations
  29. */
  30. /*
  31. * max 4k env size is enough, but in case of nand
  32. * it has to be rounded to sector size
  33. */
  34. /*
  35. * Default environment variables
  36. */
  37. #define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \
  38. "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
  39. "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
  40. "bootm 0x6400000;"
  41. #define CONFIG_EXTRA_ENV_SETTINGS \
  42. "x_bootcmd_ethernet=ping 192.168.1.2\0" \
  43. "x_bootcmd_usb=usb start\0" \
  44. "x_bootcmd_kernel=fatload usb 0 0x6400000 uImage\0" \
  45. "x_bootargs=console=ttyS0,115200\0" \
  46. "x_bootargs_root=root=/dev/sda2 rootdelay=10\0" \
  47. "ipaddr=192.168.1.5\0"
  48. /*
  49. * Ethernet Driver configuration
  50. */
  51. #ifdef CONFIG_CMD_NET
  52. #define CONFIG_MVGBE_PORTS {1, 0} /* enable one port */
  53. #define CONFIG_PHY_BASE_ADR 8
  54. #endif /* CONFIG_CMD_NET */
  55. /*
  56. * SATA Driver configuration
  57. */
  58. #ifdef CONFIG_MVSATA_IDE
  59. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  60. #endif /*CONFIG_MVSATA_IDE*/
  61. #endif /* _CONFIG_DS109_H */