h1940-latch.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* arch/arm/mach-s3c2410/include/mach/h1940-latch.h
  2. *
  3. * Copyright (c) 2005 Simtec Electronics
  4. * http://armlinux.simtec.co.uk/
  5. * Ben Dooks <ben@simtec.co.uk>
  6. *
  7. * iPAQ H1940 series - latch definitions
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_ARCH_H1940_LATCH_H
  14. #define __ASM_ARCH_H1940_LATCH_H
  15. #ifndef __ASSEMBLY__
  16. #define H1940_LATCH ((void __force __iomem *)0xF8000000)
  17. #else
  18. #define H1940_LATCH 0xF8000000
  19. #endif
  20. #define H1940_PA_LATCH (S3C2410_CS2)
  21. /* SD layer latch */
  22. #define H1940_LATCH_SDQ1 (1<<16)
  23. #define H1940_LATCH_LCD_P1 (1<<17)
  24. #define H1940_LATCH_LCD_P2 (1<<18)
  25. #define H1940_LATCH_LCD_P3 (1<<19)
  26. #define H1940_LATCH_MAX1698_nSHUTDOWN (1<<20) /* LCD backlight */
  27. #define H1940_LATCH_LED_RED (1<<21)
  28. #define H1940_LATCH_SDQ7 (1<<22)
  29. #define H1940_LATCH_USB_DP (1<<23)
  30. /* CPU layer latch */
  31. #define H1940_LATCH_UDA_POWER (1<<24)
  32. #define H1940_LATCH_AUDIO_POWER (1<<25)
  33. #define H1940_LATCH_SM803_ENABLE (1<<26)
  34. #define H1940_LATCH_LCD_P4 (1<<27)
  35. #define H1940_LATCH_CPUQ5 (1<<28) /* untraced */
  36. #define H1940_LATCH_BLUETOOTH_POWER (1<<29) /* active high */
  37. #define H1940_LATCH_LED_GREEN (1<<30)
  38. #define H1940_LATCH_LED_FLASH (1<<31)
  39. /* default settings */
  40. #define H1940_LATCH_DEFAULT \
  41. H1940_LATCH_LCD_P4 | \
  42. H1940_LATCH_SM803_ENABLE | \
  43. H1940_LATCH_SDQ1 | \
  44. H1940_LATCH_LCD_P1 | \
  45. H1940_LATCH_LCD_P2 | \
  46. H1940_LATCH_LCD_P3 | \
  47. H1940_LATCH_MAX1698_nSHUTDOWN | \
  48. H1940_LATCH_CPUQ5
  49. /* control functions */
  50. extern void h1940_latch_control(unsigned int clear, unsigned int set);
  51. #endif /* __ASM_ARCH_H1940_LATCH_H */