1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * fan53555.h - Fairchild Regulator FAN53555 D 3 * fan53555.h - Fairchild Regulator FAN53555 Driver 4 * 4 * 5 * Copyright (C) 2012 Marvell Technology Ltd. 5 * Copyright (C) 2012 Marvell Technology Ltd. 6 * Yunfan Zhang <yfzhang@marvell.com> 6 * Yunfan Zhang <yfzhang@marvell.com> 7 */ 7 */ 8 8 9 #ifndef __FAN53555_H__ 9 #ifndef __FAN53555_H__ 10 #define __FAN53555_H__ 10 #define __FAN53555_H__ 11 11 12 /* VSEL ID */ 12 /* VSEL ID */ 13 enum { 13 enum { 14 FAN53555_VSEL_ID_0 = 0, 14 FAN53555_VSEL_ID_0 = 0, 15 FAN53555_VSEL_ID_1, 15 FAN53555_VSEL_ID_1, 16 }; 16 }; 17 17 18 /* Transition slew rate limiting from a low to 18 /* Transition slew rate limiting from a low to high voltage. 19 * ----------------------- 19 * ----------------------- 20 * Bin |Slew Rate(mV/uS) 20 * Bin |Slew Rate(mV/uS) 21 * ------|---------------- 21 * ------|---------------- 22 * 000 | 64.00 22 * 000 | 64.00 23 * ------|---------------- 23 * ------|---------------- 24 * 001 | 32.00 24 * 001 | 32.00 25 * ------|---------------- 25 * ------|---------------- 26 * 010 | 16.00 26 * 010 | 16.00 27 * ------|---------------- 27 * ------|---------------- 28 * 011 | 8.00 28 * 011 | 8.00 29 * ------|---------------- 29 * ------|---------------- 30 * 100 | 4.00 30 * 100 | 4.00 31 * ------|---------------- 31 * ------|---------------- 32 * 101 | 2.00 32 * 101 | 2.00 33 * ------|---------------- 33 * ------|---------------- 34 * 110 | 1.00 34 * 110 | 1.00 35 * ------|---------------- 35 * ------|---------------- 36 * 111 | 0.50 36 * 111 | 0.50 37 * ----------------------- 37 * ----------------------- 38 */ 38 */ 39 enum { 39 enum { 40 FAN53555_SLEW_RATE_64MV = 0, 40 FAN53555_SLEW_RATE_64MV = 0, 41 FAN53555_SLEW_RATE_32MV, 41 FAN53555_SLEW_RATE_32MV, 42 FAN53555_SLEW_RATE_16MV, 42 FAN53555_SLEW_RATE_16MV, 43 FAN53555_SLEW_RATE_8MV, 43 FAN53555_SLEW_RATE_8MV, 44 FAN53555_SLEW_RATE_4MV, 44 FAN53555_SLEW_RATE_4MV, 45 FAN53555_SLEW_RATE_2MV, 45 FAN53555_SLEW_RATE_2MV, 46 FAN53555_SLEW_RATE_1MV, 46 FAN53555_SLEW_RATE_1MV, 47 FAN53555_SLEW_RATE_0_5MV, 47 FAN53555_SLEW_RATE_0_5MV, 48 }; 48 }; 49 49 50 struct fan53555_platform_data { 50 struct fan53555_platform_data { 51 struct regulator_init_data *regulator; 51 struct regulator_init_data *regulator; 52 unsigned int slew_rate; 52 unsigned int slew_rate; 53 /* Sleep VSEL ID */ 53 /* Sleep VSEL ID */ 54 unsigned int sleep_vsel_id; 54 unsigned int sleep_vsel_id; 55 }; 55 }; 56 56 57 #endif /* __FAN53555_H__ */ 57 #endif /* __FAN53555_H__ */ 58 58
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.