xref: /OK3568_Linux_fs/kernel/drivers/regulator/max8952.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * max8952.c - Voltage and current regulation for the Maxim 8952
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2010 Samsung Electronics
6*4882a593Smuzhiyun  * MyungJoo Ham <myungjoo.ham@samsung.com>
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #include <linux/module.h>
10*4882a593Smuzhiyun #include <linux/init.h>
11*4882a593Smuzhiyun #include <linux/i2c.h>
12*4882a593Smuzhiyun #include <linux/err.h>
13*4882a593Smuzhiyun #include <linux/platform_device.h>
14*4882a593Smuzhiyun #include <linux/regulator/driver.h>
15*4882a593Smuzhiyun #include <linux/regulator/max8952.h>
16*4882a593Smuzhiyun #include <linux/gpio/consumer.h>
17*4882a593Smuzhiyun #include <linux/io.h>
18*4882a593Smuzhiyun #include <linux/of.h>
19*4882a593Smuzhiyun #include <linux/regulator/of_regulator.h>
20*4882a593Smuzhiyun #include <linux/slab.h>
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun /* Registers */
23*4882a593Smuzhiyun enum {
24*4882a593Smuzhiyun 	MAX8952_REG_MODE0,
25*4882a593Smuzhiyun 	MAX8952_REG_MODE1,
26*4882a593Smuzhiyun 	MAX8952_REG_MODE2,
27*4882a593Smuzhiyun 	MAX8952_REG_MODE3,
28*4882a593Smuzhiyun 	MAX8952_REG_CONTROL,
29*4882a593Smuzhiyun 	MAX8952_REG_SYNC,
30*4882a593Smuzhiyun 	MAX8952_REG_RAMP,
31*4882a593Smuzhiyun 	MAX8952_REG_CHIP_ID1,
32*4882a593Smuzhiyun 	MAX8952_REG_CHIP_ID2,
33*4882a593Smuzhiyun };
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun struct max8952_data {
36*4882a593Smuzhiyun 	struct i2c_client	*client;
37*4882a593Smuzhiyun 	struct max8952_platform_data *pdata;
38*4882a593Smuzhiyun 	struct gpio_desc *vid0_gpiod;
39*4882a593Smuzhiyun 	struct gpio_desc *vid1_gpiod;
40*4882a593Smuzhiyun 	bool vid0;
41*4882a593Smuzhiyun 	bool vid1;
42*4882a593Smuzhiyun };
43*4882a593Smuzhiyun 
max8952_read_reg(struct max8952_data * max8952,u8 reg)44*4882a593Smuzhiyun static int max8952_read_reg(struct max8952_data *max8952, u8 reg)
45*4882a593Smuzhiyun {
46*4882a593Smuzhiyun 	int ret = i2c_smbus_read_byte_data(max8952->client, reg);
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun 	if (ret > 0)
49*4882a593Smuzhiyun 		ret &= 0xff;
50*4882a593Smuzhiyun 
51*4882a593Smuzhiyun 	return ret;
52*4882a593Smuzhiyun }
53*4882a593Smuzhiyun 
max8952_write_reg(struct max8952_data * max8952,u8 reg,u8 value)54*4882a593Smuzhiyun static int max8952_write_reg(struct max8952_data *max8952,
55*4882a593Smuzhiyun 		u8 reg, u8 value)
56*4882a593Smuzhiyun {
57*4882a593Smuzhiyun 	return i2c_smbus_write_byte_data(max8952->client, reg, value);
58*4882a593Smuzhiyun }
59*4882a593Smuzhiyun 
max8952_list_voltage(struct regulator_dev * rdev,unsigned int selector)60*4882a593Smuzhiyun static int max8952_list_voltage(struct regulator_dev *rdev,
61*4882a593Smuzhiyun 		unsigned int selector)
62*4882a593Smuzhiyun {
63*4882a593Smuzhiyun 	struct max8952_data *max8952 = rdev_get_drvdata(rdev);
64*4882a593Smuzhiyun 
65*4882a593Smuzhiyun 	if (rdev_get_id(rdev) != 0)
66*4882a593Smuzhiyun 		return -EINVAL;
67*4882a593Smuzhiyun 
68*4882a593Smuzhiyun 	return (max8952->pdata->dvs_mode[selector] * 10 + 770) * 1000;
69*4882a593Smuzhiyun }
70*4882a593Smuzhiyun 
max8952_get_voltage_sel(struct regulator_dev * rdev)71*4882a593Smuzhiyun static int max8952_get_voltage_sel(struct regulator_dev *rdev)
72*4882a593Smuzhiyun {
73*4882a593Smuzhiyun 	struct max8952_data *max8952 = rdev_get_drvdata(rdev);
74*4882a593Smuzhiyun 	u8 vid = 0;
75*4882a593Smuzhiyun 
76*4882a593Smuzhiyun 	if (max8952->vid0)
77*4882a593Smuzhiyun 		vid += 1;
78*4882a593Smuzhiyun 	if (max8952->vid1)
79*4882a593Smuzhiyun 		vid += 2;
80*4882a593Smuzhiyun 
81*4882a593Smuzhiyun 	return vid;
82*4882a593Smuzhiyun }
83*4882a593Smuzhiyun 
max8952_set_voltage_sel(struct regulator_dev * rdev,unsigned selector)84*4882a593Smuzhiyun static int max8952_set_voltage_sel(struct regulator_dev *rdev,
85*4882a593Smuzhiyun 				   unsigned selector)
86*4882a593Smuzhiyun {
87*4882a593Smuzhiyun 	struct max8952_data *max8952 = rdev_get_drvdata(rdev);
88*4882a593Smuzhiyun 
89*4882a593Smuzhiyun 	if (!max8952->vid0_gpiod || !max8952->vid1_gpiod) {
90*4882a593Smuzhiyun 		/* DVS not supported */
91*4882a593Smuzhiyun 		return -EPERM;
92*4882a593Smuzhiyun 	}
93*4882a593Smuzhiyun 
94*4882a593Smuzhiyun 	max8952->vid0 = selector & 0x1;
95*4882a593Smuzhiyun 	max8952->vid1 = (selector >> 1) & 0x1;
96*4882a593Smuzhiyun 	gpiod_set_value(max8952->vid0_gpiod, max8952->vid0);
97*4882a593Smuzhiyun 	gpiod_set_value(max8952->vid1_gpiod, max8952->vid1);
98*4882a593Smuzhiyun 
99*4882a593Smuzhiyun 	return 0;
100*4882a593Smuzhiyun }
101*4882a593Smuzhiyun 
102*4882a593Smuzhiyun static const struct regulator_ops max8952_ops = {
103*4882a593Smuzhiyun 	.list_voltage		= max8952_list_voltage,
104*4882a593Smuzhiyun 	.get_voltage_sel	= max8952_get_voltage_sel,
105*4882a593Smuzhiyun 	.set_voltage_sel	= max8952_set_voltage_sel,
106*4882a593Smuzhiyun };
107*4882a593Smuzhiyun 
108*4882a593Smuzhiyun static const struct regulator_desc regulator = {
109*4882a593Smuzhiyun 	.name		= "MAX8952_VOUT",
110*4882a593Smuzhiyun 	.id		= 0,
111*4882a593Smuzhiyun 	.n_voltages	= MAX8952_NUM_DVS_MODE,
112*4882a593Smuzhiyun 	.ops		= &max8952_ops,
113*4882a593Smuzhiyun 	.type		= REGULATOR_VOLTAGE,
114*4882a593Smuzhiyun 	.owner		= THIS_MODULE,
115*4882a593Smuzhiyun };
116*4882a593Smuzhiyun 
117*4882a593Smuzhiyun #ifdef CONFIG_OF
118*4882a593Smuzhiyun static const struct of_device_id max8952_dt_match[] = {
119*4882a593Smuzhiyun 	{ .compatible = "maxim,max8952" },
120*4882a593Smuzhiyun 	{},
121*4882a593Smuzhiyun };
122*4882a593Smuzhiyun MODULE_DEVICE_TABLE(of, max8952_dt_match);
123*4882a593Smuzhiyun 
max8952_parse_dt(struct device * dev)124*4882a593Smuzhiyun static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
125*4882a593Smuzhiyun {
126*4882a593Smuzhiyun 	struct max8952_platform_data *pd;
127*4882a593Smuzhiyun 	struct device_node *np = dev->of_node;
128*4882a593Smuzhiyun 	int ret;
129*4882a593Smuzhiyun 	int i;
130*4882a593Smuzhiyun 
131*4882a593Smuzhiyun 	pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
132*4882a593Smuzhiyun 	if (!pd)
133*4882a593Smuzhiyun 		return NULL;
134*4882a593Smuzhiyun 
135*4882a593Smuzhiyun 	if (of_property_read_u32(np, "max8952,default-mode", &pd->default_mode))
136*4882a593Smuzhiyun 		dev_warn(dev, "Default mode not specified, assuming 0\n");
137*4882a593Smuzhiyun 
138*4882a593Smuzhiyun 	ret = of_property_read_u32_array(np, "max8952,dvs-mode-microvolt",
139*4882a593Smuzhiyun 					pd->dvs_mode, ARRAY_SIZE(pd->dvs_mode));
140*4882a593Smuzhiyun 	if (ret) {
141*4882a593Smuzhiyun 		dev_err(dev, "max8952,dvs-mode-microvolt property not specified");
142*4882a593Smuzhiyun 		return NULL;
143*4882a593Smuzhiyun 	}
144*4882a593Smuzhiyun 
145*4882a593Smuzhiyun 	for (i = 0; i < ARRAY_SIZE(pd->dvs_mode); ++i) {
146*4882a593Smuzhiyun 		if (pd->dvs_mode[i] < 770000 || pd->dvs_mode[i] > 1400000) {
147*4882a593Smuzhiyun 			dev_err(dev, "DVS voltage %d out of range\n", i);
148*4882a593Smuzhiyun 			return NULL;
149*4882a593Smuzhiyun 		}
150*4882a593Smuzhiyun 		pd->dvs_mode[i] = (pd->dvs_mode[i] - 770000) / 10000;
151*4882a593Smuzhiyun 	}
152*4882a593Smuzhiyun 
153*4882a593Smuzhiyun 	if (of_property_read_u32(np, "max8952,sync-freq", &pd->sync_freq))
154*4882a593Smuzhiyun 		dev_warn(dev, "max8952,sync-freq property not specified, defaulting to 26MHz\n");
155*4882a593Smuzhiyun 
156*4882a593Smuzhiyun 	if (of_property_read_u32(np, "max8952,ramp-speed", &pd->ramp_speed))
157*4882a593Smuzhiyun 		dev_warn(dev, "max8952,ramp-speed property not specified, defaulting to 32mV/us\n");
158*4882a593Smuzhiyun 
159*4882a593Smuzhiyun 	pd->reg_data = of_get_regulator_init_data(dev, np, &regulator);
160*4882a593Smuzhiyun 	if (!pd->reg_data) {
161*4882a593Smuzhiyun 		dev_err(dev, "Failed to parse regulator init data\n");
162*4882a593Smuzhiyun 		return NULL;
163*4882a593Smuzhiyun 	}
164*4882a593Smuzhiyun 
165*4882a593Smuzhiyun 	return pd;
166*4882a593Smuzhiyun }
167*4882a593Smuzhiyun #else
max8952_parse_dt(struct device * dev)168*4882a593Smuzhiyun static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
169*4882a593Smuzhiyun {
170*4882a593Smuzhiyun 	return NULL;
171*4882a593Smuzhiyun }
172*4882a593Smuzhiyun #endif
173*4882a593Smuzhiyun 
max8952_pmic_probe(struct i2c_client * client,const struct i2c_device_id * i2c_id)174*4882a593Smuzhiyun static int max8952_pmic_probe(struct i2c_client *client,
175*4882a593Smuzhiyun 		const struct i2c_device_id *i2c_id)
176*4882a593Smuzhiyun {
177*4882a593Smuzhiyun 	struct i2c_adapter *adapter = client->adapter;
178*4882a593Smuzhiyun 	struct max8952_platform_data *pdata = dev_get_platdata(&client->dev);
179*4882a593Smuzhiyun 	struct regulator_config config = { };
180*4882a593Smuzhiyun 	struct max8952_data *max8952;
181*4882a593Smuzhiyun 	struct regulator_dev *rdev;
182*4882a593Smuzhiyun 	struct gpio_desc *gpiod;
183*4882a593Smuzhiyun 	enum gpiod_flags gflags;
184*4882a593Smuzhiyun 
185*4882a593Smuzhiyun 	int ret = 0;
186*4882a593Smuzhiyun 
187*4882a593Smuzhiyun 	if (client->dev.of_node)
188*4882a593Smuzhiyun 		pdata = max8952_parse_dt(&client->dev);
189*4882a593Smuzhiyun 
190*4882a593Smuzhiyun 	if (!pdata) {
191*4882a593Smuzhiyun 		dev_err(&client->dev, "Require the platform data\n");
192*4882a593Smuzhiyun 		return -EINVAL;
193*4882a593Smuzhiyun 	}
194*4882a593Smuzhiyun 
195*4882a593Smuzhiyun 	if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE))
196*4882a593Smuzhiyun 		return -EIO;
197*4882a593Smuzhiyun 
198*4882a593Smuzhiyun 	max8952 = devm_kzalloc(&client->dev, sizeof(struct max8952_data),
199*4882a593Smuzhiyun 			       GFP_KERNEL);
200*4882a593Smuzhiyun 	if (!max8952)
201*4882a593Smuzhiyun 		return -ENOMEM;
202*4882a593Smuzhiyun 
203*4882a593Smuzhiyun 	max8952->client = client;
204*4882a593Smuzhiyun 	max8952->pdata = pdata;
205*4882a593Smuzhiyun 
206*4882a593Smuzhiyun 	config.dev = &client->dev;
207*4882a593Smuzhiyun 	config.init_data = pdata->reg_data;
208*4882a593Smuzhiyun 	config.driver_data = max8952;
209*4882a593Smuzhiyun 	config.of_node = client->dev.of_node;
210*4882a593Smuzhiyun 
211*4882a593Smuzhiyun 	if (pdata->reg_data->constraints.boot_on)
212*4882a593Smuzhiyun 		gflags = GPIOD_OUT_HIGH;
213*4882a593Smuzhiyun 	else
214*4882a593Smuzhiyun 		gflags = GPIOD_OUT_LOW;
215*4882a593Smuzhiyun 	gflags |= GPIOD_FLAGS_BIT_NONEXCLUSIVE;
216*4882a593Smuzhiyun 	/*
217*4882a593Smuzhiyun 	 * Do not use devm* here: the regulator core takes over the
218*4882a593Smuzhiyun 	 * lifecycle management of the GPIO descriptor.
219*4882a593Smuzhiyun 	 */
220*4882a593Smuzhiyun 	gpiod = gpiod_get_optional(&client->dev,
221*4882a593Smuzhiyun 				   "max8952,en",
222*4882a593Smuzhiyun 				   gflags);
223*4882a593Smuzhiyun 	if (IS_ERR(gpiod))
224*4882a593Smuzhiyun 		return PTR_ERR(gpiod);
225*4882a593Smuzhiyun 	if (gpiod)
226*4882a593Smuzhiyun 		config.ena_gpiod = gpiod;
227*4882a593Smuzhiyun 
228*4882a593Smuzhiyun 	rdev = devm_regulator_register(&client->dev, &regulator, &config);
229*4882a593Smuzhiyun 	if (IS_ERR(rdev)) {
230*4882a593Smuzhiyun 		ret = PTR_ERR(rdev);
231*4882a593Smuzhiyun 		dev_err(&client->dev, "regulator init failed (%d)\n", ret);
232*4882a593Smuzhiyun 		return ret;
233*4882a593Smuzhiyun 	}
234*4882a593Smuzhiyun 
235*4882a593Smuzhiyun 	max8952->vid0 = pdata->default_mode & 0x1;
236*4882a593Smuzhiyun 	max8952->vid1 = (pdata->default_mode >> 1) & 0x1;
237*4882a593Smuzhiyun 
238*4882a593Smuzhiyun 	/* Fetch vid0 and vid1 GPIOs if available */
239*4882a593Smuzhiyun 	gflags = max8952->vid0 ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
240*4882a593Smuzhiyun 	max8952->vid0_gpiod = devm_gpiod_get_index_optional(&client->dev,
241*4882a593Smuzhiyun 							    "max8952,vid",
242*4882a593Smuzhiyun 							    0, gflags);
243*4882a593Smuzhiyun 	if (IS_ERR(max8952->vid0_gpiod))
244*4882a593Smuzhiyun 		return PTR_ERR(max8952->vid0_gpiod);
245*4882a593Smuzhiyun 	gflags = max8952->vid1 ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
246*4882a593Smuzhiyun 	max8952->vid1_gpiod = devm_gpiod_get_index_optional(&client->dev,
247*4882a593Smuzhiyun 							    "max8952,vid",
248*4882a593Smuzhiyun 							    1, gflags);
249*4882a593Smuzhiyun 	if (IS_ERR(max8952->vid1_gpiod))
250*4882a593Smuzhiyun 		return PTR_ERR(max8952->vid1_gpiod);
251*4882a593Smuzhiyun 
252*4882a593Smuzhiyun 	/* If either VID GPIO is missing just disable this */
253*4882a593Smuzhiyun 	if (!max8952->vid0_gpiod || !max8952->vid1_gpiod) {
254*4882a593Smuzhiyun 		dev_warn(&client->dev, "VID0/1 gpio invalid: "
255*4882a593Smuzhiyun 			 "DVS not available.\n");
256*4882a593Smuzhiyun 		max8952->vid0 = 0;
257*4882a593Smuzhiyun 		max8952->vid1 = 0;
258*4882a593Smuzhiyun 		/* Make sure if we have any descriptors they get set to low */
259*4882a593Smuzhiyun 		if (max8952->vid0_gpiod)
260*4882a593Smuzhiyun 			gpiod_set_value(max8952->vid0_gpiod, 0);
261*4882a593Smuzhiyun 		if (max8952->vid1_gpiod)
262*4882a593Smuzhiyun 			gpiod_set_value(max8952->vid1_gpiod, 0);
263*4882a593Smuzhiyun 
264*4882a593Smuzhiyun 		/* Disable Pulldown of EN only */
265*4882a593Smuzhiyun 		max8952_write_reg(max8952, MAX8952_REG_CONTROL, 0x60);
266*4882a593Smuzhiyun 
267*4882a593Smuzhiyun 		dev_err(&client->dev, "DVS modes disabled because VID0 and VID1"
268*4882a593Smuzhiyun 				" do not have proper controls.\n");
269*4882a593Smuzhiyun 	} else {
270*4882a593Smuzhiyun 		/*
271*4882a593Smuzhiyun 		 * Disable Pulldown on EN, VID0, VID1 to reduce
272*4882a593Smuzhiyun 		 * leakage current of MAX8952 assuming that MAX8952
273*4882a593Smuzhiyun 		 * is turned on (EN==1). Note that without having VID0/1
274*4882a593Smuzhiyun 		 * properly connected, turning pulldown off can be
275*4882a593Smuzhiyun 		 * problematic. Thus, turn this off only when they are
276*4882a593Smuzhiyun 		 * controllable by GPIO.
277*4882a593Smuzhiyun 		 */
278*4882a593Smuzhiyun 		max8952_write_reg(max8952, MAX8952_REG_CONTROL, 0x0);
279*4882a593Smuzhiyun 	}
280*4882a593Smuzhiyun 
281*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_MODE0,
282*4882a593Smuzhiyun 			(max8952_read_reg(max8952,
283*4882a593Smuzhiyun 					  MAX8952_REG_MODE0) & 0xC0) |
284*4882a593Smuzhiyun 			(pdata->dvs_mode[0] & 0x3F));
285*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_MODE1,
286*4882a593Smuzhiyun 			(max8952_read_reg(max8952,
287*4882a593Smuzhiyun 					  MAX8952_REG_MODE1) & 0xC0) |
288*4882a593Smuzhiyun 			(pdata->dvs_mode[1] & 0x3F));
289*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_MODE2,
290*4882a593Smuzhiyun 			(max8952_read_reg(max8952,
291*4882a593Smuzhiyun 					  MAX8952_REG_MODE2) & 0xC0) |
292*4882a593Smuzhiyun 			(pdata->dvs_mode[2] & 0x3F));
293*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_MODE3,
294*4882a593Smuzhiyun 			(max8952_read_reg(max8952,
295*4882a593Smuzhiyun 					  MAX8952_REG_MODE3) & 0xC0) |
296*4882a593Smuzhiyun 			(pdata->dvs_mode[3] & 0x3F));
297*4882a593Smuzhiyun 
298*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_SYNC,
299*4882a593Smuzhiyun 			(max8952_read_reg(max8952, MAX8952_REG_SYNC) & 0x3F) |
300*4882a593Smuzhiyun 			((pdata->sync_freq & 0x3) << 6));
301*4882a593Smuzhiyun 	max8952_write_reg(max8952, MAX8952_REG_RAMP,
302*4882a593Smuzhiyun 			(max8952_read_reg(max8952, MAX8952_REG_RAMP) & 0x1F) |
303*4882a593Smuzhiyun 			((pdata->ramp_speed & 0x7) << 5));
304*4882a593Smuzhiyun 
305*4882a593Smuzhiyun 	i2c_set_clientdata(client, max8952);
306*4882a593Smuzhiyun 
307*4882a593Smuzhiyun 	return 0;
308*4882a593Smuzhiyun }
309*4882a593Smuzhiyun 
310*4882a593Smuzhiyun static const struct i2c_device_id max8952_ids[] = {
311*4882a593Smuzhiyun 	{ "max8952", 0 },
312*4882a593Smuzhiyun 	{ },
313*4882a593Smuzhiyun };
314*4882a593Smuzhiyun MODULE_DEVICE_TABLE(i2c, max8952_ids);
315*4882a593Smuzhiyun 
316*4882a593Smuzhiyun static struct i2c_driver max8952_pmic_driver = {
317*4882a593Smuzhiyun 	.probe		= max8952_pmic_probe,
318*4882a593Smuzhiyun 	.driver		= {
319*4882a593Smuzhiyun 		.name	= "max8952",
320*4882a593Smuzhiyun 		.of_match_table = of_match_ptr(max8952_dt_match),
321*4882a593Smuzhiyun 	},
322*4882a593Smuzhiyun 	.id_table	= max8952_ids,
323*4882a593Smuzhiyun };
324*4882a593Smuzhiyun 
max8952_pmic_init(void)325*4882a593Smuzhiyun static int __init max8952_pmic_init(void)
326*4882a593Smuzhiyun {
327*4882a593Smuzhiyun 	return i2c_add_driver(&max8952_pmic_driver);
328*4882a593Smuzhiyun }
329*4882a593Smuzhiyun subsys_initcall(max8952_pmic_init);
330*4882a593Smuzhiyun 
max8952_pmic_exit(void)331*4882a593Smuzhiyun static void __exit max8952_pmic_exit(void)
332*4882a593Smuzhiyun {
333*4882a593Smuzhiyun 	i2c_del_driver(&max8952_pmic_driver);
334*4882a593Smuzhiyun }
335*4882a593Smuzhiyun module_exit(max8952_pmic_exit);
336*4882a593Smuzhiyun 
337*4882a593Smuzhiyun MODULE_DESCRIPTION("MAXIM 8952 voltage regulator driver");
338*4882a593Smuzhiyun MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>");
339*4882a593Smuzhiyun MODULE_LICENSE("GPL");
340