mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 19:56:43 +07:00
c7b76dce8a
Retu is a multi-function device found on Nokia Internet Tablets implementing at least watchdog, RTC, headset detection and power button functionality. This patch implements minimum functionality providing register access, IRQ handling and power off functions. Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
23 lines
577 B
C
23 lines
577 B
C
/*
|
|
* Retu 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 */
|
|
|
|
#endif /* __LINUX_MFD_RETU_H */
|