diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-01-31 15:00:04 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-01-31 15:00:04 +0100 |
commit | a673f6c2479e28db8884d41ccdb10e59390c4acf (patch) | |
tree | 62babc0d285008fbc4410bb554e5ed37f6f18e65 | |
parent | 2f1ff393f34aad251ec60f1831b8037f9fb1b42c (diff) |
pmic: pmic otp programming, add 'try before buy'
-rw-r--r-- | board/toradex/apalis_imx6/pf0100_otp.inc | 6 | ||||
-rw-r--r-- | board/toradex/apalis_imx6/pf0100_otp.txt | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/board/toradex/apalis_imx6/pf0100_otp.inc b/board/toradex/apalis_imx6/pf0100_otp.inc index ea2727144ae..5d96d60daaf 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 dea3e79e69b..ff320b91020 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 |