11a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 228ff2f7aSHans de Goede /*************************************************************************** 3312869ecSHans de Goede * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> * 428ff2f7aSHans de Goede * * 528ff2f7aSHans de Goede ***************************************************************************/ 628ff2f7aSHans de Goede 7312869ecSHans de Goede #include <linux/mutex.h> 8*a54fe616SArmin Wolf #include <linux/regmap.h> 9312869ecSHans de Goede 10312869ecSHans de Goede struct sch56xx_watchdog_data; 11312869ecSHans de Goede 12*a54fe616SArmin Wolf struct regmap *devm_regmap_init_sch56xx(struct device *dev, struct mutex *lock, u16 addr, 13*a54fe616SArmin Wolf const struct regmap_config *config); 1428ff2f7aSHans de Goede int sch56xx_read_virtual_reg(u16 addr, u16 reg); 1528ff2f7aSHans de Goede int sch56xx_write_virtual_reg(u16 addr, u16 reg, u8 val); 1628ff2f7aSHans de Goede int sch56xx_read_virtual_reg16(u16 addr, u16 reg); 1728ff2f7aSHans de Goede int sch56xx_read_virtual_reg12(u16 addr, u16 msb_reg, u16 lsn_reg, 1828ff2f7aSHans de Goede int high_nibble); 19312869ecSHans de Goede 202be5f0d7SArmin Wolf void sch56xx_watchdog_register(struct device *parent, u16 addr, u32 revision, 212be5f0d7SArmin Wolf struct mutex *io_lock, int check_enabled); 22312869ecSHans de Goede void sch56xx_watchdog_unregister(struct sch56xx_watchdog_data *data); 23