mv88f6281gtw_ge.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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_MV88F6281GTW_GE_H
  25. #define _CONFIG_MV88F6281GTW_GE_H
  26. /*
  27. * Version number information
  28. */
  29. #define CONFIG_IDENT_STRING "\nMarvell-MV88F6281GTW_GE"
  30. /*
  31. * High Level Configuration Options (easy to change)
  32. */
  33. #define CONFIG_MARVELL 1
  34. #define CONFIG_ARM926EJS 1 /* Basic Architecture */
  35. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  36. #define CONFIG_KIRKWOOD 1 /* SOC Family Name */
  37. #define CONFIG_KW88F6281 1 /* SOC Name */
  38. #define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */
  39. #define CONFIG_MD5 /* get_random_hex on krikwood needs MD5 support */
  40. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  41. #define CONFIG_KIRKWOOD_EGIGA_INIT /* Enable GbePort0/1 for kernel */
  42. #define CONFIG_KIRKWOOD_PCIE_INIT /* Enable PCIE Port0 for kernel */
  43. #define CONFIG_KIRKWOOD_RGMII_PAD_1V8 /* Set RGMII Pad voltage to 1.8V */
  44. /*
  45. * CLKs configurations
  46. */
  47. #define CONFIG_SYS_HZ 1000
  48. /*
  49. * NS16550 Configuration
  50. */
  51. #define CONFIG_SYS_NS16550
  52. #define CONFIG_SYS_NS16550_SERIAL
  53. #define CONFIG_SYS_NS16550_REG_SIZE (-4)
  54. #define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
  55. #define CONFIG_SYS_NS16550_COM1 KW_UART0_BASE
  56. /*
  57. * Serial Port configuration
  58. * The following definitions let you select what serial you want to use
  59. * for your console driver.
  60. */
  61. #define CONFIG_CONS_INDEX 1 /*Console on UART0 */
  62. #define CONFIG_BAUDRATE 115200
  63. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
  64. 115200,230400, 460800, 921600 }
  65. /* auto boot */
  66. #define CONFIG_BOOTDELAY 3 /* default enable autoboot */
  67. /*
  68. * For booting Linux, the board info and command line data
  69. * have to be in the first 8 MB of memory, since this is
  70. * the maximum mapped by the Linux kernel during initialization.
  71. */
  72. #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
  73. #define CONFIG_INITRD_TAG 1 /* enable INITRD tag */
  74. #define CONFIG_SETUP_MEMORY_TAGS 1 /* enable memory tag */
  75. #define CONFIG_SYS_PROMPT "Marvell>> " /* Command Prompt */
  76. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */
  77. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
  78. +sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buff */
  79. /*
  80. * Commands configuration
  81. */
  82. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  83. #include <config_cmd_default.h>
  84. #define CONFIG_CMD_AUTOSCRIPT
  85. #define CONFIG_CMD_DHCP
  86. #define CONFIG_CMD_ENV
  87. #define CONFIG_CMD_FAT
  88. #define CONFIG_CMD_PING
  89. #define CONFIG_CMD_SF
  90. #define CONFIG_CMD_USB
  91. /*
  92. * Flash configuration
  93. */
  94. #ifdef CONFIG_CMD_SF
  95. #define CONFIG_SPI_FLASH 1
  96. #define CONFIG_HARD_SPI 1
  97. #define CONFIG_KIRKWOOD_SPI 1
  98. #define CONFIG_SPI_FLASH_MACRONIX 1
  99. #define CONFIG_ENV_SPI_BUS 0
  100. #define CONFIG_ENV_SPI_CS 0
  101. #define CONFIG_ENV_SPI_MAX_HZ 50000000 /*50Mhz */
  102. #endif
  103. /*
  104. * Environment variables configurations
  105. */
  106. #ifdef CONFIG_SPI_FLASH
  107. #define CONFIG_ENV_IS_IN_SPI_FLASH 1
  108. #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */
  109. #else
  110. #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
  111. #endif
  112. #define CONFIG_ENV_SIZE 0x1000 /* 4k */
  113. #define CONFIG_ENV_ADDR 0x30000
  114. #define CONFIG_ENV_OFFSET 0x30000 /* env starts here */
  115. /*
  116. * Default environment variables
  117. */
  118. #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
  119. "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
  120. "${x_bootcmd_usb}; bootm 0x6400000;"
  121. #define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \
  122. "512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0"
  123. #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
  124. "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
  125. "x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \
  126. "x_bootcmd_usb=usb start\0" \
  127. "x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0"
  128. /*
  129. * Size of malloc() pool
  130. */
  131. #define CONFIG_SYS_MALLOC_LEN (1024 * 128) /* 128kB for malloc() */
  132. /* size in bytes reserved for initial data */
  133. #define CONFIG_SYS_GBL_DATA_SIZE 128
  134. /*
  135. * Other required minimal configurations
  136. */
  137. #define CONFIG_CONSOLE_INFO_QUIET /* some code reduction */
  138. #define CONFIG_ARCH_CPU_INIT /* call arch_cpu_init() */
  139. #define CONFIG_ARCH_MISC_INIT /* call arch_misc_init() */
  140. #define CONFIG_DISPLAY_CPUINFO /* Display cpu info */
  141. #define CONFIG_NR_DRAM_BANKS 4
  142. #define CONFIG_STACKSIZE 0x00100000 /* regular stack- 1M */
  143. #define CONFIG_SYS_LOAD_ADDR 0x00800000 /* default load adr- 8M */
  144. #define CONFIG_SYS_MEMTEST_START 0x00400000 /* 4M */
  145. #define CONFIG_SYS_MEMTEST_END 0x007fffff /*(_8M -1) */
  146. #define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */
  147. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  148. /*
  149. * Ethernet Driver configuration
  150. */
  151. #ifdef CONFIG_CMD_NET
  152. #define CONFIG_CMD_DHCP
  153. #define CONFIG_CMD_PING
  154. #define CONFIG_NETCONSOLE /* include NetConsole support */
  155. #define CONFIG_NET_MULTI /* specify more that one ports available */
  156. #define CONFIG_MII /* expose smi ove miiphy interface */
  157. #define CONFIG_MVGBE /* Enable Marvell Gbe Controller Driver */
  158. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN /* detect link using phy */
  159. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  160. #define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */
  161. #endif /* CONFIG_CMD_NET */
  162. /*
  163. * Marvell 88Exxxx Switch configurations
  164. */
  165. #define CONFIG_RESET_PHY_R /* use reset_phy() to init phy/swtich */
  166. #define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */
  167. /*
  168. * USB/EHCI
  169. */
  170. #ifdef CONFIG_CMD_USB
  171. #define CONFIG_USB_EHCI /* Enable EHCI USB support */
  172. #define CONFIG_USB_EHCI_KIRKWOOD /* on Kirkwood platform */
  173. #define CONFIG_EHCI_IS_TDI
  174. #define CONFIG_USB_STORAGE
  175. #define CONFIG_DOS_PARTITION
  176. #define CONFIG_ISO_PARTITION
  177. #define CONFIG_SUPPORT_VFAT
  178. #endif /* CONFIG_CMD_USB */
  179. #endif /* _CONFIG_MV88F6281GTW_GE_H */