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 <dialog_pmic.h>
13 int pmic_dialog_init(unsigned char bus)
15 static const char name[] = "DIALOG_PMIC";
16 struct pmic *p = pmic_alloc();
19 printf("%s: POWER allocation error!\n", __func__);
24 p->number_of_regs = DIALOG_NUM_OF_REGS;
26 p->interface = PMIC_I2C;
27 p->hw.i2c.addr = CONFIG_SYS_DIALOG_PMIC_I2C_ADDR;