portl2.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. * Valentin Longchamp, Keymile AG Bern, valentin.longchamp@keymile.com
  12. *
  13. * See file CREDITS for list of people who contributed to this
  14. * project.
  15. *
  16. * This program is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of
  19. * the License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  29. * MA 02110-1301 USA
  30. */
  31. /* for linking errors see
  32. * http://lists.denx.de/pipermail/u-boot/2009-July/057350.html */
  33. #ifndef _CONFIG_PORTL2_H
  34. #define _CONFIG_PORTL2_H
  35. /* include common defines/options for all arm based Keymile boards */
  36. #include "km/km_arm.h"
  37. /*
  38. * Version number information
  39. */
  40. #define CONFIG_IDENT_STRING "\nKeymile Port-L2"
  41. #define CONFIG_HOSTNAME portl2
  42. #define CONFIG_PORTL2
  43. #define KM_IVM_BUS "pca9544a:70:9" /* I2C2 (Mux-Port 1)*/
  44. /*
  45. * Note: This is only valid for HW > P1A if you got an outdated P1A
  46. * use KM_ENV_BUS "pca9544a:70:a"
  47. */
  48. #define KM_ENV_BUS "pca9544a:70:d" /* I2C2 (Mux-Port 5)*/
  49. /*
  50. * portl2 has a fixed link to the XMPP backplane
  51. * with 100MB full duplex and autoneg off, for this
  52. * reason we have to change the default settings
  53. */
  54. #define PORT_SERIAL_CONTROL_VALUE ( \
  55. MVGBE_FORCE_LINK_PASS | \
  56. MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
  57. MVGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
  58. MVGBE_ADV_NO_FLOW_CTRL | \
  59. MVGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
  60. MVGBE_FORCE_BP_MODE_NO_JAM | \
  61. (1 << 9) /* Reserved bit has to be 1 */ | \
  62. MVGBE_DO_NOT_FORCE_LINK_FAIL | \
  63. MVGBE_DIS_AUTO_NEG_SPEED_GMII | \
  64. MVGBE_DTE_ADV_0 | \
  65. MVGBE_MIIPHY_MAC_MODE | \
  66. MVGBE_AUTO_NEG_NO_CHANGE | \
  67. MVGBE_MAX_RX_PACKET_1552BYTE | \
  68. MVGBE_CLR_EXT_LOOPBACK | \
  69. MVGBE_SET_FULL_DUPLEX_MODE | \
  70. MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX |\
  71. MVGBE_SET_GMII_SPEED_TO_10_100 |\
  72. MVGBE_SET_MII_SPEED_TO_100)
  73. /*
  74. * portl2 does use the PCIe Port0
  75. */
  76. #define CONFIG_KIRKWOOD_PCIE_INIT
  77. #endif /* _CONFIG_PORTL2_H */