summaryrefslogtreecommitdiff
path: root/chip/ish/registers.h
diff options
context:
space:
mode:
authorKyoung Kim <kyoung.il.kim@intel.com>2017-06-14 19:29:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-01 03:04:54 -0700
commit17bb1fbaa914c9631ef1e6e300050d47d4a116c4 (patch)
treecf2042ef9dca75850eaa7634169d8abd7099f770 /chip/ish/registers.h
parent816a8d87cd43a3ebb2d454c9e1e02e12581788fc (diff)
downloadchrome-ec-17bb1fbaa914c9631ef1e6e300050d47d4a116c4.tar.gz
ISH: added UART port selection
added uart port debug selection. in board.h, add "#define CONFIG_ISH_UART_0" for UART Port 0. For port1, use "#define CONFIG_ISH_UART_1" BUG=None BRANCH=None Test='make -j buildall' Change-Id: I5426b1d228ac715574e2ff4f28526232d375221f Reviewed-on: https://chromium-review.googlesource.com/566593 Commit-Ready: Kyoung Il Kim <kyoung.il.kim@intel.com> Tested-by: Kyoung Il Kim <kyoung.il.kim@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'chip/ish/registers.h')
-rw-r--r--chip/ish/registers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chip/ish/registers.h b/chip/ish/registers.h
index 056a4676cd..466a657089 100644
--- a/chip/ish/registers.h
+++ b/chip/ish/registers.h
@@ -72,6 +72,16 @@ enum ish_i2c_port {
#define ISH_UART1_VEC IRQ_TO_VEC(ISH_UART1_IRQ)
#define ISH_IPC_VEC IRQ_TO_VEC(ISH_IPC_HOST2ISH_IRQ)
+#ifdef CONFIG_ISH_UART_0
+#define ISH_DEBUG_UART UART_PORT_0
+#define ISH_DEBUG_UART_IRQ ISH_UART0_IRQ
+#define ISH_DEBUG_UART_VEC ISH_UART0_VEC
+#else
+#define ISH_DEBUG_UART UART_PORT_1
+#define ISH_DEBUG_UART_IRQ ISH_UART1_IRQ
+#define ISH_DEBUG_UART_VEC ISH_UART1_VEC
+#endif
+
/* IPC_Registers */
#define IPC_PISR (ISH_IPC_BASE + 0x0)
#define IPC_PIMR (ISH_IPC_BASE + 0x4)