gplugd.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * (C) Copyright 2011
  3. * eInfochips Ltd. <www.einfochips.com>
  4. * Written-by: Ajay Bhargav <contact@8051projects.net>
  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. * SPDX-License-Identifier: GPL-2.0+
  13. */
  14. #ifndef __CONFIG_GPLUGD_H
  15. #define __CONFIG_GPLUGD_H
  16. /*
  17. * FIXME: fix for error caused due to recent update to mach-types.h
  18. */
  19. #include <asm/mach-types.h>
  20. #ifdef MACH_TYPE_SHEEVAD
  21. #error "MACH_TYPE_SHEEVAD has been defined properly, please remove this."
  22. #else
  23. #define MACH_TYPE_SHEEVAD 2625
  24. #endif
  25. /*
  26. * High Level Configuration Options
  27. */
  28. #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */
  29. #define CONFIG_ARMADA100 1 /* SOC Family Name */
  30. #define CONFIG_ARMADA168 1 /* SOC Used on this Board */
  31. #define CONFIG_MACH_TYPE MACH_TYPE_SHEEVAD /* Machine type */
  32. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  33. #define CONFIG_SYS_TEXT_BASE 0x00f00000
  34. /*
  35. * There is no internal RAM in ARMADA100, using DRAM
  36. * TBD: dcache to be used for this
  37. */
  38. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000)
  39. #define CONFIG_NR_DRAM_BANKS_MAX 2
  40. /*
  41. * Commands configuration
  42. */
  43. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  44. /* Disable DCACHE */
  45. #define CONFIG_SYS_DCACHE_OFF
  46. /* Network configuration */
  47. #ifdef CONFIG_CMD_NET
  48. #define CONFIG_ARMADA100_FEC
  49. /* DHCP Support */
  50. #define CONFIG_BOOTP_DHCP_REQUEST_DELAY 50000
  51. #endif /* CONFIG_CMD_NET */
  52. /* GPIO Support */
  53. #define CONFIG_MARVELL_GPIO
  54. /* PHY configuration */
  55. #define CONFIG_MII
  56. #define CONFIG_RESET_PHY_R
  57. /* 88E3015 register definition */
  58. #define PHY_LED_PAR_SEL_REG 22
  59. #define PHY_LED_MAN_REG 25
  60. #define PHY_LED_VAL 0x5b /* LINK LED1, ACT LED2 */
  61. /* GPIO Configuration for PHY */
  62. #define CONFIG_SYS_GPIO_PHY_RST 104 /* GPIO104 */
  63. /* Flash Support */
  64. /*
  65. * mv-common.h should be defined after CMD configs since it used them
  66. * to enable certain macros
  67. */
  68. #include "mv-common.h"
  69. #undef CONFIG_ARCH_MISC_INIT
  70. #ifdef CONFIG_SYS_NS16550_COM1
  71. #undef CONFIG_SYS_NS16550_COM1
  72. #endif /* CONFIG_SYS_NS16550_COM1 */
  73. #define CONFIG_SYS_NS16550_COM1 ARMD1_UART3_BASE
  74. /*
  75. * Environment variables configurations
  76. */
  77. #define CONFIG_ENV_IS_NOWHERE
  78. #define CONFIG_ENV_SIZE 0x4000
  79. #ifdef CONFIG_CMD_USB
  80. #define CONFIG_USB_EHCI
  81. #define CONFIG_USB_EHCI_ARMADA100
  82. #define CONFIG_EHCI_IS_TDI
  83. #endif /* CONFIG_CMD_USB */
  84. #define CONFIG_DOS_PARTITION
  85. #define CONFIG_ISO_PARTITION
  86. #define CONFIG_SUPPORT_VFAT
  87. #endif /* __CONFIG_GPLUGD_H */