mfd: add driver for fusb302 Type-C PD

New driver only support DRP mode without swap function.
Swap function will be added in later.

Change-Id: I7e0c2c424def069d4be78c3bc8f704c3f7e5be48
Signed-off-by: Zain Wang <wzz@rock-chips.com>
This commit is contained in:
Zain Wang
2016-06-17 16:51:37 +08:00
committed by William Wu
parent da75c6afba
commit e75db4e1ef
3 changed files with 10 additions and 1 deletions

View File

@@ -1900,4 +1900,12 @@ config RAVE_SP_CORE
device found on several devices in RAVE line of hardware.
endmenu
config FUSB_30X
tristate "Fairchild fusb302 Support"
depends on I2C
help
This option provides a driver for the Fairchild FUSB302.
It support typec-pd functionality by controlled using I2C.
endif

View File

@@ -241,3 +241,4 @@ obj-$(CONFIG_MFD_SC27XX_PMIC) += sprd-sc27xx-spi.o
obj-$(CONFIG_RAVE_SP_CORE) += rave-sp.o
obj-$(CONFIG_MFD_ROHM_BD718XX) += rohm-bd718x7.o
obj-$(CONFIG_FUSB_30X) += fusb302.o

View File

@@ -10,7 +10,7 @@
*/
#include <linux/delay.h>
#include <linux/extcon.h>
#include <linux/extcon-provider.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/module.h>