environmentalHumidityAnalysis.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com
  4. *
  5. * EXYNOS - GPIO lib support
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_GPIO_H
  12. #define __ASM_ARCH_GPIO_H __FILE__
  13. /* Macro for EXYNOS GPIO numbering */
  14. #define EXYNOS_GPIO_NEXT(__gpio) \
  15. ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1)
  16. /* EXYNOS4 GPIO bank sizes */
  17. #define EXYNOS4_GPIO_A0_NR (8)
  18. #define EXYNOS4_GPIO_A1_NR (6)
  19. #define EXYNOS4_GPIO_B_NR (8)
  20. #define EXYNOS4_GPIO_C0_NR (5)
  21. #define EXYNOS4_GPIO_C1_NR (5)
  22. #define EXYNOS4_GPIO_D0_NR (4)
  23. #define EXYNOS4_GPIO_D1_NR (4)
  24. #define EXYNOS4_GPIO_E0_NR (5)
  25. #define EXYNOS4_GPIO_E1_NR (8)
  26. #define EXYNOS4_GPIO_E2_NR (6)
  27. #define EXYNOS4_GPIO_E3_NR (8)
  28. #define EXYNOS4_GPIO_E4_NR (8)
  29. #define EXYNOS4_GPIO_F0_NR (8)
  30. #define EXYNOS4_GPIO_F1_NR (8)
  31. #define EXYNOS4_GPIO_F2_NR (8)
  32. #define EXYNOS4_GPIO_F3_NR (6)
  33. #define EXYNOS4_GPIO_J0_NR (8)
  34. #define EXYNOS4_GPIO_J1_NR (5)
  35. #define EXYNOS4_GPIO_K0_NR (7)
  36. #define EXYNOS4_GPIO_K1_NR (7)
  37. #define EXYNOS4_GPIO_K2_NR (7)
  38. #define EXYNOS4_GPIO_K3_NR (7)
  39. #define EXYNOS4_GPIO_L0_NR (8)
  40. #define EXYNOS4_GPIO_L1_NR (3)
  41. #define EXYNOS4_GPIO_L2_NR (8)
  42. #define EXYNOS4_GPIO_X0_NR (8)
  43. #define EXYNOS4_GPIO_X1_NR (8)
  44. #define EXYNOS4_GPIO_X2_NR (8)
  45. #define EXYNOS4_GPIO_X3_NR (8)
  46. #define EXYNOS4_GPIO_Y0_NR (6)
  47. #define EXYNOS4_GPIO_Y1_NR (4)
  48. #define EXYNOS4_GPIO_Y2_NR (6)
  49. #define EXYNOS4_GPIO_Y3_NR (8)
  50. #define EXYNOS4_GPIO_Y4_NR (8)
  51. #define EXYNOS4_GPIO_Y5_NR (8)
  52. #define EXYNOS4_GPIO_Y6_NR (8)
  53. #define EXYNOS4_GPIO_Z_NR (7)
  54. /* EXYNOS4 GPIO bank numbers */
  55. enum exynos4_gpio_number {