linux/include/linux/mfd/hi655x-pmic.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Device driver for regulators in hi655x IC
 *
 * Copyright (c) 2016 HiSilicon Ltd.
 *
 * Authors:
 * Chen Feng <[email protected]>
 * Fei  Wang <[email protected]>
 */

#ifndef __HI655X_PMIC_H
#define __HI655X_PMIC_H

#include <linux/gpio/consumer.h>

/* Hi655x registers are mapped to memory bus in 4 bytes stride */
#define HI655X_STRIDE
#define HI655X_BUS_ADDR(x)

#define HI655X_BITS

#define HI655X_NR_IRQ

#define HI655X_IRQ_STAT_BASE
#define HI655X_IRQ_MASK_BASE
#define HI655X_ANA_IRQM_BASE
#define HI655X_IRQ_ARRAY
#define HI655X_IRQ_MASK
#define HI655X_IRQ_CLR
#define HI655X_VER_REG

#define PMU_VER_START
#define PMU_VER_END

#define RESERVE_INT
#define PWRON_D20R_INT
#define PWRON_D20F_INT
#define PWRON_D4SR_INT
#define VSYS_6P0_D200UR_INT
#define VSYS_UV_D3R_INT
#define VSYS_2P5_R_INT
#define OTMP_D1R_INT

#define RESERVE_INT_MASK
#define PWRON_D20R_INT_MASK
#define PWRON_D20F_INT_MASK
#define PWRON_D4SR_INT_MASK
#define VSYS_6P0_D200UR_INT_MASK
#define VSYS_UV_D3R_INT_MASK
#define VSYS_2P5_R_INT_MASK
#define OTMP_D1R_INT_MASK

struct hi655x_pmic {};

#endif