1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2011 Samsung Electronics
4 * Lukasz Majewski <l.majewski@samsung.com>
8 #include <power/pmic.h>
9 #include <power/max8998_pmic.h>
12 int pmic_init(unsigned char bus)
14 static const char name[] = "MAX8998_PMIC";
15 struct pmic *p = pmic_alloc();
18 printf("%s: POWER allocation error!\n", __func__);
22 puts("Board PMIC init\n");
25 p->interface = PMIC_I2C;
26 p->number_of_regs = PMIC_NUM_OF_REGS;
27 p->hw.i2c.addr = MAX8998_I2C_ADDR;