Ho to modify code when change pmu?

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

Ho to modify code when change pmu?

2,358件の閲覧回数
mingmingyuan
Contributor III

we change pmu from MMPF0100F0EP to MMPF0100F4AEP, now i2c can't work,so we can't config pmu, log as below:

In:    serial

Out:   serial

Err:   serial

i2c_addr:chip address cycle fail(a1)

i2c_addr failed

Read device ID error!

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

Hit any key to stop autoboot:  0

kernel   @ 10808000 (4738520)

board:sambaSD

system:android4.4

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

2,217件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi mingming

please modify function setup_pmic_voltages in uboot board file, like

.../board/freescale/../mx6sabresd.c

Also it may be useful to check Chapter 23 PF100 Regulator Driver

attached Linux Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,217件の閲覧回数
mingmingyuan
Contributor III

when read device ID in uboot , it failed, I also check the i2c addr of new pmu, it also is 0x8, so when we change pmu ,we needn't change uboot code, right?

static int setup_pmic_voltages(void)

{

        unsigned char value, rev_id = 0 ;

        i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);

        if (!i2c_probe(0x8)) {

                if (i2c_read(0x8, 0, 1, &value, 1)) {

                        printf("Read device ID error!\n");

                        return -1;

                }

0 件の賞賛
返信

2,217件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

from you log in first message :  "i2c_addr failed

Read device ID error!'

seems smth wrong with ID read of pmic

0 件の賞賛
返信