coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mt6691.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __SOC_MEDIATEK_MT8195_MT6691_H__
4
#define __SOC_MEDIATEK_MT8195_MT6691_H__
5
6
#include <
stdint.h
>
7
8
void
mt6691_probe
(
uint8_t
i2c_num);
9
int
mt6691_set_voltage
(
uint8_t
i2c_num,
unsigned
int
volt_uv);
10
int
mt6691_get_voltage
(
uint8_t
i2c_num);
11
12
#define MT6691_CID_CODE 0x01
13
14
#define MT6691_VDD2_ID 0x0000
15
#define MT6691_VDDQ_ID 0x0000
16
#define MT6691_PGOOD_SHIFT 7
17
#define MT6691_DN_SR_MASK 0x7
18
#define MT6691_DN_SR_SHIFT 5
19
20
enum
{
21
/* Voltage setting */
22
MT6691_VSEL0
= 0x00,
23
MT6691_VSEL1
= 0x01,
24
/* Control register */
25
MT6691_CONTROL
= 0x02,
26
/* IC Type */
27
MT6691_ID1
= 0x03,
28
/* IC mask version */
29
MT6691_ID2
= 0x04,
30
/* Monitor register */
31
MT6691_MONITOR
= 0x05,
32
MT6691_CTRL2
= 0x06,
33
MT6691_CTRL3
= 0x07,
34
MT6691_CTRL4
= 0x08,
35
};
36
37
#endif
MT6691_CONTROL
@ MT6691_CONTROL
Definition:
mt6691.h:25
MT6691_VSEL1
@ MT6691_VSEL1
Definition:
mt6691.h:23
MT6691_CTRL4
@ MT6691_CTRL4
Definition:
mt6691.h:34
MT6691_ID2
@ MT6691_ID2
Definition:
mt6691.h:29
MT6691_CTRL2
@ MT6691_CTRL2
Definition:
mt6691.h:32
MT6691_VSEL0
@ MT6691_VSEL0
Definition:
mt6691.h:22
MT6691_MONITOR
@ MT6691_MONITOR
Definition:
mt6691.h:31
MT6691_CTRL3
@ MT6691_CTRL3
Definition:
mt6691.h:33
MT6691_ID1
@ MT6691_ID1
Definition:
mt6691.h:27
mt6691_get_voltage
int mt6691_get_voltage(uint8_t i2c_num)
Definition:
mt6691.c:30
mt6691_set_voltage
int mt6691_set_voltage(uint8_t i2c_num, unsigned int volt_uv)
Definition:
mt6691.c:15
mt6691_probe
void mt6691_probe(uint8_t i2c_num)
Definition:
mt6691.c:64
stdint.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
src
soc
mediatek
mt8195
include
soc
mt6691.h
Generated by
1.9.1