summaryrefslogtreecommitdiff
path: root/chip/stm32/build.mk
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-29 11:07:51 -0700
committerChromeBot <chrome-bot@google.com>2013-04-30 14:49:07 -0700
commit312b884c42f5f6a6177e416f5b812b1556ac195f (patch)
tree70aabd3227bcc84f5c90fe725cc9ef52797e10a7 /chip/stm32/build.mk
parent980df549794785ebadd2f4c26323e3f1bf3d3b02 (diff)
downloadchrome-ec-312b884c42f5f6a6177e416f5b812b1556ac195f.tar.gz
Split STM32 i2c implementation for STM32F vs STM32L
STM32L doesn't need the DMA-based workarounds needed by STM32F, since the STM32L I2C block isn't broken. DMA adds a lot of code overhead when transferring 2-3 bytes, and is implemented differently on STM32F vs STM32L so it doesn't even work on STM32L Add a simple polled I2C implementation for STM32L. This is not the final implementation, which will use interrupts, but for now it works, unlike the DMA-based version. BUG=chrome-os-partner:18969 BRANCH=none TEST=i2cscan on pit finds a device at 0x90 Change-Id: Ie2a6c9ac6f62b7fd3c35e313b4015e080d9f937a Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49555
Diffstat (limited to 'chip/stm32/build.mk')
-rw-r--r--chip/stm32/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk
index b929958a54..b45f6b6929 100644
--- a/chip/stm32/build.mk
+++ b/chip/stm32/build.mk
@@ -12,7 +12,7 @@ CORE:=cortex-m
chip-y=dma.o hwtimer.o system.o uart.o
chip-y+=jtag-$(CHIP_VARIANT).o clock-$(CHIP_VARIANT).o gpio-$(CHIP_VARIANT).o
chip-$(CONFIG_SPI)+=spi.o
-chip-$(CONFIG_I2C)+=i2c.o
+chip-$(CONFIG_I2C)+=i2c-$(CHIP_VARIANT).o
chip-$(CONFIG_WATCHDOG)+=watchdog.o
chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o
chip-$(HAS_TASK_POWERLED)+=power_led.o