1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2016 Freescale Semiconductor, Inc.
4 * Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
10 #include <power/pmic.h>
11 #include <power/mc34vr500_pmic.h>
13 int power_mc34vr500_init(unsigned char bus)
15 static const char name[] = "MC34VR500";
16 struct pmic *p = pmic_alloc();
19 printf("%s: POWER allocation error!\n", __func__);
24 p->interface = PMIC_I2C;
25 p->number_of_regs = MC34VR500_NUM_OF_REGS;
26 p->hw.i2c.addr = MC34VR500_I2C_ADDR;