h1940.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2006 Ben Dooks <ben-linux@fluff.org>
  3. *
  4. * Copyright (c) 2005 Simtec Electronics
  5. * http://armlinux.simtec.co.uk/
  6. * Ben Dooks <ben@simtec.co.uk>
  7. *
  8. * iPAQ H1940 series definitions
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __MACH_S3C24XX_H1940_H
  15. #define __MACH_S3C24XX_H1940_H __FILE__
  16. #define H1940_SUSPEND_CHECKSUM (0x30003ff8)
  17. #define H1940_SUSPEND_RESUMEAT (0x30081000)
  18. #define H1940_SUSPEND_CHECK (0x30080000)
  19. struct gpio_desc;
  20. extern void h1940_pm_return(void);
  21. extern int h1940_led_blink_set(struct gpio_desc *desc, int state,
  22. unsigned long *delay_on,
  23. unsigned long *delay_off);
  24. #include <linux/gpio.h>
  25. #define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x))
  26. /* SD layer latch */
  27. #define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0)
  28. #define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1)
  29. #define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2)
  30. #define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3)
  31. #define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4)
  32. #define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5)
  33. #define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6)
  34. #define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7)
  35. /* CPU layer latch */
  36. #define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8)
  37. #define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9)
  38. #define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10)
  39. #define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11)
  40. #define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12)
  41. #define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13)
  42. #define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14)
  43. #define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15)
  44. #endif /* __MACH_S3C24XX_H1940_H */