ds109.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #include "mv-plug-common.h"
  19. /*
  20. * Environment variables configurations
  21. */
  22. /*
  23. * max 4k env size is enough, but in case of nand
  24. * it has to be rounded to sector size
  25. */
  26. /*
  27. * Default environment variables
  28. */
  29. #define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \
  30. "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\
  31. "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
  32. "bootm 0x6400000;"
  33. #define CONFIG_EXTRA_ENV_SETTINGS \
  34. "x_bootcmd_ethernet=ping 192.168.1.2\0" \
  35. "x_bootcmd_usb=usb start\0" \
  36. "x_bootcmd_kernel=fatload usb 0 0x6400000 uImage\0" \
  37. "x_bootargs=console=ttyS0,115200\0" \
  38. "x_bootargs_root=root=/dev/sda2 rootdelay=10\0" \
  39. "ipaddr=192.168.1.5\0"
  40. /*
  41. * Ethernet Driver configuration
  42. */
  43. #ifdef CONFIG_CMD_NET
  44. #define CONFIG_MVGBE_PORTS {1, 0} /* enable one port */
  45. #define CONFIG_PHY_BASE_ADR 8
  46. #endif /* CONFIG_CMD_NET */
  47. /*
  48. * SATA Driver configuration
  49. */
  50. #ifdef CONFIG_MVSATA_IDE
  51. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  52. #endif /*CONFIG_MVSATA_IDE*/
  53. #endif /* _CONFIG_DS109_H */