h1940.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright 2006 Ben Dooks <[email protected]>
  4. *
  5. * Copyright (c) 2005 Simtec Electronics
  6. * http://armlinux.simtec.co.uk/
  7. * Ben Dooks <[email protected]>
  8. *
  9. * iPAQ H1940 series definitions
  10. */
  11. #ifndef __MACH_S3C24XX_H1940_H
  12. #define __MACH_S3C24XX_H1940_H __FILE__
  13. #define H1940_SUSPEND_CHECKSUM (0x30003ff8)
  14. #define H1940_SUSPEND_RESUMEAT (0x30081000)
  15. #define H1940_SUSPEND_CHECK (0x30080000)
  16. struct gpio_desc;
  17. extern void h1940_pm_return(void);
  18. extern int h1940_led_blink_set(struct gpio_desc *desc, int state,
  19. unsigned long *delay_on,
  20. unsigned long *delay_off);
  21. #include <linux/gpio.h>
  22. #define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x))
  23. /* SD layer latch */
  24. #define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0)
  25. #define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1)
  26. #define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2)
  27. #define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3)
  28. #define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4)
  29. #define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5)
  30. #define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6)
  31. #define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7)
  32. /* CPU layer latch */
  33. #define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8)
  34. #define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9)
  35. #define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10)
  36. #define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11)
  37. #define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12)
  38. #define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13)
  39. #define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14)
  40. #define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15)
  41. #endif /* __MACH_S3C24XX_H1940_H */