spear3xx.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * (C) Copyright 2009
  3. * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef __CONFIG_H
  24. #define __CONFIG_H
  25. /*
  26. * High Level Configuration Options
  27. * (easy to change)
  28. */
  29. #if defined(CONFIG_MK_spear300)
  30. #define CONFIG_SPEAR3XX 1
  31. #define CONFIG_SPEAR300 1
  32. #elif defined(CONFIG_MK_spear310)
  33. #define CONFIG_SPEAR3XX 1
  34. #define CONFIG_SPEAR310 1
  35. #endif
  36. #include <configs/spear-common.h>
  37. /* Serial Configuration (PL011) */
  38. #define CONFIG_SYS_SERIAL0 0xD0000000
  39. #if defined(CONFIG_SPEAR300)
  40. #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
  41. #elif defined(CONFIG_SPEAR310)
  42. #if (CONFIG_CONS_INDEX)
  43. #undef CONFIG_PL011_CLOCK
  44. #define CONFIG_PL011_CLOCK (83 * 1000 * 1000)
  45. #endif
  46. #define CONFIG_SYS_SERIAL1 0xB2000000
  47. #define CONFIG_SYS_SERIAL2 0xB2080000
  48. #define CONFIG_SYS_SERIAL3 0xB2100000
  49. #define CONFIG_SYS_SERIAL4 0xB2180000
  50. #define CONFIG_SYS_SERIAL5 0xB2200000
  51. #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
  52. (void *)CONFIG_SYS_SERIAL1, \
  53. (void *)CONFIG_SYS_SERIAL2, \
  54. (void *)CONFIG_SYS_SERIAL3, \
  55. (void *)CONFIG_SYS_SERIAL4, \
  56. (void *)CONFIG_SYS_SERIAL5 }
  57. #endif
  58. #if defined(CONFIG_SPEAR_EMI)
  59. #define CONFIG_SYS_FLASH_CFI
  60. #define CONFIG_FLASH_CFI_DRIVER
  61. #if defined(CONFIG_SPEAR310)
  62. #define CONFIG_SYS_FLASH_BASE 0x50000000
  63. #define CONFIG_SYS_CS1_FLASH_BASE 0x60000000
  64. #define CONFIG_SYS_CS2_FLASH_BASE 0x70000000
  65. #define CONFIG_SYS_CS3_FLASH_BASE 0x80000000
  66. #define CONFIG_SYS_CS4_FLASH_BASE 0x90000000
  67. #define CONFIG_SYS_CS5_FLASH_BASE 0xA0000000
  68. #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, \
  69. CONFIG_SYS_CS1_FLASH_BASE, \
  70. CONFIG_SYS_CS2_FLASH_BASE, \
  71. CONFIG_SYS_CS3_FLASH_BASE, \
  72. CONFIG_SYS_CS4_FLASH_BASE, \
  73. CONFIG_SYS_CS5_FLASH_BASE }
  74. #define CONFIG_SYS_MAX_FLASH_BANKS 6
  75. #endif
  76. #define CONFIG_SYS_MAX_FLASH_SECT (127 + 8)
  77. #define CONFIG_SYS_FLASH_QUIET_TEST 1
  78. #endif
  79. #if defined(CONFIG_SPEAR300)
  80. #define CONFIG_SYS_NAND_BASE (0x80000000)
  81. #elif defined(CONFIG_SPEAR310)
  82. #define CONFIG_SYS_NAND_BASE (0x40000000)
  83. #endif
  84. #endif /* __CONFIG_H */