diff options
| author | Chanwoo Choi <cw00.choi@samsung.com> | 2013-02-13 01:04:15 -0500 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-02-13 17:54:36 -0500 |
| commit | 685dc9a7dbfede28cc4a0fe4e65804194ec04fa5 (patch) | |
| tree | a9fdfc0c829dde97092c3e92d0ee70ce61a56436 /include/linux/mfd | |
| parent | f73f6232af9131f7b6fc6e377267e4a441727eb3 (diff) | |
extcon: max8997: Set default UART/USB path on probe
This patch set default H/W line path according to platfomr data.
The MAX8997 MUIC device can possibly set UART/USB or UART_AUX
/USB_AUX to internal H/W line path of MUIC device. Namely, only
one H/W line is used for two operation.
For example,
if H/W line path of MAX8997 device set UART/USB, micro usb cable
is connected to AP(Application Processor) and if H/W line path
set UART_AUX/USB_AUX, micro usb cable is connected to CP(Coprocessor).
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/max8997.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h index 65f8d6a3a608..2d2d67b6a393 100644 --- a/include/linux/mfd/max8997.h +++ b/include/linux/mfd/max8997.h | |||
| @@ -92,6 +92,13 @@ struct max8997_muic_reg_data { | |||
| 92 | struct max8997_muic_platform_data { | 92 | struct max8997_muic_platform_data { |
| 93 | struct max8997_muic_reg_data *init_data; | 93 | struct max8997_muic_reg_data *init_data; |
| 94 | int num_init_data; | 94 | int num_init_data; |
| 95 | |||
| 96 | /* | ||
| 97 | * Default usb/uart path whether UART/USB or AUX_UART/AUX_USB | ||
| 98 | * h/w path of COMP2/COMN1 on CONTROL1 register. | ||
| 99 | */ | ||
| 100 | int path_usb; | ||
| 101 | int path_uart; | ||
| 95 | }; | 102 | }; |
| 96 | 103 | ||
| 97 | enum max8997_haptic_motor_type { | 104 | enum max8997_haptic_motor_type { |
