linux/include/linux/regulator/max8973-regulator.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * max8973-regulator.h -- MAXIM 8973 regulator
 *
 * Interface for regulator driver for MAXIM 8973 DC-DC step-down
 * switching regulator.
 *
 * Copyright (C) 2012 NVIDIA Corporation

 * Author: Laxman Dewangan <[email protected]>
 */

#ifndef __LINUX_REGULATOR_MAX8973_H
#define __LINUX_REGULATOR_MAX8973_H

/*
 * Control flags for configuration of the device.
 * Client need to pass this information with ORed
 */
#define MAX8973_CONTROL_REMOTE_SENSE_ENABLE
#define MAX8973_CONTROL_FALLING_SLEW_RATE_ENABLE
#define MAX8973_CONTROL_OUTPUT_ACTIVE_DISCH_ENABLE
#define MAX8973_CONTROL_BIAS_ENABLE
#define MAX8973_CONTROL_PULL_DOWN_ENABLE
#define MAX8973_CONTROL_FREQ_SHIFT_9PER_ENABLE

#define MAX8973_CONTROL_CLKADV_TRIP_DISABLED
#define MAX8973_CONTROL_CLKADV_TRIP_75mV_PER_US
#define MAX8973_CONTROL_CLKADV_TRIP_150mV_PER_US
#define MAX8973_CONTROL_CLKADV_TRIP_75mV_PER_US_HIST_DIS

#define MAX8973_CONTROL_INDUCTOR_VALUE_NOMINAL
#define MAX8973_CONTROL_INDUCTOR_VALUE_MINUS_30_PER
#define MAX8973_CONTROL_INDUCTOR_VALUE_PLUS_30_PER
#define MAX8973_CONTROL_INDUCTOR_VALUE_PLUS_60_PER

/*
 * struct max8973_regulator_platform_data - max8973 regulator platform data.
 *
 * @reg_init_data: The regulator init data.
 * @control_flags: Control flags which are ORed value of above flags to
 *		configure device.
 * @junction_temp_warning: Junction temp in millicelcius on which warning need
 *			   to be set. Thermal functionality is only supported on
 *			   MAX77621. The threshold warning supported by MAX77621
 *			   are 120C and 140C.
 * @enable_ext_control: Enable the voltage enable/disable through external
 *		control signal from EN input pin. If it is false then
 *		voltage output will be enabled/disabled through EN bit of
 *		device register.
 * @dvs_def_state: Default state of dvs. 1 if it is high else 0.
 */
struct max8973_regulator_platform_data {};

#endif /* __LINUX_REGULATOR_MAX8973_H */