gplugd.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. * FIXME: fix for error caused due to recent update to mach-types.h
  34. */
  35. #include <asm/mach-types.h>
  36. #ifdef MACH_TYPE_SHEEVAD
  37. #error "MACH_TYPE_SHEEVAD has been defined properly, please remove this."
  38. #else
  39. #define MACH_TYPE_SHEEVAD 2625
  40. #endif
  41. /*
  42. * Version number information
  43. */
  44. #define CONFIG_IDENT_STRING "\nMarvell-gplugD"
  45. /*
  46. * High Level Configuration Options
  47. */
  48. #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */
  49. #define CONFIG_ARMADA100 1 /* SOC Family Name */
  50. #define CONFIG_ARMADA168 1 /* SOC Used on this Board */
  51. #define CONFIG_MACH_TYPE MACH_TYPE_SHEEVAD /* Machine type */
  52. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  53. #define CONFIG_SYS_TEXT_BASE 0x00f00000
  54. /*
  55. * There is no internal RAM in ARMADA100, using DRAM
  56. * TBD: dcache to be used for this
  57. */
  58. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000)
  59. #define CONFIG_NR_DRAM_BANKS_MAX 2
  60. /*
  61. * Commands configuration
  62. */
  63. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  64. #include <config_cmd_default.h>
  65. #define CONFIG_CMD_I2C
  66. #undef CONFIG_CMD_FPGA
  67. #define CONFIG_CMD_USB
  68. #define CONFIG_CMD_EXT2
  69. #define CONFIG_CMD_FAT
  70. /* Disable DCACHE */
  71. #define CONFIG_SYS_DCACHE_OFF
  72. /* Network configuration */
  73. #ifdef CONFIG_CMD_NET
  74. #define CONFIG_CMD_PING
  75. #define CONFIG_ARMADA100_FEC
  76. /* DHCP Support */
  77. #define CONFIG_CMD_DHCP
  78. #define CONFIG_BOOTP_DHCP_REQUEST_DELAY 50000
  79. #endif /* CONFIG_CMD_NET */
  80. /* GPIO Support */
  81. #define CONFIG_MARVELL_GPIO
  82. /* PHY configuration */
  83. #define CONFIG_MII
  84. #define CONFIG_CMD_MII
  85. #define CONFIG_RESET_PHY_R
  86. /* 88E3015 register definition */
  87. #define PHY_LED_PAR_SEL_REG 22
  88. #define PHY_LED_MAN_REG 25
  89. #define PHY_LED_VAL 0x5b /* LINK LED1, ACT LED2 */
  90. /* GPIO Configuration for PHY */
  91. #define CONFIG_SYS_GPIO_PHY_RST 104 /* GPIO104 */
  92. /* SPI Support */
  93. #define CONFIG_ARMADA100_SPI
  94. #define CONFIG_ENV_SPI_CS 110
  95. #define CONFIG_SYS_SSP_PORT 2
  96. /* Flash Support */
  97. #define CONFIG_CMD_SF
  98. #define CONFIG_SPI_FLASH_ATMEL
  99. /*
  100. * mv-common.h should be defined after CMD configs since it used them
  101. * to enable certain macros
  102. */
  103. #include "mv-common.h"
  104. #undef CONFIG_ARCH_MISC_INIT
  105. #ifdef CONFIG_SYS_NS16550_COM1
  106. #undef CONFIG_SYS_NS16550_COM1
  107. #endif /* CONFIG_SYS_NS16550_COM1 */
  108. #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE
  109. /*
  110. * Environment variables configurations
  111. */
  112. #define CONFIG_ENV_IS_IN_SPI_FLASH
  113. #define CONFIG_ENV_SECT_SIZE 0x4000
  114. #define CONFIG_ENV_SIZE 0x4000
  115. #define CONFIG_ENV_OFFSET 0x07C000
  116. #define CONFIG_CMD_ASKENV
  117. #define CONFIG_CMD_EDITENV
  118. #define CONFIG_CMD_SAVEENV
  119. #ifdef CONFIG_CMD_USB
  120. #define CONFIG_USB_EHCI
  121. #define CONFIG_USB_EHCI_ARMADA100
  122. #define CONFIG_EHCI_IS_TDI
  123. #define CONFIG_USB_STORAGE
  124. #endif /* CONFIG_CMD_USB */
  125. #define CONFIG_DOS_PARTITION
  126. #define CONFIG_ISO_PARTITION
  127. #define CONFIG_SUPPORT_VFAT
  128. #endif /* __CONFIG_GPLUGD_H */