sheevaplug.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2009-2014
  4. * Gerald Kerma <dreagle@doukki.net>
  5. * Marvell Semiconductor <www.marvell.com>
  6. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  7. */
  8. #ifndef _CONFIG_SHEEVAPLUG_H
  9. #define _CONFIG_SHEEVAPLUG_H
  10. /*
  11. * High Level Configuration Options (easy to change)
  12. */
  13. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  14. /*
  15. * Commands configuration
  16. */
  17. /*
  18. * Standard filesystems
  19. */
  20. #define CONFIG_BZIP2
  21. /*
  22. * mv-plug-common.h should be defined after CMD configs since it used them
  23. * to enable certain macros
  24. */
  25. #include "mv-plug-common.h"
  26. /*
  27. * Environment variables configurations
  28. */
  29. /*
  30. * max 4k env size is enough, but in case of nand
  31. * it has to be rounded to sector size
  32. */
  33. /*
  34. * Environment is right behind U-Boot in flash. Make sure U-Boot
  35. * doesn't grow into the environment area.
  36. */
  37. #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
  38. /*
  39. * Default environment variables
  40. */
  41. #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
  42. "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
  43. "bootm 0x6400000;"
  44. #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
  45. "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
  46. "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
  47. "x_bootcmd_usb=usb start\0" \
  48. "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\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. #endif /* CONFIG_CMD_NET */
  56. /*
  57. * SDIO/MMC Card Configuration
  58. */
  59. #ifdef CONFIG_CMD_MMC
  60. #define CONFIG_MVEBU_MMC
  61. #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
  62. #endif /* CONFIG_CMD_MMC */
  63. /*
  64. * SATA driver configuration
  65. */
  66. #ifdef CONFIG_IDE
  67. #define __io
  68. #define CONFIG_IDE_PREINIT
  69. #define CONFIG_MVSATA_IDE_USE_PORT0
  70. #define CONFIG_MVSATA_IDE_USE_PORT1
  71. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  72. #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
  73. #endif /* CONFIG_IDE */
  74. #endif /* _CONFIG_SHEEVAPLUG_H */