bast-cpld.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* linux/include/asm-arm/arch-s3c2410/bast-cpld.h
  2. *
  3. * (c) 2003,2004 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * BAST - CPLD control constants
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * Changelog:
  13. * 25-May-2003 BJD Created file, added CTRL1 registers
  14. * 30-Aug-2004 BJD Updated definitions from 2.4.26 port
  15. * 30-Aug-2004 BJD Added CTRL3 and CTRL4 definitions
  16. */
  17. #ifndef __ASM_ARCH_BASTCPLD_H
  18. #define __ASM_ARCH_BASTCPLD_H
  19. /* CTRL1 - Audio LR routing */
  20. #define BAST_CPLD_CTRL1_LRCOFF (0x00)
  21. #define BAST_CPLD_CTRL1_LRCADC (0x01)
  22. #define BAST_CPLD_CTRL1_LRCDAC (0x02)
  23. #define BAST_CPLD_CTRL1_LRCARM (0x03)
  24. #define BAST_CPLD_CTRL1_LRMASK (0x03)
  25. /* CTRL2 - NAND WP control, IDE Reset assert/check */
  26. #define BAST_CPLD_CTRL2_WNAND (0x04)
  27. #define BAST_CPLD_CTLR2_IDERST (0x08)
  28. /* CTRL3 - rom write control, CPLD identity */
  29. #define BAST_CPLD_CTRL3_IDMASK (0x0e)
  30. #define BAST_CPLD_CTRL3_ROMWEN (0x01)
  31. /* CTRL4 - 8bit LCD interface control/status */
  32. #define BAST_CPLD_CTRL4_LLAT (0x01)
  33. #define BAST_CPLD_CTRL4_LCDRW (0x02)
  34. #define BAST_CPLD_CTRL4_LCDCMD (0x04)
  35. #define BAST_CPLD_CTRL4_LCDE2 (0x01)
  36. /* CTRL5 - DMA routing */
  37. #define BAST_CPLD_DMA0_PRIIDE (0<<0)
  38. #define BAST_CPLD_DMA0_SECIDE (1<<0)
  39. #define BAST_CPLD_DMA0_ISA15 (2<<0)
  40. #define BAST_CPLD_DMA0_ISA36 (3<<0)
  41. #define BAST_CPLD_DMA1_PRIIDE (0<<2)
  42. #define BAST_CPLD_DMA1_SECIDE (1<<2)
  43. #define BAST_CPLD_DMA1_ISA15 (2<<2)
  44. #define BAST_CPLD_DMA1_ISA36 (3<<2)
  45. #endif /* __ASM_ARCH_BASTCPLD_H */