bast-cpld.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef __ASM_ARCH_BASTCPLD_H
  13. #define __ASM_ARCH_BASTCPLD_H
  14. /* CTRL1 - Audio LR routing */
  15. #define BAST_CPLD_CTRL1_LRCOFF (0x00)
  16. #define BAST_CPLD_CTRL1_LRCADC (0x01)
  17. #define BAST_CPLD_CTRL1_LRCDAC (0x02)
  18. #define BAST_CPLD_CTRL1_LRCARM (0x03)
  19. #define BAST_CPLD_CTRL1_LRMASK (0x03)
  20. /* CTRL2 - NAND WP control, IDE Reset assert/check */
  21. #define BAST_CPLD_CTRL2_WNAND (0x04)
  22. #define BAST_CPLD_CTLR2_IDERST (0x08)
  23. /* CTRL3 - rom write control, CPLD identity */
  24. #define BAST_CPLD_CTRL3_IDMASK (0x0e)
  25. #define BAST_CPLD_CTRL3_ROMWEN (0x01)
  26. /* CTRL4 - 8bit LCD interface control/status */
  27. #define BAST_CPLD_CTRL4_LLAT (0x01)
  28. #define BAST_CPLD_CTRL4_LCDRW (0x02)
  29. #define BAST_CPLD_CTRL4_LCDCMD (0x04)
  30. #define BAST_CPLD_CTRL4_LCDE2 (0x01)
  31. /* CTRL5 - DMA routing */
  32. #define BAST_CPLD_DMA0_PRIIDE (0<<0)
  33. #define BAST_CPLD_DMA0_SECIDE (1<<0)
  34. #define BAST_CPLD_DMA0_ISA15 (2<<0)
  35. #define BAST_CPLD_DMA0_ISA36 (3<<0)
  36. #define BAST_CPLD_DMA1_PRIIDE (0<<2)
  37. #define BAST_CPLD_DMA1_SECIDE (1<<2)
  38. #define BAST_CPLD_DMA1_ISA15 (2<<2)
  39. #define BAST_CPLD_DMA1_ISA36 (3<<2)
  40. #endif /* __ASM_ARCH_BASTCPLD_H */