coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
da9212.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_DA9212_H_
4 #define __SOC_DA9212_H_
5 
6 #include <stdint.h>
7 
8 void da9212_probe(uint8_t i2c_num);
9 
10 enum {
11  /* Page selection */
13 
14  /* Regulator Registers */
19 };
20 
21 /* DA9212_REG_PAGE_CON (addr=0x0) */
22 enum {
25 };
26 
27 enum {
33  DA9212_PAGE_REVERT = 0x80
34 };
35 
36 /* DA9212_REG_BUCKA/B_CONT (addr=0x5D/0x5E) */
37 enum {
51 };
52 
53 /* DA9212_REG_BUCKA/B_CONF (addr=0xD1/0xD2) */
54 enum {
61 };
62 
63 /* DA9212_REG_CONFIG_E (addr=0x147) */
64 enum {
65  /* DEVICE IDs */
67  DA9212_ID = 0x22,
68  DA9213_ID = 0x23,
72 };
73 
74 #endif
@ DA9212_VBUCK_SEL_B
Definition: da9212.h:50
@ DA9212_BUCK_GPI_SHIFT
Definition: da9212.h:41
@ DA9212_BUCK_GPI_OFF
Definition: da9212.h:43
@ DA9212_VBUCK_SEL_A
Definition: da9212.h:49
@ DA9212_BUCK_GPI_MASK
Definition: da9212.h:42
@ DA9212_BUCK_ON
Definition: da9212.h:40
@ DA9212_BUCK_OFF
Definition: da9212.h:39
@ DA9212_VBUCK_SEL_MASK
Definition: da9212.h:48
@ DA9212_BUCK_GPI_GPIO0
Definition: da9212.h:44
@ DA9212_BUCK_EN_SHIFT
Definition: da9212.h:38
@ DA9212_BUCK_GPI_GPIO4
Definition: da9212.h:46
@ DA9212_BUCK_GPI_GPIO1
Definition: da9212.h:45
@ DA9212_VBUCK_SEL_SHIFT
Definition: da9212.h:47
@ DA9212_BUCK_MODE_PFM
Definition: da9212.h:58
@ DA9212_BUCK_MODE_AUTO
Definition: da9212.h:60
@ DA9212_BUCK_MODE_SHIFT
Definition: da9212.h:55
@ DA9212_BUCK_MODE_MANUAL
Definition: da9212.h:57
@ DA9212_BUCK_MODE_MASK
Definition: da9212.h:56
@ DA9212_BUCK_MODE_PWM
Definition: da9212.h:59
@ DA9212_REG_PAGE0
Definition: da9212.h:28
@ DA9212_REPEAT_WRITE_MODE
Definition: da9212.h:32
@ DA9212_REG_PAGE2
Definition: da9212.h:29
@ DA9212_PAGE_REVERT
Definition: da9212.h:33
@ DA9212_PAGE_WRITE_MODE
Definition: da9212.h:31
@ DA9212_REG_PAGE4
Definition: da9212.h:30
@ DA9212_REG_BUCKA_CONF
Definition: da9212.h:17
@ DA9212_REG_BUCKA_CONT
Definition: da9212.h:15
@ DA9212_REG_PAGE_CON
Definition: da9212.h:12
@ DA9212_REG_BUCKB_CONT
Definition: da9212.h:16
@ DA9212_REG_BUCKB_CONF
Definition: da9212.h:18
@ DA9212_REG_PAGE_SHIFT
Definition: da9212.h:23
@ DA9212_REG_PAGE_MASK
Definition: da9212.h:24
@ DA9212_VARIANT_ID_AC
Definition: da9212.h:71
@ DA9212_REG_VARIANT_ID
Definition: da9212.h:69
@ DA9212_ID
Definition: da9212.h:67
@ DA9212_REG_DEVICE_ID
Definition: da9212.h:66
@ DA9212_VARIANT_ID_AB
Definition: da9212.h:70
@ DA9213_ID
Definition: da9212.h:68
void da9212_probe(uint8_t i2c_num)
Definition: da9212.c:53
unsigned char uint8_t
Definition: stdint.h:8