blob: d1512dad2d9088911a808b3b2a46733e286f7103 [file] [log] [blame]
Juergen Beiserta1292592017-04-18 10:48:25 +02001#include <linux/regmap.h>
2#include <linux/device.h>
3#include <net/dsa.h>
4
5struct lan9303 {
6 struct device *dev;
7 struct regmap *regmap;
8 struct regmap_irq_chip_data *irq_data;
9 struct gpio_desc *reset_gpio;
10 u32 reset_duration; /* in [ms] */
11 bool phy_addr_sel_strap;
12 struct dsa_switch *ds;
13 struct mutex indirect_mutex; /* protect indexed register access */
14};
15
16extern const struct regmap_access_table lan9303_register_set;
17
18int lan9303_probe(struct lan9303 *chip, struct device_node *np);
19int lan9303_remove(struct lan9303 *chip);