suvd3.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * Copyright (C) 2006 Freescale Semiconductor, Inc.
  3. * Dave Liu <daveliu@freescale.com>
  4. *
  5. * Copyright (C) 2007 Logic Product Development, Inc.
  6. * Peter Barada <peterb@logicpd.com>
  7. *
  8. * Copyright (C) 2007 MontaVista Software, Inc.
  9. * Anton Vorontsov <avorontsov@ru.mvista.com>
  10. *
  11. * (C) Copyright 2010
  12. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. */
  19. #ifndef __CONFIG_H
  20. #define __CONFIG_H
  21. /*
  22. * High Level Configuration Options
  23. */
  24. #define CONFIG_SUVD3 /* SUVD3 board specific */
  25. #define CONFIG_HOSTNAME suvd3
  26. #define CONFIG_KM_BOARD_NAME "suvd3"
  27. #define CONFIG_SYS_TEXT_BASE 0xF0000000
  28. /* include common defines/options for all 8321 Keymile boards */
  29. #include "km/km8321-common.h"
  30. #define CONFIG_SYS_APP1_BASE 0xA0000000
  31. #define CONFIG_SYS_APP1_SIZE 256 /* Megabytes */
  32. #define CONFIG_SYS_APP2_BASE 0xB0000000
  33. #define CONFIG_SYS_APP2_SIZE 256 /* Megabytes */
  34. /* EEprom support */
  35. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
  36. /*
  37. * Init Local Bus Memory Controller:
  38. *
  39. * Bank Bus Machine PortSz Size Device
  40. * ---- --- ------- ------ ----- ------
  41. * 2 Local UPMA 16 bit 256MB APP1
  42. * 3 Local GPCM 16 bit 256MB APP2
  43. *
  44. */
  45. /*
  46. * APP1 on the local bus CS2
  47. */
  48. #define CONFIG_SYS_LBLAWBAR2_PRELIM CONFIG_SYS_APP1_BASE
  49. #define CONFIG_SYS_LBLAWAR2_PRELIM (LBLAWAR_EN | LBLAWAR_256MB)
  50. #define CONFIG_SYS_BR2_PRELIM (CONFIG_SYS_APP1_BASE | \
  51. BR_PS_16 | \
  52. BR_MS_UPMA | \
  53. BR_V)
  54. #define CONFIG_SYS_OR2_PRELIM (MEG_TO_AM(CONFIG_SYS_APP1_SIZE))
  55. #define CONFIG_SYS_BR3_PRELIM (CONFIG_SYS_APP2_BASE | \
  56. BR_PS_16 | \
  57. BR_V)
  58. #define CONFIG_SYS_OR3_PRELIM (MEG_TO_AM(CONFIG_SYS_APP2_SIZE) | \
  59. OR_GPCM_CSNT | \
  60. OR_GPCM_ACS_DIV4 | \
  61. OR_GPCM_SCY_3 | \
  62. OR_GPCM_TRLX)
  63. #define CONFIG_SYS_MAMR (MxMR_GPL_x4DIS | \
  64. 0x0000c000 | \
  65. MxMR_WLFx_2X)
  66. #define CONFIG_SYS_LBLAWBAR3_PRELIM CONFIG_SYS_APP2_BASE
  67. #define CONFIG_SYS_LBLAWAR3_PRELIM (LBLAWAR_EN | LBLAWAR_256MB)
  68. /*
  69. * MMU Setup
  70. */
  71. /* APP1: icache cacheable, but dcache-inhibit and guarded */
  72. #define CONFIG_SYS_IBAT5L (CONFIG_SYS_APP1_BASE | BATL_PP_10 | \
  73. BATL_MEMCOHERENCE)
  74. #define CONFIG_SYS_IBAT5U (CONFIG_SYS_APP1_BASE | BATU_BL_256M | \
  75. BATU_VS | BATU_VP)
  76. #define CONFIG_SYS_DBAT5L (CONFIG_SYS_APP1_BASE | BATL_PP_10 | \
  77. BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  78. #define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U
  79. #define CONFIG_SYS_IBAT6L (CONFIG_SYS_APP2_BASE | BATL_PP_10 | \
  80. BATL_MEMCOHERENCE)
  81. #define CONFIG_SYS_IBAT6U (CONFIG_SYS_APP2_BASE | BATU_BL_256M | \
  82. BATU_VS | BATU_VP)
  83. #define CONFIG_SYS_DBAT6L (CONFIG_SYS_APP2_BASE | BATL_PP_10 | \
  84. BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  85. #define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U
  86. #endif /* __CONFIG_H */