Ho to modify code when change pmu?

cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to modify code when change pmu?

414 Views
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

Labels (2)
0 Kudos
3 Replies

276 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos

276 Views
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 Kudos

276 Views
igorpadykov
NXP TechSupport
NXP TechSupport

from you log in first message :  "i2c_addr failed

Read device ID error!'

seems smth wrong with ID read of pmic

0 Kudos