summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-05-10 09:40:29 -0700
committerChromeBot <chrome-bot@google.com>2013-05-13 19:31:09 -0700
commite5ec5f34fc25e0367bd6b89d4d93fb1d3c90c404 (patch)
treee7512d1f0b38704331f33cc839648f8884c8bae7 /board/bds
parentc882edb530a8b44044e4f96645edcaad035fa01d (diff)
downloadchrome-ec-e5ec5f34fc25e0367bd6b89d4d93fb1d3c90c404.tar.gz
LM4: Support configurable host UART interface
Slippy uses UART2 instead of UART1 and so the EC needs to be able to tolerate having the host use a different interface. There are of course many ways to accomplish that but this approach adds two config variables to specify the host uart and the host uart irq. The UART port setup is split out to allow them to be configured separately rather than needing to be adjacent in a for loop. The interrupt functions were renamed (to ec and host) in order to indicate which interface they are responsible for. BUG=chrome-os-partner:19356 BRANCH=none TEST=boot slippy and see host serial output Change-Id: I1913ff3d650f329224c9654eee7bb7412fae5402 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/50837
Diffstat (limited to 'board/bds')
-rw-r--r--board/bds/board.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/bds/board.h b/board/bds/board.h
index 6f4850d769..770269a9b4 100644
--- a/board/bds/board.h
+++ b/board/bds/board.h
@@ -36,7 +36,9 @@ enum adc_channel
#define I2C_PORTS_USED 1
/* GPIOs for second UART port */
-#define CONFIG_UART1_GPIOS_PB0_1
+#define CONFIG_HOST_UART 1
+#define CONFIG_HOST_UART_IRQ LM4_IRQ_UART1
+#define CONFIG_HOST_UART1_GPIOS_PB0_1
/* GPIO signal list */
enum gpio_signal {