summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-31 11:54:55 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-01 17:13:07 +0000
commit760ace07a5cc4b7dc5e8f2ec59068a84562be162 (patch)
treec229d8e33f43c002b5a36de13becf639b4e12b27 /chip
parentfa13ac76b10847e133d654654f0a9418f87d11fb (diff)
downloadchrome-ec-760ace07a5cc4b7dc5e8f2ec59068a84562be162.tar.gz
cleanup: Improve / remove more TODO comments
Add bug references. Remove one assert that can no longer be triggered. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all boards; pass unit tests Change-Id: I3f4d2e4f2f3343a8d0531cb0715d151eaa4d0b50 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175293 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/lm4/openocd/lm4x.cfg5
-rw-r--r--chip/stm32/i2c-stm32f.c11
-rw-r--r--chip/stm32/system.c6
3 files changed, 9 insertions, 13 deletions
diff --git a/chip/lm4/openocd/lm4x.cfg b/chip/lm4/openocd/lm4x.cfg
index 9c979c7dda..b3f18a0107 100644
--- a/chip/lm4/openocd/lm4x.cfg
+++ b/chip/lm4/openocd/lm4x.cfg
@@ -1,4 +1,4 @@
-# Script for TI/Luminary Stellaris LM4F232H (LM4F232H5BB)
+# Script for TI/Luminary Stellaris LM4F232H (LM4F232H5BB) and TM4E1G31H6ZRB.
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
@@ -15,11 +15,10 @@ if { [info exists CPUTAPID ] } {
#jtag scan chain
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
-# the luminary variant causes a software reset rather than asserting SRST
+# the lm3s luminary variant causes a software reset rather than asserting SRST
# this stops the debug registers from being cleared
# this will be fixed in later revisions of silicon
set _TARGETNAME $_CHIPNAME.cpu
-# TODO(rspangler): variant lm4x?
target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
# 8k working area at base of ram, not backed up
diff --git a/chip/stm32/i2c-stm32f.c b/chip/stm32/i2c-stm32f.c
index 59f957279d..29d88b5660 100644
--- a/chip/stm32/i2c-stm32f.c
+++ b/chip/stm32/i2c-stm32f.c
@@ -223,9 +223,9 @@ static void i2c_process_command(void)
/*
* Old style (version 1) command.
*
- * TODO(rspangler): Nothing sends these anymore, since this was
- * superseded by version 2 before snow launched. This code
- * should be safe to remove.
+ * TODO(crosbug.com/p/23765): Nothing sends these anymore,
+ * since this was superseded by version 2 before snow launched.
+ * This code should be safe to remove.
*/
args->version = 0;
args->params_size = EC_PROTO2_MAX_PARAM_SIZE; /* unknown */
@@ -486,7 +486,10 @@ static void i2c_init_port(unsigned int port)
static void i2c_init(void)
{
- /* TODO: Add #defines to determine which channels to init */
+ /*
+ * TODO(crosbug.com/p/23763): Add config options to determine which
+ * channels to init.
+ */
i2c_init_port(I2C1);
i2c_init_port(I2C2);
diff --git a/chip/stm32/system.c b/chip/stm32/system.c
index 746cbd8001..41d47218fa 100644
--- a/chip/stm32/system.c
+++ b/chip/stm32/system.c
@@ -182,12 +182,6 @@ void system_reset(int flags)
/* Disable interrupts to avoid task swaps during reboot */
interrupt_disable();
- /*
- * TODO: Check if a collision between reset flags and fake wp occurred.
- * Remove this when we have real write protect pin.
- */
- ASSERT(!(system_get_reset_flags() & 0x8000));
-
/* Save current reset reasons if necessary */
if (flags & SYSTEM_RESET_PRESERVE_FLAGS)
save_flags = system_get_reset_flags() | RESET_FLAG_PRESERVED;