mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 19:48:59 +01:00
pmic:max8997: Switch the MAX8997 PMIC to be used with multibus I2C
PMIC MAX8997 is now ready to work with single and multibus soft I2C implementation. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
86879d7120
commit
452329f1d5
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <common.h>
|
||||
#include <pmic.h>
|
||||
#include <max8997_pmic.h>
|
||||
#include <i2c.h>
|
||||
|
||||
int pmic_init(void)
|
||||
{
|
||||
|
|
@ -37,7 +38,7 @@ int pmic_init(void)
|
|||
p->number_of_regs = PMIC_NUM_OF_REGS;
|
||||
p->hw.i2c.addr = MAX8997_I2C_ADDR;
|
||||
p->hw.i2c.tx_num = 1;
|
||||
p->bus = I2C_PMIC;
|
||||
p->bus = I2C_0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue