Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284548
b: refs/heads/master
c: 2439d97
h: refs/heads/master
v: v3
  • Loading branch information
Donggeun Kim authored and Samuel Ortiz committed Jan 8, 2012
1 parent c4eb1a8 commit 67fa03e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55ee29d5fff18b6485543bea10620daf9e29555c
refs/heads/master: 2439d9714e8f4f106c8965e093f9892cfb347d76
58 changes: 57 additions & 1 deletion trunk/include/linux/mfd/max8997.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,60 @@ struct max8997_regulator_data {
struct regulator_init_data *initdata;
};

enum max8997_muic_usb_type {
MAX8997_USB_HOST,
MAX8997_USB_DEVICE,
};

enum max8997_muic_charger_type {
MAX8997_CHARGER_TYPE_NONE = 0,
MAX8997_CHARGER_TYPE_USB,
MAX8997_CHARGER_TYPE_DOWNSTREAM_PORT,
MAX8997_CHARGER_TYPE_DEDICATED_CHG,
MAX8997_CHARGER_TYPE_500MA,
MAX8997_CHARGER_TYPE_1A,
MAX8997_CHARGER_TYPE_DEAD_BATTERY = 7,
};

struct max8997_muic_reg_data {
u8 addr;
u8 data;
};

/**
* struct max8997_muic_platform_data
* @usb_callback: callback function for USB
* inform callee of USB type (HOST or DEVICE)
* and attached state(true or false)
* @charger_callback: callback function for charger
* inform callee of charger_type
* and attached state(true or false)
* @deskdock_callback: callback function for desk dock
* inform callee of attached state(true or false)
* @cardock_callback: callback function for car dock
* inform callee of attached state(true or false)
* @mhl_callback: callback function for MHL (Mobile High-definition Link)
* inform callee of attached state(true or false)
* @uart_callback: callback function for JIG UART
* inform callee of attached state(true or false)
* @init_data: array of max8997_muic_reg_data
* used for initializing registers of MAX8997 MUIC device
* @num_init_data: array size of init_data
*/
struct max8997_muic_platform_data {
void (*usb_callback)(enum max8997_muic_usb_type usb_type,
bool attached);
void (*charger_callback)(bool attached,
enum max8997_muic_charger_type charger_type);
void (*deskdock_callback) (bool attached);
void (*cardock_callback) (bool attached);
void (*mhl_callback) (bool attached);
void (*uart_callback) (bool attached);

struct max8997_muic_reg_data *init_data;
int num_init_data;
};

struct max8997_platform_data {
/* IRQ */
int irq_base;
Expand Down Expand Up @@ -113,7 +167,9 @@ struct max8997_platform_data {
/* charge Full Timeout */
int timeout; /* 0 (no timeout), 5, 6, 7 hours */

/* MUIC: Not implemented */
/* ---- MUIC ---- */
struct max8997_muic_platform_data *muic_pdata;

/* HAPTIC: Not implemented */
/* RTC: Not implemented */
/* Flash: Not implemented */
Expand Down

0 comments on commit 67fa03e

Please sign in to comment.