mt_gpio_ext.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /******************************************************************************
  2. * mt_gpio_ext.c - MTKLinux GPIO Device Driver
  3. *
  4. * Copyright 2008-2009 MediaTek Co.,Ltd.
  5. *
  6. * DESCRIPTION:
  7. * This file provid the other drivers GPIO debug functions
  8. *
  9. ******************************************************************************/
  10. #include <mt-plat/mt_gpio.h>
  11. #include <mt-plat/mt_gpio_core.h>
  12. #include <mt_gpio_ext.h>
  13. /* #define MAX_GPIO_REG_BITS 16 */
  14. /* #define MAX_GPIO_MODE_PER_REG 5 */
  15. /* #define GPIO_MODE_BITS 3 */
  16. #define GPIOEXT_BASE (0x0) /* PMIC GPIO base. */
  17. /* static GPIOEXT_REGS *gpioext_reg = (GPIOEXT_REGS*)(GPIOEXT_BASE); */
  18. /* set extend GPIO */
  19. /*---------------------------------------------------------------------------*/
  20. int mt_set_gpio_dir_ext(unsigned long pin, unsigned long dir)
  21. {
  22. dump_stack();
  23. return -1;
  24. }
  25. /*---------------------------------------------------------------------------*/
  26. int mt_get_gpio_dir_ext(unsigned long pin)
  27. {
  28. dump_stack();
  29. return -1;
  30. }
  31. /*---------------------------------------------------------------------------*/
  32. int mt_set_gpio_pull_enable_ext(unsigned long pin, unsigned long enable)
  33. {
  34. dump_stack();
  35. return -1;
  36. }
  37. /*---------------------------------------------------------------------------*/
  38. int mt_get_gpio_pull_enable_ext(unsigned long pin)
  39. {
  40. dump_stack();
  41. return -1;
  42. }
  43. /*---------------------------------------------------------------------------*/
  44. int mt_set_gpio_smt_ext(unsigned long pin, unsigned long enable)
  45. {
  46. dump_stack();
  47. return -1;
  48. }
  49. /*---------------------------------------------------------------------------*/
  50. int mt_get_gpio_smt_ext(unsigned long pin)
  51. {
  52. dump_stack();
  53. return -1;
  54. }
  55. /*---------------------------------------------------------------------------*/
  56. int mt_set_gpio_ies_ext(unsigned long pin, unsigned long enable)
  57. {
  58. dump_stack();
  59. return -1;
  60. }
  61. /*---------------------------------------------------------------------------*/
  62. int mt_get_gpio_ies_ext(unsigned long pin)
  63. {
  64. dump_stack();
  65. return -1;
  66. }
  67. /*---------------------------------------------------------------------------*/
  68. int mt_set_gpio_pull_select_ext(unsigned long pin, unsigned long select)
  69. {
  70. dump_stack();
  71. return -1;
  72. }
  73. /*---------------------------------------------------------------------------*/
  74. int mt_get_gpio_pull_select_ext(unsigned long pin)
  75. {
  76. dump_stack();
  77. return -1;
  78. }
  79. /*---------------------------------------------------------------------------*/
  80. int mt_set_gpio_inversion_ext(unsigned long pin, unsigned long enable)
  81. {
  82. dump_stack();
  83. return -1;
  84. }
  85. /*---------------------------------------------------------------------------*/
  86. int mt_get_gpio_inversion_ext(unsigned long pin)
  87. {
  88. dump_stack();
  89. return -1;
  90. }
  91. /*---------------------------------------------------------------------------*/
  92. int mt_set_gpio_out_ext(unsigned long pin, unsigned long output)
  93. {
  94. dump_stack();
  95. return -1;
  96. }
  97. /*---------------------------------------------------------------------------*/
  98. int mt_get_gpio_out_ext(unsigned long pin)
  99. {
  100. dump_stack();
  101. return -1;
  102. }
  103. /*---------------------------------------------------------------------------*/
  104. int mt_get_gpio_in_ext(unsigned long pin)
  105. {
  106. dump_stack();
  107. return -1;
  108. }
  109. /*---------------------------------------------------------------------------*/
  110. int mt_set_gpio_mode_ext(unsigned long pin, unsigned long mode)
  111. {
  112. dump_stack();
  113. return -1;
  114. }
  115. /*---------------------------------------------------------------------------*/
  116. int mt_get_gpio_mode_ext(unsigned long pin)
  117. {
  118. dump_stack();
  119. return -1;
  120. }