2 * Copyright (C) 2015 Freescale Semiconductor, Inc.
3 * Peng Fan <Peng.Fan@freescale.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 #include <power/pmic.h>
12 #include <power/pfuze3000_pmic.h>
14 int power_pfuze3000_init(unsigned char bus)
16 static const char name[] = "PFUZE3000";
17 struct pmic *p = pmic_alloc();
20 printf("%s: POWER allocation error!\n", __func__);
25 p->interface = PMIC_I2C;
26 p->number_of_regs = PMIC_NUM_OF_REGS;
27 p->hw.i2c.addr = CONFIG_POWER_PFUZE3000_I2C_ADDR;