dockstar.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /*
  2. * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
  3. *
  4. * Based on sheevaplug.h originally written by
  5. * Prafulla Wadaskar <prafulla@marvell.com>
  6. * (C) Copyright 2009
  7. * Marvell Semiconductor <www.marvell.com>
  8. *
  9. * See file CREDITS for list of people who contributed to this
  10. * project.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of
  15. * the License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25. * MA 02110-1301 USA
  26. */
  27. #ifndef _CONFIG_DOCKSTAR_H
  28. #define _CONFIG_DOCKSTAR_H
  29. /*
  30. * Version number information
  31. */
  32. #define CONFIG_IDENT_STRING "\nSeagate FreeAgent DockStar"
  33. /*
  34. * High Level Configuration Options (easy to change)
  35. */
  36. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  37. #define CONFIG_KIRKWOOD 1 /* SOC Family Name */
  38. #define CONFIG_KW88F6281 1 /* SOC Name */
  39. #define CONFIG_MACH_DOCKSTAR /* Machine type */
  40. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  41. /*
  42. * Commands configuration
  43. */
  44. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  45. #include <config_cmd_default.h>
  46. #define CONFIG_CMD_DHCP
  47. #define CONFIG_CMD_ENV
  48. #define CONFIG_CMD_MII
  49. #define CONFIG_CMD_NAND
  50. #define CONFIG_CMD_PING
  51. #define CONFIG_CMD_USB
  52. /*
  53. * mv-common.h should be defined after CMD configs since it used them
  54. * to enable certain macros
  55. */
  56. #include "mv-common.h"
  57. #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
  58. #define CONFIG_SYS_PROMPT "DockStar> " /* Command Prompt */
  59. /*
  60. * Environment variables configurations
  61. */
  62. #ifdef CONFIG_CMD_NAND
  63. #define CONFIG_ENV_IS_IN_NAND 1
  64. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
  65. #else
  66. #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
  67. #endif
  68. /*
  69. * max 4k env size is enough, but in case of nand
  70. * it has to be rounded to sector size
  71. */
  72. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  73. #define CONFIG_ENV_ADDR 0x60000
  74. #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
  75. /*
  76. * Default environment variables
  77. */
  78. #define CONFIG_BOOTCOMMAND \
  79. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  80. "ubi part root; " \
  81. "ubifsmount root; " \
  82. "ubifsload 0x800000 ${kernel}; " \
  83. "ubifsload 0x1100000 ${initrd}; " \
  84. "bootm 0x800000 0x1100000"
  85. #define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0"
  86. #define CONFIG_EXTRA_ENV_SETTINGS \
  87. "console=console=ttyS0,115200\0" \
  88. "mtdids=nand0=orion_nand\0" \
  89. "mtdparts="CONFIG_MTDPARTS \
  90. "kernel=/boot/uImage\0" \
  91. "initrd=/boot/uInitrd\0" \
  92. "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
  93. /*
  94. * Ethernet Driver configuration
  95. */
  96. #ifdef CONFIG_CMD_NET
  97. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  98. #define CONFIG_PHY_BASE_ADR 0
  99. #endif /* CONFIG_CMD_NET */
  100. /*
  101. * File system
  102. */
  103. #define CONFIG_CMD_EXT2
  104. #define CONFIG_CMD_FAT
  105. #define CONFIG_CMD_JFFS2
  106. #define CONFIG_CMD_UBI
  107. #define CONFIG_CMD_UBIFS
  108. #define CONFIG_RBTREE
  109. #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  110. #define CONFIG_MTD_PARTITIONS
  111. #define CONFIG_CMD_MTDPARTS
  112. #define CONFIG_LZO
  113. #endif /* _CONFIG_DOCKSTAR_H */