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