portl2.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. #define KM_ENV_BUS "pca9544a:70:a" /* I2C2 (Mux-Port 2)*/
  45. /*
  46. * portl2 has a fixed link to the XMPP backplane
  47. * with 100MB full duplex and autoneg off, for this
  48. * reason we have to change the default settings
  49. */
  50. #define PORT_SERIAL_CONTROL_VALUE ( \
  51. MVGBE_FORCE_LINK_PASS | \
  52. MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
  53. MVGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
  54. MVGBE_ADV_NO_FLOW_CTRL | \
  55. MVGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
  56. MVGBE_FORCE_BP_MODE_NO_JAM | \
  57. (1 << 9) /* Reserved bit has to be 1 */ | \
  58. MVGBE_DO_NOT_FORCE_LINK_FAIL | \
  59. MVGBE_DIS_AUTO_NEG_SPEED_GMII | \
  60. MVGBE_DTE_ADV_0 | \
  61. MVGBE_MIIPHY_MAC_MODE | \
  62. MVGBE_AUTO_NEG_NO_CHANGE | \
  63. MVGBE_MAX_RX_PACKET_1552BYTE | \
  64. MVGBE_CLR_EXT_LOOPBACK | \
  65. MVGBE_SET_FULL_DUPLEX_MODE | \
  66. MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX |\
  67. MVGBE_SET_GMII_SPEED_TO_10_100 |\
  68. MVGBE_SET_MII_SPEED_TO_100)
  69. /*
  70. * portl2 does use the PCIe Port0
  71. */
  72. #define CONFIG_KIRKWOOD_PCIE_INIT
  73. #endif /* _CONFIG_PORTL2_H */