summaryrefslogtreecommitdiff
path: root/board/freescale/common/vid.h
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2020-10-12 15:07:35 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-10-23 14:22:09 +0300
commit026703174a2cf8cd9c83a7c797b96b95af5af69b (patch)
treebec5d1223ea7377eb07ccadd7ef288299b9a4434 /board/freescale/common/vid.h
parentf3555bd2854c8bda719e48e8013064ac578b5642 (diff)
downloadu-boot-026703174a2cf8cd9c83a7c797b96b95af5af69b.tar.xz
board/freescale/vid: enables writes to all commands for LTC3882
Enable writes to all commands for LTC3882 Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale/common/vid.h')
-rw-r--r--board/freescale/common/vid.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/freescale/common/vid.h b/board/freescale/common/vid.h
index 99778e9a93..65b348ee42 100644
--- a/board/freescale/common/vid.h
+++ b/board/freescale/common/vid.h
@@ -18,6 +18,25 @@
/* step the IR regulator in 5mV increments */
#define IR_VDD_STEP_DOWN 5
#define IR_VDD_STEP_UP 5
+
+/* LTC3882 */
+#define PMBUS_CMD_WRITE_PROTECT 0x10
+/*
+ * WRITE_PROTECT command supported values
+ * 0x80: Disable all writes except WRITE_PROTECT, PAGE,
+ * STORE_USER_ALL and MFR_EE_UNLOCK commands.
+ * 0x40: Disable all writes except WRITE_PROTECT, PAGE, STORE_USER_ALL,
+ * MFR_EE_UNLOCK, OPERATION, CLEAR_PEAKS and CLEAR_FAULTS commands.
+ * Individual faults can also be cleared by writing a 1 to the
+ * respective status bit.
+ * 0x20: Disable all writes except WRITE_PROTECT, PAGE, STORE_USER_ ALL,
+ * MFR_EE_UNLOCK, OPERATION, CLEAR_PEAKS, CLEAR_FAULTS, ON_OFF_CONFIG
+ * and VOUT_COMMAND commands. Individual faults can be cleared by
+ * writing a 1 to the respective status bit.
+ * 0x00: Enables write to all commands
+ */
+#define EN_WRITE_ALL_CMD (0)
+
int adjust_vdd(ulong vdd_override);
#endif /* __VID_H_ */