mx35pdk.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. *
  3. * (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
  4. *
  5. * (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #ifndef __BOARD_MX35_3STACK_H
  26. #define __BOARD_MX35_3STACK_H
  27. #define AIPS_MPR_CONFIG 0x77777777
  28. #define AIPS_OPACR_CONFIG 0x00000000
  29. /* MPR - priority is M4 > M2 > M3 > M5 > M0 > M1 */
  30. #define MAX_MPR_CONFIG 0x00302154
  31. /* SGPCR - always park on last master */
  32. #define MAX_SGPCR_CONFIG 0x00000010
  33. /* MGPCR - restore default values */
  34. #define MAX_MGPCR_CONFIG 0x00000000
  35. /*
  36. * M3IF Control Register (M3IFCTL)
  37. * MRRP[0] = L2CC0 not on priority list (0 << 0) = 0x00000000
  38. * MRRP[1] = L2CC1 not on priority list (0 << 0) = 0x00000000
  39. * MRRP[2] = MBX not on priority list (0 << 0) = 0x00000000
  40. * MRRP[3] = MAX1 not on priority list (0 << 0) = 0x00000000
  41. * MRRP[4] = SDMA not on priority list (0 << 0) = 0x00000000
  42. * MRRP[5] = MPEG4 not on priority list (0 << 0) = 0x00000000
  43. * MRRP[6] = IPU1 on priority list (1 << 6) = 0x00000040
  44. * MRRP[7] = IPU2 not on priority list (0 << 0) = 0x00000000
  45. * ------------
  46. * 0x00000040
  47. */
  48. #define M3IF_CONFIG 0x00000040
  49. #define DBG_BASE_ADDR WEIM_CTRL_CS5
  50. #define DBG_CSCR_U_CONFIG 0x0000D843
  51. #define DBG_CSCR_L_CONFIG 0x22252521
  52. #define DBG_CSCR_A_CONFIG 0x22220A00
  53. #define CCM_CCMR_CONFIG 0x003F4208
  54. #define CCM_PDR0_CONFIG 0x00801000
  55. #define PLL_BRM_OFFSET 31
  56. #define PLL_PD_OFFSET 26
  57. #define PLL_MFD_OFFSET 16
  58. #define PLL_MFI_OFFSET 10
  59. #define _PLL_BRM(x) ((x) << PLL_BRM_OFFSET)
  60. #define _PLL_PD(x) (((x) - 1) << PLL_PD_OFFSET)
  61. #define _PLL_MFD(x) (((x) - 1) << PLL_MFD_OFFSET)
  62. #define _PLL_MFI(x) ((x) << PLL_MFI_OFFSET)
  63. #define _PLL_MFN(x) (x)
  64. #define _PLL_SETTING(brm, pd, mfd, mfi, mfn) \
  65. (_PLL_BRM(brm) | _PLL_PD(pd) | _PLL_MFD(mfd) | _PLL_MFI(mfi) |\
  66. _PLL_MFN(mfn))
  67. #define CCM_MPLL_532_HZ _PLL_SETTING(1, 1, 12, 11, 1)
  68. #define CCM_MPLL_399_HZ _PLL_SETTING(0, 1, 16, 8, 5)
  69. #define CCM_PPLL_300_HZ _PLL_SETTING(0, 1, 4, 6, 1)
  70. /* MEMORY SETTING */
  71. #define ESDCTL_0x92220000 0x92220000
  72. #define ESDCTL_0xA2220000 0xA2220000
  73. #define ESDCTL_0xB2220000 0xB2220000
  74. #define ESDCTL_0x82228080 0x82228080
  75. #define ESDCTL_PRECHARGE 0x00000400
  76. #define ESDCTL_MDDR_CONFIG 0x007FFC3F
  77. #define ESDCTL_MDDR_MR 0x00000033
  78. #define ESDCTL_MDDR_EMR 0x02000000
  79. #define ESDCTL_DDR2_CONFIG 0x007FFC3F
  80. #define ESDCTL_DDR2_EMR2 0x04000000
  81. #define ESDCTL_DDR2_EMR3 0x06000000
  82. #define ESDCTL_DDR2_EN_DLL 0x02000400
  83. #define ESDCTL_DDR2_RESET_DLL 0x00000333
  84. #define ESDCTL_DDR2_MR 0x00000233
  85. #define ESDCTL_DDR2_OCD_DEFAULT 0x02000780
  86. #define ESDCTL_DELAY_LINE5 0x00F49F00
  87. #endif /* __BOARD_MX35_3STACK_H */