summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorChromeOS Developer <rspangler@chromium.org>2013-09-19 16:38:34 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-25 17:50:00 +0000
commiteb27bf14d403ef0009edb28f614962dd78fbc244 (patch)
tree6165941d25d8080e47849d4a1d901bb57565a40c /util
parent9ddc2f3cdc4e2f7208f2164c9d12501491eed2ba (diff)
downloadchrome-ec-eb27bf14d403ef0009edb28f614962dd78fbc244.tar.gz
rambi: Initial EC firmware
This should have all the correct GPIO mappings. Chipset and charger tasks are currently disabled, until we bring up the voltage rails and I2C communication. BUG=chrome-os-partner:22895 BRANCH=none TEST=compiles; everything else needs to wait until we get hardware Change-Id: Iea49fe7ab8bd17f61c8cc6c71f236a503418ee28 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/170540 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flash_ec b/util/flash_ec
index fcb1e20935..eaee634dcf 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -144,7 +144,7 @@ function free_pty() {
# Board specific flashing scripts
-function flash_daisy() {
+function flash_stm32() {
TOOL_PATH="${SCRIPT_LOCATION}/../build/${BOARD}/util:$PATH"
STM32MON=$(PATH="${TOOL_PATH}" which stm32mon)
if [ ! -x "$STM32MON" ]; then
@@ -190,7 +190,7 @@ function flash_link() {
die "Failed to program ${IMG}"
}
-function flash_slippy() {
+function flash_lm4() {
OCD_CFG="servo_v2_slower.cfg"
OCD_PATH="${SRC_ROOT}/platform/ec/chip/lm4/openocd"
OCD_CMDS="init; flash_lm4 ${IMG} ${FLAGS_offset};"
@@ -222,9 +222,9 @@ fi
save="$(servo_save)"
case "${BOARD}" in
- puppy | daisy | snow | spring | pit | kirby ) flash_daisy ;;
+ daisy | kirby | pit | puppy | snow | spring ) flash_stm32 ;;
+ bolt | falco | peppy | rambi | slippy ) flash_lm4 ;;
link ) flash_link ;;
- slippy | falco | peppy | bolt ) flash_slippy ;;
*) die "board ${BOARD} not supported" ;;
esac