Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 lines
723 B
C
29 lines
723 B
C
/*
|
|
* Retu/Tahvo MFD driver interface
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General
|
|
* Public License. See the file "COPYING" in the main directory of this
|
|
* archive for more details.
|
|
*/
|
|
|
|
#ifndef __LINUX_MFD_RETU_H
|
|
#define __LINUX_MFD_RETU_H
|
|
|
|
struct retu_dev;
|
|
|
|
int retu_read(struct retu_dev *, u8);
|
|
int retu_write(struct retu_dev *, u8, u16);
|
|
|
|
/* Registers */
|
|
#define RETU_REG_WATCHDOG 0x17 /* Watchdog */
|
|
#define RETU_REG_CC1 0x0d /* Common control register 1 */
|
|
#define RETU_REG_STATUS 0x16 /* Status register */
|
|
|
|
/* Interrupt sources */
|
|
#define TAHVO_INT_VBUS 0 /* VBUS state */
|
|
|
|
/* Interrupt status */
|
|
#define TAHVO_STAT_VBUS (1 << TAHVO_INT_VBUS)
|
|
|
|
#endif /* __LINUX_MFD_RETU_H */
|