1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * max8952.h - Voltage regulation for the Maxim 8952
5 * Copyright (C) 2010 Samsung Electrnoics
6 * MyungJoo Ham <myungjoo.ham@samsung.com>
9 #ifndef REGULATOR_MAX8952
10 #define REGULATOR_MAX8952
12 #include <linux/regulator/machine.h>
22 MAX8952_DVS_770mV
= 0,
89 MAX8952_SYNC_FREQ_26MHZ
, /* Default */
90 MAX8952_SYNC_FREQ_13MHZ
,
91 MAX8952_SYNC_FREQ_19_2MHZ
,
95 MAX8952_RAMP_32mV_us
= 0, /* Default */
101 MAX8952_RAMP_0_5mV_us
,
102 MAX8952_RAMP_0_25mV_us
,
105 #define MAX8952_NUM_DVS_MODE 4
107 struct max8952_platform_data
{
109 u32 dvs_mode
[MAX8952_NUM_DVS_MODE
]; /* MAX8952_DVS_MODEx_XXXXmV */
114 struct regulator_init_data
*reg_data
;
118 #endif /* REGULATOR_MAX8952 */