s3c64x0.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * (C) Copyright 2003
  3. * David MÃŒller ELSOFT AG Switzerland. d.mueller@elsoft.ch
  4. *
  5. * (C) Copyright 2008
  6. * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. /************************************************
  27. * NAME : S3C64XX.h
  28. * Version : 31.3.2003
  29. *
  30. * common stuff for SAMSUNG S3C64XX SoC
  31. ************************************************/
  32. #ifndef __S3C64XX_H__
  33. #define __S3C64XX_H__
  34. #if defined(CONFIG_SYNC_MODE) && defined(CONFIG_S3C6400)
  35. #error CONFIG_SYNC_MODE unavailable on S3C6400, please, fix your configuration!
  36. #endif
  37. #include <asm/types.h>
  38. /* UART (see manual chapter 11) */
  39. typedef struct {
  40. volatile u32 ULCON;
  41. volatile u32 UCON;
  42. volatile u32 UFCON;
  43. volatile u32 UMCON;
  44. volatile u32 UTRSTAT;
  45. volatile u32 UERSTAT;
  46. volatile u32 UFSTAT;
  47. volatile u32 UMSTAT;
  48. #ifdef __BIG_ENDIAN
  49. volatile u8 res1[3];
  50. volatile u8 UTXH;
  51. volatile u8 res2[3];
  52. volatile u8 URXH;
  53. #else /* Little Endian */
  54. volatile u8 UTXH;
  55. volatile u8 res1[3];
  56. volatile u8 URXH;
  57. volatile u8 res2[3];
  58. #endif
  59. volatile u32 UBRDIV;
  60. #ifdef __BIG_ENDIAN
  61. volatile u8 res3[2];
  62. volatile u16 UDIVSLOT;
  63. #else
  64. volatile u16 UDIVSLOT;
  65. volatile u8 res3[2];
  66. #endif
  67. } s3c64xx_uart;
  68. /* PWM TIMER (see manual chapter 10) */
  69. typedef struct {
  70. volatile u32 TCNTB;
  71. volatile u32 TCMPB;
  72. volatile u32 TCNTO;
  73. } s3c64xx_timer;
  74. typedef struct {
  75. volatile u32 TCFG0;
  76. volatile u32 TCFG1;
  77. volatile u32 TCON;
  78. s3c64xx_timer ch[4];
  79. volatile u32 TCNTB4;
  80. volatile u32 TCNTO4;
  81. } s3c64xx_timers;
  82. #endif /*__S3C64XX_H__*/