Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354950
b: refs/heads/master
c: 2b75799
h: refs/heads/master
v: v3
  • Loading branch information
Chanwoo Choi committed Jan 15, 2013
1 parent 9114110 commit 07378ba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae3b3215f8e16ee8234024c77787bac9befb4f4c
refs/heads/master: 2b75799f5ae9f31ea9778003591fd295d3bc3159
24 changes: 24 additions & 0 deletions trunk/drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ struct max77693_muic_info {

/* Button of dock device */
struct input_dev *dock;

/*
* Default usb/uart path whether UART/USB or AUX_UART/AUX_USB
* h/w path of COMP2/COMN1 on CONTROL1 register.
*/
int path_usb;
int path_uart;
};

enum max77693_muic_cable_group {
Expand Down Expand Up @@ -1058,6 +1065,23 @@ static int max77693_muic_probe(struct platform_device *pdev)
= muic_pdata->init_data[i].data;
}

/*
* Default usb/uart path whether UART/USB or AUX_UART/AUX_USB
* h/w path of COMP2/COMN1 on CONTROL1 register.
*/
if (muic_pdata->path_uart)
info->path_uart = muic_pdata->path_uart;
else
info->path_uart = CONTROL1_SW_UART;

if (muic_pdata->path_usb)
info->path_usb = muic_pdata->path_usb;
else
info->path_usb = CONTROL1_SW_USB;

/* Set initial path for UART */
max77693_muic_set_path(info, info->path_uart, true);

/* Check revision number of MUIC device*/
ret = max77693_read_reg(info->max77693->regmap_muic,
MAX77693_MUIC_REG_ID, &id);
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/linux/mfd/max77693.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ struct max77693_muic_platform_data {
int num_init_data;

int detcable_delay_ms;

/*
* Default usb/uart path whether UART/USB or AUX_UART/AUX_USB
* h/w path of COMP2/COMN1 on CONTROL1 register.
*/
int path_usb;
int path_uart;
};

struct max77693_platform_data {
Expand Down

0 comments on commit 07378ba

Please sign in to comment.