asm-offsets.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * (C) Copyright 2010
  3. * Matthias Weisser <weisserm@arcor.de>
  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 ASM_OFFSETS_H
  24. #define ASM_OFFSETS_H
  25. /*
  26. * Offset definitions for DDR controller
  27. */
  28. #define DDR2_DRIC 0x00
  29. #define DDR2_DRIC1 0x02
  30. #define DDR2_DRIC2 0x04
  31. #define DDR2_DRCA 0x06
  32. #define DDR2_DRCM 0x08
  33. #define DDR2_DRCST1 0x0a
  34. #define DDR2_DRCST2 0x0c
  35. #define DDR2_DRCR 0x0e
  36. #define DDR2_DRCF 0x20
  37. #define DDR2_DRASR 0x30
  38. #define DDR2_DRIMS 0x50
  39. #define DDR2_DROS 0x60
  40. #define DDR2_DRIBSODT1 0x64
  41. #define DDR2_DROABA 0x70
  42. #define DDR2_DROBS 0x84
  43. /*
  44. * Offset definitions Chip Control Module
  45. */
  46. #define CCNT_CDCRC 0xec
  47. /*
  48. * Offset definitions clock reset generator
  49. */
  50. #define CRG_CRPR 0x00
  51. #define CRG_CRHA 0x18
  52. #define CRG_CRPA 0x1c
  53. #define CRG_CRPB 0x20
  54. #define CRG_CRHB 0x24
  55. #define CRG_CRAM 0x28
  56. /*
  57. * Offset definitions External bus interface
  58. */
  59. #define MEMC_MCFMODE0 0x00
  60. #define MEMC_MCFMODE2 0x08
  61. #define MEMC_MCFMODE4 0x10
  62. #define MEMC_MCFTIM0 0x20
  63. #define MEMC_MCFTIM2 0x28
  64. #define MEMC_MCFTIM4 0x30
  65. #define MEMC_MCFAREA0 0x40
  66. #define MEMC_MCFAREA2 0x48
  67. #define MEMC_MCFAREA4 0x50
  68. #endif /* ASM_OFFSETS_H */