regs-iis.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* arch/arm/plat-samsung/include/plat/regs-iis.h
  2. *
  3. * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk>
  4. * http://www.simtec.co.uk/products/SWLINUX/
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * S3C2410 IIS register definition
  11. */
  12. #ifndef __ASM_ARCH_REGS_IIS_H
  13. #define __ASM_ARCH_REGS_IIS_H
  14. #define S3C2410_IISCON (0x00)
  15. #define S3C2410_IISCON_LRINDEX (1 << 8)
  16. #define S3C2410_IISCON_TXFIFORDY (1 << 7)
  17. #define S3C2410_IISCON_RXFIFORDY (1 << 6)
  18. #define S3C2410_IISCON_TXDMAEN (1 << 5)
  19. #define S3C2410_IISCON_RXDMAEN (1 << 4)
  20. #define S3C2410_IISCON_TXIDLE (1 << 3)
  21. #define S3C2410_IISCON_RXIDLE (1 << 2)
  22. #define S3C2410_IISCON_PSCEN (1 << 1)
  23. #define S3C2410_IISCON_IISEN (1 << 0)
  24. #define S3C2410_IISMOD (0x04)
  25. #define S3C2440_IISMOD_MPLL (1 << 9)
  26. #define S3C2410_IISMOD_SLAVE (1 << 8)
  27. #define S3C2410_IISMOD_NOXFER (0 << 6)
  28. #define S3C2410_IISMOD_RXMODE (1 << 6)
  29. #define S3C2410_IISMOD_TXMODE (2 << 6)
  30. #define S3C2410_IISMOD_TXRXMODE (3 << 6)
  31. #define S3C2410_IISMOD_LR_LLOW (0 << 5)
  32. #define S3C2410_IISMOD_LR_RLOW (1 << 5)
  33. #define S3C2410_IISMOD_IIS (0 << 4)
  34. #define S3C2410_IISMOD_MSB (1 << 4)
  35. #define S3C2410_IISMOD_8BIT (0 << 3)
  36. #define S3C2410_IISMOD_16BIT (1 << 3)
  37. #define S3C2410_IISMOD_BITMASK (1 << 3)
  38. #define S3C2410_IISMOD_256FS (0 << 2)
  39. #define S3C2410_IISMOD_384FS (1 << 2)
  40. #define S3C2410_IISMOD_16FS (0 << 0)
  41. #define S3C2410_IISMOD_32FS (1 << 0)
  42. #define S3C2410_IISMOD_48FS (2 << 0)
  43. #define S3C2410_IISMOD_FS_MASK (3 << 0)
  44. #define S3C2410_IISPSR (0x08)
  45. #define S3C2410_IISPSR_INTMASK (31 << 5)
  46. #define S3C2410_IISPSR_INTSHIFT (5)
  47. #define S3C2410_IISPSR_EXTMASK (31 << 0)
  48. #define S3C2410_IISPSR_EXTSHFIT (0)
  49. #define S3C2410_IISFCON (0x0c)
  50. #define S3C2410_IISFCON_TXDMA (1 << 15)
  51. #define S3C2410_IISFCON_RXDMA (1 << 14)
  52. #define S3C2410_IISFCON_TXENABLE (1 << 13)
  53. #define S3C2410_IISFCON_RXENABLE (1 << 12)
  54. #define S3C2410_IISFCON_TXMASK (0x3f << 6)
  55. #define S3C2410_IISFCON_TXSHIFT (6)
  56. #define S3C2410_IISFCON_RXMASK (0x3f)
  57. #define S3C2410_IISFCON_RXSHIFT (0)
  58. #define S3C2410_IISFIFO (0x10)
  59. #endif /* __ASM_ARCH_REGS_IIS_H */