summaryrefslogtreecommitdiff
path: root/baseboard/intelrvp/mchp_ec.h
diff options
context:
space:
mode:
authorScott Worley <scott.worley@microchip.corp-partner.google.com>2021-02-03 10:31:16 -0500
committerCommit Bot <commit-bot@chromium.org>2021-02-10 06:22:01 +0000
commitccf7e98b4176c80780a80f53b465d992e09ce68d (patch)
treebf95ebda35a471ff47e674e52692d6882cfff3c8 /baseboard/intelrvp/mchp_ec.h
parent1ef386ef08ba298e937f92fb2df59659e0757879 (diff)
downloadchrome-ec-ccf7e98b4176c80780a80f53b465d992e09ce68d.tar.gz
mchp: Add MEC152x SKL RVP board
Add a MEC152x board based upon SKL-RVP using the intelrvp baseboard. We use the fusb307 USB PD as a placeholder for an actual USB PD. Added MCHP EC module to the intel RVP baseboard. BRANCH=none BUG=b:177463787 TEST=Booted skylake RVP to Chrome OS Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com> Change-Id: I4ea2e8ca27efa5b0624e751a06fcec8a1bf65456 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2673020 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Ravin Kumar <ravin.kumar@microchip.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Ravin Kumar <ravin.kumar@microchip.com>
Diffstat (limited to 'baseboard/intelrvp/mchp_ec.h')
-rw-r--r--baseboard/intelrvp/mchp_ec.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/baseboard/intelrvp/mchp_ec.h b/baseboard/intelrvp/mchp_ec.h
new file mode 100644
index 0000000000..227ccaef6d
--- /dev/null
+++ b/baseboard/intelrvp/mchp_ec.h
@@ -0,0 +1,26 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Intel BASEBOARD-RVP MCHP EC specific configuration */
+
+#ifndef __CROS_EC_MCHP_EC_H
+#define __CROS_EC_MCHP_EC_H
+
+/* ADC channels */
+#define ADC_TEMP_SNS_AMBIENT_CHANNEL CHIP_ADC_CH7
+#define ADC_TEMP_SNS_DDR_CHANNEL CHIP_ADC_CH4
+#define ADC_TEMP_SNS_SKIN_CHANNEL CHIP_ADC_CH3
+#define ADC_TEMP_SNS_VR_CHANNEL CHIP_ADC_CH1
+
+/*
+ * ADC maximum voltage is a board level configuration.
+ * MEC152x ADC can use an external 3.0 or 3.3V reference with
+ * maximum values up to the reference voltage.
+ * The ADC maximum voltage depends upon the external reference
+ * voltage connected to MEC152x.
+ */
+#define ADC_MAX_MVOLT 3000
+
+#endif /* __CROS_EC_MCHP_EC_H */