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