12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*
- * Copyright (C) 2013 Samsung Electronics
- * Jeongrae Kim <jryu.kim@samsung.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
- #ifndef _SM5502_H_
- #define _SM5502_H_
- #include <linux/i2c/muic.h>
- enum {
- SM5502_NONE = -1,
- SM5502_DETACHED = 0,
- SM5502_ATTACHED = 1
- };
- extern struct switch_dev switch_dock;
- struct sm5502_platform_data {
- void (*callback)(enum cable_type_t cable_type, int attached);
- #if defined(CONFIG_MUIC_SM5502_SUPPORT_LANHUB_TA)
- void (*lanhub_cb)(enum cable_type_t cable_type, int attached, bool lanhub_ta);
- #endif
- void (*oxp_callback)(int state);
- void (*mhl_sel) (bool onoff);
- int (*dock_init) (void);
- int gpio_int;
- u32 irq_gpio_flags;
- int gpio_sda;
- u32 sda_gpio_flags;
- int gpio_scl;
- u32 scl_gpio_flags;
- int gpio_uart_on;
- u32 uarton_gpio_flags;
- };
- extern int check_sm5502_jig_state(void);
- extern struct sm5502_platform_data sm5502_pdata;
- extern void sm5502_callback(enum cable_type_t cable_type, int attached);
- #if defined(CONFIG_MUIC_SM5502_SUPPORT_LANHUB_TA)
- extern void sm5502_lanhub_callback(enum cable_type_t cable_type, int attached, bool lanhub_ta);
- #endif
- extern void sm5502_oxp_callback(int state);
- extern int sm5502_dock_init(void);
- #endif /* _SM5502_H_ */
|