mgcoge3un.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * (C) Copyright 2009
  3. * Marvell Semiconductor <www.marvell.com>
  4. * Prafulla Wadaskar <prafulla@marvell.com>
  5. *
  6. * (C) Copyright 2009
  7. * Stefan Roese, DENX Software Engineering, sr@denx.de.
  8. *
  9. * (C) Copyright 2010-2011
  10. * Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
  11. *
  12. * See file CREDITS for list of people who contributed to this
  13. * project.
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of
  18. * the License, or (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  28. * MA 02110-1301 USA
  29. */
  30. /* for linking errors see
  31. * http://lists.denx.de/pipermail/u-boot/2009-July/057350.html */
  32. #ifndef _CONFIG_MGCOGE3UN_H
  33. #define _CONFIG_MGCOGE3UN_H
  34. /* include common defines/options for all arm based Keymile boards */
  35. #include "km/km_arm.h"
  36. /*
  37. * Version number information
  38. */
  39. #define CONFIG_IDENT_STRING "\nKeymile MGCOGE3UN"
  40. #define CONFIG_HOSTNAME mgcoge3un
  41. #define CONFIG_MGCOGE3UN
  42. #define KM_IVM_BUS "pca9547:70:9" /* I2C2 (Mux-Port 1)*/
  43. #define KM_ENV_BUS "pca9547:70:d" /* I2C2 (Mux-Port 5)*/
  44. /* we use a new RAM type on mgcoge3un board */
  45. #undef CONFIG_SYS_KWD_CONFIG
  46. #define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-memphis.cfg
  47. /*
  48. * mgcoge3un has a fixed link to the marvell switch
  49. * with 100MB full duplex and autoneg off, for this
  50. * reason we have to change the default settings
  51. */
  52. #define PORT_SERIAL_CONTROL_VALUE ( \
  53. MVGBE_FORCE_LINK_PASS | \
  54. MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
  55. MVGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
  56. MVGBE_ADV_NO_FLOW_CTRL | \
  57. MVGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
  58. MVGBE_FORCE_BP_MODE_NO_JAM | \
  59. (1 << 9) /* Reserved bit has to be 1 */ | \
  60. MVGBE_DO_NOT_FORCE_LINK_FAIL | \
  61. MVGBE_DIS_AUTO_NEG_SPEED_GMII | \
  62. MVGBE_DTE_ADV_0 | \
  63. MVGBE_MIIPHY_MAC_MODE | \
  64. MVGBE_AUTO_NEG_NO_CHANGE | \
  65. MVGBE_MAX_RX_PACKET_1552BYTE | \
  66. MVGBE_CLR_EXT_LOOPBACK | \
  67. MVGBE_SET_FULL_DUPLEX_MODE | \
  68. MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX |\
  69. MVGBE_SET_GMII_SPEED_TO_10_100 |\
  70. MVGBE_SET_MII_SPEED_TO_100)
  71. #define CONFIG_KM_BOARD_EXTRA_ENV "waitforne=true\0"
  72. /*
  73. * PCIe port not used on mgcoge3un
  74. */
  75. #undef CONFIG_KIRKWOOD_PCIE_INIT
  76. #endif /* _CONFIG_MGCOGE3UN_H */