muic.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright (C) 2013 Samsung Electronics
  3. * Nitin Chaudhary <nc.chaudhary@samsung.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. */
  20. #ifndef _MUIC_H_
  21. #define _MUIC_H_
  22. #ifndef CONFIG_USB_HOST_NOTIFY
  23. enum sec_otg_dummy_defines {
  24. HNOTIFY_MODE=1,
  25. NOTIFY_TEST_MODE=3,
  26. };
  27. extern int sec_get_notification(int mode);
  28. #endif
  29. enum cable_type_t {
  30. CABLE_TYPE_NONE = 0,
  31. CABLE_TYPE_USB,
  32. CABLE_TYPE_AC,
  33. CABLE_TYPE_MISC,
  34. CABLE_TYPE_CARDOCK,
  35. CABLE_TYPE_UARTOFF,
  36. CABLE_TYPE_JIG,
  37. CABLE_TYPE_UNKNOWN,
  38. CABLE_TYPE_CDP,
  39. CABLE_TYPE_SMART_DOCK,
  40. CABLE_TYPE_OTG,
  41. CABLE_TYPE_AUDIO_DOCK,
  42. #ifdef CONFIG_WIRELESS_CHARGING
  43. CABLE_TYPE_WPC,
  44. #endif
  45. CABLE_TYPE_INCOMPATIBLE,
  46. CABLE_TYPE_DESK_DOCK,
  47. CABLE_TYPE_JIG_UART_OFF_VB,
  48. CABLE_TYPE_DESK_DOCK_NO_VB,
  49. CABLE_TYPE_LANHUB,
  50. CABLE_TYPE_219KUSB,
  51. CABLE_TYPE_CHARGING_CABLE,
  52. };
  53. /* MUIC attached device type */
  54. enum muic_attached_dev {
  55. ATTACHED_DEV_NONE_MUIC = 0,
  56. ATTACHED_DEV_USB_MUIC,
  57. ATTACHED_DEV_CDP_MUIC,
  58. ATTACHED_DEV_OTG_MUIC,
  59. ATTACHED_DEV_LANHUB_MUIC,
  60. ATTACHED_DEV_TA_MUIC,
  61. ATTACHED_DEV_DESKDOCK_MUIC,
  62. ATTACHED_DEV_CARDOCK_MUIC,
  63. ATTACHED_DEV_AUDIODOCK_MUIC,
  64. ATTACHED_DEV_JIG_UART_OFF_MUIC,
  65. ATTACHED_DEV_JIG_UART_OFF_VB_MUIC, /* VBUS enabled */
  66. ATTACHED_DEV_JIG_UART_ON_MUIC,
  67. ATTACHED_DEV_JIG_USB_OFF_MUIC,
  68. ATTACHED_DEV_JIG_USB_ON_MUIC,
  69. ATTACHED_DEV_UNKNOWN_MUIC
  70. };
  71. enum {
  72. LANHUB = 0,
  73. LANHUB_TA = 1,
  74. };
  75. enum {
  76. DISABLE,
  77. ENABLE
  78. };
  79. enum {
  80. DOCK_UI_DESK = 1,
  81. DOCK_UI_CAR
  82. };
  83. #ifndef CONFIG_USB_HOST_NOTIFY
  84. extern int sec_get_notification(int mode);
  85. #endif
  86. extern int poweroff_charging;
  87. #if defined(CONFIG_VIDEO_MHL_V2)
  88. extern int dock_det(void);
  89. #endif
  90. extern struct class *sec_class;
  91. #endif /* _MUIC_H_ */