From e75db4e1ef1cff2218f260907608e88c2a0cc618 Mon Sep 17 00:00:00 2001 From: Zain Wang Date: Fri, 17 Jun 2016 16:51:37 +0800 Subject: [PATCH] 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 --- drivers/mfd/Kconfig | 8 ++++++++ drivers/mfd/Makefile | 1 + drivers/mfd/fusb302.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index df375e2601da..4955a70fbaf4 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -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 diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index 5856a9489cbd..efb661ebcc58 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -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 diff --git a/drivers/mfd/fusb302.c b/drivers/mfd/fusb302.c index a627252d6710..bb87363af578 100644 --- a/drivers/mfd/fusb302.c +++ b/drivers/mfd/fusb302.c @@ -10,7 +10,7 @@ */ #include -#include +#include #include #include #include