From a673f6c2479e28db8884d41ccdb10e59390c4acf Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Fri, 31 Jan 2014 15:00:04 +0100 Subject: pmic: pmic otp programming, add 'try before buy' --- board/toradex/apalis_imx6/pf0100_otp.inc | 6 ++++++ board/toradex/apalis_imx6/pf0100_otp.txt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/board/toradex/apalis_imx6/pf0100_otp.inc b/board/toradex/apalis_imx6/pf0100_otp.inc index ea2727144a..5d96d60daa 100644 --- a/board/toradex/apalis_imx6/pf0100_otp.inc +++ b/board/toradex/apalis_imx6/pf0100_otp.inc @@ -57,6 +57,11 @@ struct pmic_otp_prog_t pmic_otp_prog[] = { {pmic_i2c, 0xDC, 0x0A}, // Auto gen from Row154 {pmic_i2c, 0xDD, 0x03}, // Auto gen from Row155 {pmic_i2c, 0xE0, 0x05}, // Auto gen from Row158 + +#if 0 /* TBB mode */ +{pmic_i2c, 0xE4, 0x80}, // TBB_POR = 1{ +{pmic_delay, 0, 10}, +#else // Write OTP {pmic_i2c, 0xE4, 0x02}, // FUSE POR1=1 {pmic_i2c, 0xE5, 0x02}, // FUSE POR2=1 @@ -182,4 +187,5 @@ struct pmic_otp_prog_t pmic_otp_prog[] = { {pmic_pwr, 0, 0}, // PWRON LOW to reload new OTP data {pmic_delay, 0, 500}, {pmic_pwr, 0, 1}, +#endif }; \ No newline at end of file diff --git a/board/toradex/apalis_imx6/pf0100_otp.txt b/board/toradex/apalis_imx6/pf0100_otp.txt index dea3e79e69..ff320b9102 100644 --- a/board/toradex/apalis_imx6/pf0100_otp.txt +++ b/board/toradex/apalis_imx6/pf0100_otp.txt @@ -57,6 +57,11 @@ WRITE_I2C:D9:07 // Auto gen from Row151 WRITE_I2C:DC:0A // Auto gen from Row154 WRITE_I2C:DD:03 // Auto gen from Row155 WRITE_I2C:E0:05 // Auto gen from Row158 + +#if 1 /* TBB mode */ +WRITE_I2C:E4:80 // TBB_POR = 1 +DELAY:10 +#else // Write OTP WRITE_I2C:E4:02 // FUSE POR1=1 WRITE_I2C:E5:02 // FUSE POR2=1 @@ -182,4 +187,5 @@ WRITE_I2C:D1:00 // Clear PWRON:LOW // PWRON LOW to reload new OTP data DELAY:500 PWRON: HIGH +#endif }; \ No newline at end of file -- cgit v1.2.3