gplugd.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * (C) Copyright 2011
  3. * eInfochips Ltd. <www.einfochips.com>
  4. * Written-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
  5. *
  6. * Based on Aspenite:
  7. * (C) Copyright 2010
  8. * Marvell Semiconductor <www.marvell.com>
  9. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  10. * Contributor: Mahavir Jain <mjain@marvell.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. #ifndef __CONFIG_GPLUGD_H
  31. #define __CONFIG_GPLUGD_H
  32. /*
  33. * Version number information
  34. */
  35. #define CONFIG_IDENT_STRING "\nMarvell-gplugD"
  36. /*
  37. * High Level Configuration Options
  38. */
  39. #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */
  40. #define CONFIG_ARMADA100 1 /* SOC Family Name */
  41. #define CONFIG_ARMADA168 1 /* SOC Used on this Board */
  42. #define CONFIG_MACH_SHEEVAD /* Machine type */
  43. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  44. #define CONFIG_SYS_TEXT_BASE 0x00f00000
  45. /*
  46. * There is no internal RAM in ARMADA100, using DRAM
  47. * TBD: dcache to be used for this
  48. */
  49. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000)
  50. #define CONFIG_NR_DRAM_BANKS_MAX 2
  51. /*
  52. * Commands configuration
  53. */
  54. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  55. #include <config_cmd_default.h>
  56. #define CONFIG_CMD_I2C
  57. #define CONFIG_CMD_AUTOSCRIPT
  58. #undef CONFIG_CMD_FPGA
  59. /* Disable DCACHE */
  60. #define CONFIG_SYS_DCACHE_OFF
  61. /* Network configuration */
  62. #ifdef CONFIG_CMD_NET
  63. #define CONFIG_CMD_PING
  64. #define CONFIG_NET_MULTI
  65. #define CONFIG_ARMADA100_FEC
  66. /* DHCP Support */
  67. #define CONFIG_CMD_DHCP
  68. #define CONFIG_BOOTP_DHCP_REQUEST_DELAY 50000
  69. #endif /* CONFIG_CMD_NET */
  70. /* GPIO Support */
  71. #define CONFIG_MARVELL_GPIO
  72. /* PHY configuration */
  73. #define CONFIG_MII
  74. #define CONFIG_CMD_MII
  75. #define CONFIG_RESET_PHY_R
  76. /* 88E3015 register definition */
  77. #define PHY_LED_PAR_SEL_REG 22
  78. #define PHY_LED_MAN_REG 25
  79. #define PHY_LED_VAL 0x5b /* LINK LED1, ACT LED2 */
  80. /* GPIO Configuration for PHY */
  81. #define CONFIG_SYS_GPIO_PHY_RST 104 /* GPIO104 */
  82. /*
  83. * mv-common.h should be defined after CMD configs since it used them
  84. * to enable certain macros
  85. */
  86. #include "mv-common.h"
  87. #undef CONFIG_ARCH_MISC_INIT
  88. #ifdef CONFIG_SYS_NS16550_COM1
  89. #undef CONFIG_SYS_NS16550_COM1
  90. #endif /* CONFIG_SYS_NS16550_COM1 */
  91. #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE
  92. /*
  93. * Environment variables configurations
  94. */
  95. #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
  96. #define CONFIG_ENV_SIZE 0x20000 /* 64k */
  97. #endif /* __CONFIG_GPLUGD_H */