diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-09-30 17:19:50 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-02 20:51:10 +0000 |
commit | 0330d9adf2602c44201d5e1b842747caf7dd83b1 (patch) | |
tree | 29f7a8613e0090f8ff9d224faae5d299131b2116 /chip | |
parent | 4be45e962cba218c07944dd97935361be9017224 (diff) | |
download | chrome-ec-0330d9adf2602c44201d5e1b842747caf7dd83b1.tar.gz |
zinger: minimuffin: add board support for minimuffin
Minimuffin is identical to zinger, same MCU, same gpio, same
circuitry aroundt the MCU with two differences:
- Rated current is 2.25A instead of 3A
- USB PD hardware device ID needs to be different so that host
can differentiate between the two.
Due to the similarity between the two, minimuffin is defined
as a symlink to the zinger board.
BUG=none
BRANCH=samus
TEST=make BOARD=minimuffin
load onto a zinger and verify that samus reads device ID correctly
and limits input current limit to 2.25mA.
Change-Id: Ie39ec43262c7d14663eb68abff073bfeec451a24
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/220689
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/config-stm32f03x.h | 3 | ||||
-rw-r--r-- | chip/stm32/usb_pd_phy.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/chip/stm32/config-stm32f03x.h b/chip/stm32/config-stm32f03x.h index e7a4a6b3ed..32238c5361 100644 --- a/chip/stm32/config-stm32f03x.h +++ b/chip/stm32/config-stm32f03x.h @@ -31,8 +31,7 @@ * Put pstate after RO to give RW more space and make RO write protect region * contiguous. */ -#ifdef BOARD_ZINGER -/* Do not use pstate for zinger. Flash space is limited */ +#if defined(BOARD_ZINGER) || defined(BOARD_MINIMUFFIN) #define CONFIG_FW_PSTATE_SIZE 0 #else #define CONFIG_FW_PSTATE_SIZE CONFIG_FLASH_BANK_SIZE diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c index a19bcc7969..041d5b5c58 100644 --- a/chip/stm32/usb_pd_phy.c +++ b/chip/stm32/usb_pd_phy.c @@ -456,7 +456,7 @@ void pd_rx_handler(void) } } } -#ifndef BOARD_ZINGER +#ifdef CONFIG_USB_PD_RX_COMP_IRQ DECLARE_IRQ(STM32_IRQ_COMP, pd_rx_handler, 1); #endif |