diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-05-11 11:35:54 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-05 14:49:09 -0700 |
commit | 7dab0e853caf04a3c8d5d1f7b795a23f8b6142d9 (patch) | |
tree | 431eb724321c53d66d4d3de0349a955ebe2d4bb3 /chip/g/build.mk | |
parent | 2ac6afd3e68bde5b50ddc9d35f832112c56f22ab (diff) | |
download | chrome-ec-7dab0e853caf04a3c8d5d1f7b795a23f8b6142d9.tar.gz |
chip: g: Add support for UART bit banging.
The UART block on the g chip has no functionality to adjust the parity.
Unfortunately, this feature is needed for certain applications.
This commit adds a UART bit bang driver with support for configuring the
baud rate and parity. It currently only supports 8 data bits.
BUG=b:35648297
BRANCH=cr50
TEST=make -j buildall
TEST=With some other patches, successfully flash rowan EC at 9600 baud.
Change-Id: I86a160c0960e46b3a8bb1057518f625aefb7d81f
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/503473
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/build.mk')
-rw-r--r-- | chip/g/build.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk index d425b4c09e..997a3965bb 100644 --- a/chip/g/build.mk +++ b/chip/g/build.mk @@ -26,7 +26,8 @@ chip-y += polling_uart.o else chip-y += uart.o chip-y += uartn.o -endif +chip-$(CONFIG_UART_BITBANG)+= uart_bitbang.o +endif # undef CONFIG_POLLING_UART chip-$(CONFIG_DCRYPTO)+= crypto_api.o |