Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6886738d authored by Mehdi Chemsi's avatar Mehdi Chemsi Committed by mehdi chemsi
Browse files

Updating optimal settings of TFA9878 device to V12

parent 5fcdff3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
#define _TFA9878_TFAFIELDNAMES_H


#define TFA9878_I2CVERSION    4
#define TFA9878_I2CVERSION    12

typedef enum nxpTfa9878BfEnumList {
    TFA9878_BF_PWDN  = 0x0000,    /*!< Powerdown selection                                */
+9 −4
Original line number Diff line number Diff line
@@ -886,16 +886,21 @@ static enum Tfa98xx_Error tfa9878_specific(struct tfa_device *tfa)
		break;
	case 0x1a78: /* Initial revision ID */
		/* ----- generated code start ----- */
				 /* -----  version 4 ----- */
		/* -----  version 12 ----- */
		reg_write(tfa, 0x01, 0x2e18); //POR=0x2e88
		reg_write(tfa, 0x02, 0x0628); //POR=0x0008
		reg_write(tfa, 0x04, 0x0240); //POR=0x0340
		reg_write(tfa, 0x04, 0x0241); //POR=0x0340
		reg_write(tfa, 0x52, 0x587c); //POR=0x57dc
		reg_write(tfa, 0x61, 0x0183); //POR=0x0a82
		reg_write(tfa, 0x63, 0x055a); //POR=0x0a9a
		reg_write(tfa, 0x65, 0x0542); //POR=0x0a82
		reg_write(tfa, 0x70, 0xb7ff); //POR=0x37ff
		reg_write(tfa, 0x71, 0x303e); //POR=0x307e
		reg_write(tfa, 0x83, 0x009a); //POR=0x0799
		reg_write(tfa, 0x84, 0x0211); //POR=0x0011
		reg_write(tfa, 0x8c, 0x0210); //POR=0x0010
		reg_write(tfa, 0xce, 0x2202); //POR=0xa202
		reg_write(tfa, 0xd5, 0x0000); //POR=0x0100
		/* ----- generated code end   ----- */

		break;