blob: eeab7d6d556ad94905c8b12c65bd6751c3132f56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* Samsung Exynos5 SoC series FIMC-IS driver
*
* exynos5 fimc-is core functions
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/i2c.h>
#include <linux/slab.h>
#include "fimc-is-core.h"
enum{
NCP6335B_VOUT_0P875 = 0xAC,
NCP6335B_VOUT_0P900 = 0xB0,
NCP6335B_VOUT_0P925 = 0xB4,
NCP6335B_VOUT_0P950 = 0xB8,
NCP6335B_VOUT_0P975 = 0xBC,
NCP6335B_VOUT_1P000 = 0xC0,
};
struct ncp6335b_vout {
int sel; /* selector, unique value for vout entry and indepedant to dcdc vendor */
int val; /* dcdc-specific value for vout register */
char vout[7]; /* voltage level string */
};
int ncp6335b_get_vout_val(int sel);
const char *ncp6335b_get_vout_str(int sel);
int ncp6335b_set_voltage(struct i2c_client *client, int vout);
int ncp6335b_read_voltage(struct i2c_client *client);
|