projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86879d7
)
pmic:max8997: Switch the MAX8997 PMIC to be used with multibus I2C
author
Łukasz Majewski
<l.majewski@samsung.com>
Tue, 13 Nov 2012 03:21:54 +0000
(
03:21
+0000)
committer
Anatolij Gustschin
<agust@denx.de>
Wed, 14 Nov 2012 10:21:07 +0000
(11:21 +0100)
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>
drivers/misc/pmic_max8997.c
patch
|
blob
|
history
diff --git
a/drivers/misc/pmic_max8997.c
b/drivers/misc/pmic_max8997.c
index 62dbc05311c2c59be8bea3c49f3300ac5166fbe0..4943f667b519f40ed161cc8860d4706e63f3da94 100644
(file)
--- a/
drivers/misc/pmic_max8997.c
+++ b/
drivers/misc/pmic_max8997.c
@@
-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;
}