pogo_e02.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * Copyright (C) 2012
  3. * David Purdy <david.c.purdy@gmail.com>
  4. *
  5. * Based on Kirkwood support:
  6. * (C) Copyright 2009
  7. * Marvell Semiconductor <www.marvell.com>
  8. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  9. *
  10. * See file CREDITS for list of people who contributed to this
  11. * project.
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of
  16. * the License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. #ifndef _CONFIG_POGO_E02_H
  27. #define _CONFIG_POGO_E02_H
  28. /*
  29. * Machine type definition and ID
  30. */
  31. #define MACH_TYPE_POGO_E02 3542
  32. #define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
  33. #define CONFIG_IDENT_STRING "\nPogo E02"
  34. /*
  35. * High Level Configuration Options (easy to change)
  36. */
  37. #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  38. #define CONFIG_KIRKWOOD /* SOC Family Name */
  39. #define CONFIG_KW88F6281 /* SOC Name */
  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. #define CONFIG_SYS_MVFS
  46. #include <config_cmd_default.h>
  47. #define CONFIG_CMD_DHCP
  48. #define CONFIG_CMD_ENV
  49. #define CONFIG_CMD_MII
  50. #define CONFIG_CMD_NAND
  51. #define CONFIG_CMD_PING
  52. #define CONFIG_CMD_USB
  53. /*
  54. * mv-common.h should be defined after CMD configs since it used them
  55. * to enable certain macros
  56. */
  57. #include "mv-common.h"
  58. /* Remove or override few declarations from mv-common.h */
  59. #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
  60. #define CONFIG_SYS_PROMPT "PogoE02> "
  61. /*
  62. * Environment variables configurations
  63. */
  64. #ifdef CONFIG_CMD_NAND
  65. #define CONFIG_ENV_IS_IN_NAND
  66. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
  67. #else
  68. #define CONFIG_ENV_IS_NOWHERE
  69. #endif
  70. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  71. #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
  72. /*
  73. * Default environment variables
  74. */
  75. #define CONFIG_BOOTCOMMAND \
  76. "setenv bootargs $(bootargs_console); " \
  77. "run bootcmd_usb; " \
  78. "bootm 0x00800000 0x01100000"
  79. #define CONFIG_EXTRA_ENV_SETTINGS \
  80. "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
  81. "32M(rootfs),-(data)\0"\
  82. "mtdids=nand0=orion_nand\0"\
  83. "bootargs_console=console=ttyS0,115200\0" \
  84. "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
  85. "ext2load usb 0:1 0x01100000 /uInitrd\0"
  86. /*
  87. * Ethernet Driver configuration
  88. */
  89. #ifdef CONFIG_CMD_NET
  90. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  91. #define CONFIG_PHY_BASE_ADR 0
  92. #endif /* CONFIG_CMD_NET */
  93. /*
  94. * File system
  95. */
  96. #define CONFIG_CMD_EXT2
  97. #define CONFIG_CMD_FAT
  98. #define CONFIG_CMD_JFFS2
  99. #define CONFIG_CMD_UBI
  100. #define CONFIG_CMD_UBIFS
  101. #define CONFIG_RBTREE
  102. #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  103. #define CONFIG_MTD_PARTITIONS
  104. #define CONFIG_CMD_MTDPARTS
  105. #define CONFIG_LZO
  106. #endif /* _CONFIG_POGO_E02_H */