This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: How to modify the TPS65217 driver source code

Part Number: AM3358
Other Parts Discussed in Thread: TPS65217

Hello Support,

We are using the PMIC TP65217C in our custom board to power an AM3358.

We want to modify the TPS65217 driver source code to:

1. Modify the UVLO Control Register to set UVLO to 2.73V (Register 0x18, DEFUVLO = 0x00) (this register is password protected)

2. Modify the MUX Control Register to route VBAT to the MUX output (Register 0x09, MUX[2:0] = 0x01)

How do you recommend we should do this? Is there an easy way to apply a patch to that source code that implements the described above?

Thanks for your help.

  • Hi Juan,

    The tps65217 driver is drivers/mfd/tps65217.c in kernel source code, I think you can set the registers toward the end of function tps65217_probe(), using tps65217_update_bits(), tps65217_reg_read(), or tps65217_reg_write() implemented in the same file.