2 * Copyright (C) 2014 Gateworks Corporation
3 * Tim Harvey <tharvey@gateworks.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 #include <power/pmic.h>
12 #include <power/ltc3676_pmic.h>
14 int power_ltc3676_init(unsigned char bus
)
16 static const char name
[] = "LTC3676_PMIC";
17 struct pmic
*p
= pmic_alloc();
20 printf("%s: POWER allocation error!\n", __func__
);
25 p
->interface
= PMIC_I2C
;
26 p
->number_of_regs
= LTC3676_NUM_OF_REGS
;
27 p
->hw
.i2c
.addr
= CONFIG_POWER_LTC3676_I2C_ADDR
;