2 * Definitions for DA9063 MFD driver
4 * Copyright 2012 Dialog Semiconductor Ltd.
6 * Author: Michal Hajduk, Dialog Semiconductor
7 * Author: Krystian Garbaciak, Dialog Semiconductor
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
16 #ifndef __MFD_DA9063_CORE_H__
17 #define __MFD_DA9063_CORE_H__
19 #include <linux/interrupt.h>
20 #include <linux/mfd/da9063/registers.h>
23 #define DA9063_DRVNAME_CORE "da9063-core"
24 #define DA9063_DRVNAME_REGULATORS "da9063-regulators"
25 #define DA9063_DRVNAME_LEDS "da9063-leds"
26 #define DA9063_DRVNAME_WATCHDOG "da9063-watchdog"
27 #define DA9063_DRVNAME_HWMON "da9063-hwmon"
28 #define DA9063_DRVNAME_ONKEY "da9063-onkey"
29 #define DA9063_DRVNAME_RTC "da9063-rtc"
30 #define DA9063_DRVNAME_VIBRATION "da9063-vibration"
36 enum da9063_variant_codes
{
75 #define DA9063_IRQ_BASE_OFFSET 0
76 #define DA9063_NUM_IRQ (DA9063_IRQ_GPI15 + 1 - DA9063_IRQ_BASE_OFFSET)
82 unsigned char variant_code
;
85 /* Control interface */
86 struct regmap
*regmap
;
90 unsigned int irq_base
;
91 struct regmap_irq_chip_data
*regmap_irq
;
94 int da9063_device_init(struct da9063
*da9063
, unsigned int irq
);
95 int da9063_irq_init(struct da9063
*da9063
);
97 void da9063_device_exit(struct da9063
*da9063
);
98 void da9063_irq_exit(struct da9063
*da9063
);
100 #endif /* __MFD_DA9063_CORE_H__ */