History

mfd: rn5t618: Add IRQ support

This adds support for IRQ handling in the RC5T619 which is required for properly implementing subdevices like RTC. For now only definitions for the variant RC5T619 are included.

Andreas Kemnade committed 6 years ago

Commit 0c816041 parent 361dca73 files · +93 −1Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mfd/rn5t618.h+15−0
@@ -242,9 +242,24 @@ enum { · 241 unmodified lines
242 RC5T619,242 RC5T619,
243};243};
244 244
245/* RN5T618 IRQ definitions */
246enum {
247 RN5T618_IRQ_SYS = 0,
248 RN5T618_IRQ_DCDC,
249 RN5T618_IRQ_RTC,
250 RN5T618_IRQ_ADC,
251 RN5T618_IRQ_GPIO,
252 RN5T618_IRQ_CHG,
253 RN5T618_NR_IRQS,
254};
255
245struct rn5t618 {256struct rn5t618 {
246 struct regmap *regmap;257 struct regmap *regmap;
258 struct device *dev;
247 long variant;259 long variant;
260
261 int irq;
262 struct regmap_irq_chip_data *irq_data;
248};263};
249 264
250#endif /* __LINUX_MFD_RN5T618_H */265#endif /* __LINUX_MFD_RN5T618_H */