How to enable i2c support in U-boot source code ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable i2c support in U-boot source code ?

6,273件の閲覧回数
periyasamyr
Contributor I

Hi ,

I would need to communicate with PMIC (MMPF0100)  from u-boot source code through i2c command ,the u-boot source code from u-boot community (u-boot-2014.10) for imx.6 solo lite (mx6slevk) board does not have i2c support by default. Hence please share the u-boot source code link with i2c support or provide the steps to enable the support in u-boot for imx.6 solo lite (mx6slevk) board. 

   

Thanks and Regards

Periyasamy R

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

3,192件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

You can apply this patch:

https://patchwork.ozlabs.org/patch/388026/

It hasn't been applied, but it will allow you to communicate with the PMIC on mx6slevk.

Hope it helps.

0 件の賞賛
返信

3,192件の閲覧回数
periyasamyr
Contributor I

Dear Fabio,

Please share the mx6slevk.c and mx6slevk.h file with patches applied, then it will be very much useful to compare with existing source code.

Thanks

Periyasamy R

0 件の賞賛
返信

3,192件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

Just use the latest U-boot source code from git and apply the patch manually.

0 件の賞賛
返信

3,192件の閲覧回数
sinanakman
Senior Contributor III

Hi Priyasamy

Take a look at the file include/configs/mx6sabresd.h

which is for sabresd board. These are the I2C and PMIC

related lines :

/* I2C Configs */

#define CONFIG_CMD_I2C

#define CONFIG_SYS_I2C

#define CONFIG_SYS_I2C_MXC

#define CONFIG_SYS_I2C_SPEED              100000

/* PMIC */

#define CONFIG_POWER

#define CONFIG_POWER_I2C

#define CONFIG_POWER_PFUZE100

#define CONFIG_POWER_PFUZE100_I2C_ADDR  0x08

If it applies to your board (imx solo lite) you should

include similar defines in mx6slevk.h and compile for

your board again. You might have to change the I2C

address for your board. I don't have the solo lite

board schematics handy now to verify this but make

sure all that is supported in your board.

Hope this helps

Sinan Akman

0 件の賞賛
返信

3,192件の閲覧回数
jaymind
Contributor IV

Hello,

check below link, may it will help you.

https://community.freescale.com/thread/322813

also run some command in u-boot

=> i2c probe

help i2c

may it work.:smileyalert:

go through above link.

Regards

Jaymin D

0 件の賞賛
返信