summaryrefslogtreecommitdiff
path: root/board/discovery
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-02-16 02:34:44 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-02-16 02:52:29 +0000
commit8a37e9a0d87e843c7d903c7eddc32cf0dae81be5 (patch)
tree9440dd1448c536cf2ab372e97130f08f7a7471c6 /board/discovery
parentc9cb9bd6f3d8da7400cffd8840f3fbd46512c993 (diff)
downloadchrome-ec-8a37e9a0d87e843c7d903c7eddc32cf0dae81be5.tar.gz
stm32l: de-duplicate stubs used for all STM32L based boards
Avoid duplicating in each board file, the stub functions replacing not implemented drivers on the STM32L platform. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=make BOARD=daisy && make BOARD=discovery Change-Id: I25cd949c31e53a90c39f623617c7d52517a3d205
Diffstat (limited to 'board/discovery')
-rw-r--r--board/discovery/board.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/board/discovery/board.c b/board/discovery/board.c
index b43e761fc7..0669bc1187 100644
--- a/board/discovery/board.c
+++ b/board/discovery/board.c
@@ -34,35 +34,3 @@ void configure_board(void)
gpio_set_alternate_function(GPIO_B, (1<<10) | (1<<11), GPIO_ALT_USART);
#endif
}
-
-/**
- * Stubs for non implemented drivers
- * TODO: implement
- */
-int jtag_pre_init(void)
-{
- /* stop TIM2, TIM3 and watchdogs when the JTAG stops the CPU */
- STM32L_DBGMCU_APB1FZ |= 0x00001803;
-
- return EC_SUCCESS;
-}
-
-int eeprom_init(void)
-{
- return EC_SUCCESS;
-}
-
-int i2c_init(void)
-{
- return EC_SUCCESS;
-}
-
-int power_button_init(void)
-{
- return EC_SUCCESS;
-}
-
-int adc_init(void)
-{
- return EC_SUCCESS;
-}