summaryrefslogtreecommitdiffstats
path: root/board/freescale/common/vid.h
diff options
context:
space:
mode:
authorYing Zhang <b40530@freescale.com>2016-01-22 12:15:12 +0800
committerYork Sun <york.sun@nxp.com>2016-01-25 12:37:03 -0800
commitcabe4d2f1970eae618ffac4262b61460b9ad3097 (patch)
tree9ffd3f1926a91b5e17396ce0cef6b8cd33b3c8b8 /board/freescale/common/vid.h
parent43381474ff99afc02b0433acfdf48ebdd6d11ce2 (diff)
downloadtalos-obmc-uboot-cabe4d2f1970eae618ffac4262b61460b9ad3097.tar.gz
talos-obmc-uboot-cabe4d2f1970eae618ffac4262b61460b9ad3097.zip
board/freescale/common: Check IR chip mode for VID support
IR chip on all the boards are required to be used in Intel mode to support VID. VDD will not be adjusted if IR chip is used in other modes. Signed-off-by: Ying Zhang <b40530@freescale.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/common/vid.h')
-rw-r--r--board/freescale/common/vid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/common/vid.h b/board/freescale/common/vid.h
index a9c7bb4790..9182c20bc9 100644
--- a/board/freescale/common/vid.h
+++ b/board/freescale/common/vid.h
@@ -11,6 +11,10 @@
#define IR36021_LOOP1_VOUT_OFFSET 0x9A
#define IR36021_MFR_ID_OFFSET 0x92
#define IR36021_MFR_ID 0x43
+#define IR36021_INTEL_MODE_OOFSET 0x14
+#define IR36021_MODE_MASK 0x20
+#define IR36021_INTEL_MODE 0x00
+#define IR36021_AMD_MODE 0x20
/* step the IR regulator in 5mV increments */
#define IR_VDD_STEP_DOWN 5
OpenPOWER on IntegriCloud