1 /* 2 * Copyright (C) 2015 Dialog Semiconductor Ltd. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 15 #ifndef __MFD_DA9062_CORE_H__ 16 #define __MFD_DA9062_CORE_H__ 17 18 #include <linux/interrupt.h> 19 #include <linux/mfd/da9062/registers.h> 20 21 /* Interrupts */ 22 enum da9062_irqs { 23 /* IRQ A */ 24 DA9062_IRQ_ONKEY, 25 DA9062_IRQ_ALARM, 26 DA9062_IRQ_TICK, 27 DA9062_IRQ_WDG_WARN, 28 DA9062_IRQ_SEQ_RDY, 29 /* IRQ B*/ 30 DA9062_IRQ_TEMP, 31 DA9062_IRQ_LDO_LIM, 32 DA9062_IRQ_DVC_RDY, 33 DA9062_IRQ_VDD_WARN, 34 /* IRQ C */ 35 DA9062_IRQ_GPI0, 36 DA9062_IRQ_GPI1, 37 DA9062_IRQ_GPI2, 38 DA9062_IRQ_GPI3, 39 DA9062_IRQ_GPI4, 40 41 DA9062_NUM_IRQ, 42 }; 43 44 struct da9062 { 45 struct device *dev; 46 struct regmap *regmap; 47 struct regmap_irq_chip_data *regmap_irq; 48 }; 49 50 #endif /* __MFD_DA9062_CORE_H__ */ 51