linux/include/linux/mfd/max77714.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Maxim MAX77714 Register and data structures definition.
 *
 * Copyright (C) 2022 Luca Ceresoli
 * Author: Luca Ceresoli <[email protected]>
 */

#ifndef __LINUX_MFD_MAX77714_H_
#define __LINUX_MFD_MAX77714_H_

#include <linux/bits.h>

#define MAX77714_INT_TOP
#define MAX77714_INT_TOPM

#define MAX77714_INT_TOP_ONOFF
#define MAX77714_INT_TOP_RTC
#define MAX77714_INT_TOP_GPIO
#define MAX77714_INT_TOP_LDO
#define MAX77714_INT_TOP_SD
#define MAX77714_INT_TOP_GLBL

#define MAX77714_32K_STATUS
#define MAX77714_32K_STATUS_SIOSCOK
#define MAX77714_32K_STATUS_XOSCOK
#define MAX77714_32K_STATUS_32KSOURCE
#define MAX77714_32K_STATUS_32KLOAD_MSK
#define MAX77714_32K_STATUS_32KLOAD_SHF
#define MAX77714_32K_STATUS_CRYSTAL_CFG

#define MAX77714_32K_CONFIG
#define MAX77714_32K_CONFIG_XOSC_RETRY

#define MAX77714_CNFG_GLBL2
#define MAX77714_WDTEN
#define MAX77714_WDTSLPC
#define MAX77714_TWD_MASK
#define MAX77714_TWD_2s
#define MAX77714_TWD_16s
#define MAX77714_TWD_64s
#define MAX77714_TWD_128s

#define MAX77714_CNFG_GLBL3
#define MAX77714_WDTC

#define MAX77714_CNFG2_ONOFF
#define MAX77714_WD_RST_WK

/* Interrupts */
enum {};

#endif /* __LINUX_MFD_MAX77714_H_ */