1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014 Gateworks Corporation
10 #include <power/pmic.h>
11 #include <power/pfuze100_pmic.h>
13 int power_pfuze100_init(unsigned char bus)
15 static const char name[] = "PFUZE100";
16 struct pmic *p = pmic_alloc();
19 printf("%s: POWER allocation error!\n", __func__);
24 p->interface = PMIC_I2C;
25 p->number_of_regs = PFUZE100_NUM_OF_REGS;
26 p->hw.i2c.addr = CFG_POWER_PFUZE100_I2C_ADDR;