summaryrefslogtreecommitdiff
path: root/chip/mec1322/config_chip.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-04-15 17:40:29 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-22 01:46:18 +0000
commit5dd8aa92f274180fbbdd4dc7122eaa7bd1f9d8f9 (patch)
tree63bb3f899d89893c9a349dc9075ed9724c2d742b /chip/mec1322/config_chip.h
parent2e0cc436b1f4cd60cdae8c4041b479d38ef8d774 (diff)
downloadchrome-ec-5dd8aa92f274180fbbdd4dc7122eaa7bd1f9d8f9.tar.gz
mec1322: i2c: Support multiple I2C ports on the same controller
mec1322 I2C controller 0 has two attached ports. Modify the I2C driver so that both ports are usable. BUG=chrome-os-partner:38335,chrome-os-partner:38945 TEST=Manual on strago. Verify that i2cscan is functional. BRANCH=None Change-Id: I18d9d516984d041a38c86fd4ec1b0bfa4e885c9f Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/265951 Reviewed-by: Divya Jyothi <divya.jyothi@intel.com> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'chip/mec1322/config_chip.h')
-rw-r--r--chip/mec1322/config_chip.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chip/mec1322/config_chip.h b/chip/mec1322/config_chip.h
index 43f9974222..ecf2f5ade8 100644
--- a/chip/mec1322/config_chip.h
+++ b/chip/mec1322/config_chip.h
@@ -23,8 +23,14 @@
/* Maximum number of deferrable functions */
#define DEFERRABLE_MAX_COUNT 8
-/* Number of I2C ports */
-#define I2C_PORT_COUNT 4
+/*
+ * Number of I2C controllers. Controller 0 has 2 ports, so the chip has one
+ * additional port.
+ */
+#define CONFIG_I2C_MULTI_PORT_CONTROLLER
+
+#define I2C_CONTROLLER_COUNT 4
+#define I2C_PORT_COUNT 5
/****************************************************************************/
/* Memory mapping */