diff options
author | Ćukasz Majewski <l.majewski@samsung.com> | 2012-11-13 03:21:54 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-11-14 11:21:07 +0100 |
commit | 452329f1d57fe7cbc54e65617e84d5bb1f93f631 (patch) | |
tree | d98a7777554c20f1777eafc51890d38972f03173 /drivers/misc | |
parent | 86879d7120ab4000d924b12315c01d57506af832 (diff) | |
download | u-boot-imx-452329f1d57fe7cbc54e65617e84d5bb1f93f631.zip u-boot-imx-452329f1d57fe7cbc54e65617e84d5bb1f93f631.tar.gz u-boot-imx-452329f1d57fe7cbc54e65617e84d5bb1f93f631.tar.bz2 |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/pmic_max8997.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/pmic_max8997.c b/drivers/misc/pmic_max8997.c index 62dbc05..4943f66 100644 --- 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; } |