···186186 This driver can be built as a module. If built as a module it will be187187 called "da9055"188188189189+config MFD_DA9062190190+ tristate "Dialog Semiconductor DA9062 PMIC Support"191191+ select MFD_CORE192192+ select REGMAP_I2C193193+ select REGMAP_IRQ194194+ depends on I2C=y195195+ help196196+ Say yes here for support for the Dialog Semiconductor DA9062 PMIC.197197+ This includes the I2C driver and core APIs.198198+ Additional drivers must be enabled in order to use the functionality199199+ of the device.200200+189201config MFD_DA9063190202 bool "Dialog Semiconductor DA9063 PMIC Support"191203 select MFD_CORE
···11+/*22+ * Copyright (C) 2015 Dialog Semiconductor Ltd.33+ *44+ * This program is free software; you can redistribute it and/or55+ * modify it under the terms of the GNU General Public License66+ * as published by the Free Software Foundation; either version 277+ * of the License, or (at your option) any later version.88+ *99+ * This program is distributed in the hope that it will be useful,1010+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1111+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1212+ * GNU General Public License for more details.1313+ */1414+1515+#ifndef __MFD_DA9062_CORE_H__1616+#define __MFD_DA9062_CORE_H__1717+1818+#include <linux/interrupt.h>1919+#include <linux/mfd/da9062/registers.h>2020+2121+/* Interrupts */2222+enum da9062_irqs {2323+ /* IRQ A */2424+ DA9062_IRQ_ONKEY,2525+ DA9062_IRQ_ALARM,2626+ DA9062_IRQ_TICK,2727+ DA9062_IRQ_WDG_WARN,2828+ DA9062_IRQ_SEQ_RDY,2929+ /* IRQ B*/3030+ DA9062_IRQ_TEMP,3131+ DA9062_IRQ_LDO_LIM,3232+ DA9062_IRQ_DVC_RDY,3333+ DA9062_IRQ_VDD_WARN,3434+ /* IRQ C */3535+ DA9062_IRQ_GPI0,3636+ DA9062_IRQ_GPI1,3737+ DA9062_IRQ_GPI2,3838+ DA9062_IRQ_GPI3,3939+ DA9062_IRQ_GPI4,4040+4141+ DA9062_NUM_IRQ,4242+};4343+4444+struct da9062 {4545+ struct device *dev;4646+ struct regmap *regmap;4747+ struct regmap_irq_chip_data *regmap_irq;4848+};4949+5050+#endif /* __MFD_DA9062_CORE_H__ */