sheevaplug.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * (C) Copyright 2009-2014
  3. * Gerald Kerma <dreagle@doukki.net>
  4. * Marvell Semiconductor <www.marvell.com>
  5. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef _CONFIG_SHEEVAPLUG_H
  10. #define _CONFIG_SHEEVAPLUG_H
  11. /*
  12. * High Level Configuration Options (easy to change)
  13. */
  14. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  15. #define CONFIG_MACH_SHEEVAPLUG /* Machine type */
  16. /*
  17. * Commands configuration
  18. */
  19. /*
  20. * Standard filesystems
  21. */
  22. #define CONFIG_SYS_MVFS
  23. /*
  24. * mv-plug-common.h should be defined after CMD configs since it used them
  25. * to enable certain macros
  26. */
  27. #include "mv-plug-common.h"
  28. /*
  29. * Environment variables configurations
  30. */
  31. #ifdef CONFIG_CMD_NAND
  32. #define CONFIG_ENV_IS_IN_NAND 1
  33. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
  34. #else
  35. #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
  36. #endif
  37. /*
  38. * max 4k env size is enough, but in case of nand
  39. * it has to be rounded to sector size
  40. */
  41. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  42. #define CONFIG_ENV_ADDR 0x80000
  43. #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
  44. /*
  45. * Default environment variables
  46. */
  47. #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
  48. "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
  49. "bootm 0x6400000;"
  50. #define CONFIG_MTDPARTS \
  51. "orion_nand:512K(uboot)," \
  52. "512K(env),4M(kernel)," \
  53. "-(rootfs)\0"
  54. #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
  55. "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
  56. "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
  57. "x_bootcmd_usb=usb start\0" \
  58. "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
  59. #define MTDIDS_DEFAULT "nand0=orion_nand"
  60. #define MTDPARTS_DEFAULT \
  61. "mtdparts="CONFIG_MTDPARTS
  62. /*
  63. * Ethernet Driver configuration
  64. */
  65. #ifdef CONFIG_CMD_NET
  66. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  67. #define CONFIG_PHY_BASE_ADR 0
  68. #endif /* CONFIG_CMD_NET */
  69. /*
  70. * SDIO/MMC Card Configuration
  71. */
  72. #ifdef CONFIG_CMD_MMC
  73. #define CONFIG_GENERIC_MMC
  74. #define CONFIG_MVEBU_MMC
  75. #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
  76. #endif /* CONFIG_CMD_MMC */
  77. /*
  78. * SATA driver configuration
  79. */
  80. #ifdef CONFIG_CMD_IDE
  81. #define __io
  82. #define CONFIG_IDE_PREINIT
  83. #define CONFIG_DOS_PARTITION
  84. #define CONFIG_MVSATA_IDE_USE_PORT0
  85. #define CONFIG_MVSATA_IDE_USE_PORT1
  86. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  87. #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
  88. #endif /* CONFIG_CMD_IDE */
  89. #endif /* _CONFIG_SHEEVAPLUG_H */