sheevaplug.h 3.3 KB

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