Skip to content
Snippets Groups Projects
Commit 452329f1 authored by Łukasz Majewski's avatar Łukasz Majewski Committed by Anatolij Gustschin
Browse files

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: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 86879d71
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <common.h> #include <common.h>
#include <pmic.h> #include <pmic.h>
#include <max8997_pmic.h> #include <max8997_pmic.h>
#include <i2c.h>
int pmic_init(void) int pmic_init(void)
{ {
...@@ -37,7 +38,7 @@ int pmic_init(void) ...@@ -37,7 +38,7 @@ int pmic_init(void)
p->number_of_regs = PMIC_NUM_OF_REGS; p->number_of_regs = PMIC_NUM_OF_REGS;
p->hw.i2c.addr = MAX8997_I2C_ADDR; p->hw.i2c.addr = MAX8997_I2C_ADDR;
p->hw.i2c.tx_num = 1; p->hw.i2c.tx_num = 1;
p->bus = I2C_PMIC; p->bus = I2C_0;
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment