1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Core MFD defines for ATC260x PMICs
5 * Copyright (C) 2019 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
6 * Copyright (C) 2020 Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
9 #ifndef __LINUX_MFD_ATC260X_CORE_H
10 #define __LINUX_MFD_ATC260X_CORE_H
12 #include <linux/mfd/atc260x/atc2603c.h>
13 #include <linux/mfd/atc260x/atc2609a.h>
35 struct regmap *regmap;
36 const struct regmap_irq_chip *regmap_irq_chip;
37 struct regmap_irq_chip_data *irq_data;
39 struct mutex *regmap_mutex; /* mutex for custom regmap locking */
41 const struct mfd_cell *cells;
45 enum atc260x_type ic_type;
46 enum atc260x_ver ic_ver;
47 const char *type_name;
50 const struct atc260x_init_regs *init_regs; /* regs for device init */
55 int atc260x_match_device(struct atc260x *atc260x, struct regmap_config *regmap_cfg);
56 int atc260x_device_probe(struct atc260x *atc260x);
58 #endif /* __LINUX_MFD_ATC260X_CORE_H */