summaryrefslogtreecommitdiff
path: root/chip/lm4/flash.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-05-28 11:18:36 -0700
committerChromeBot <chrome-bot@google.com>2013-06-03 14:32:06 -0700
commitf8e12df9dfb8d028cee1e9a039c4cbcebc608385 (patch)
tree8e7fa19e839cd296dfeca61bc09aaec82ed1f39d /chip/lm4/flash.c
parent6759fdc3e6dd7e8901fcf8e25490e4e20273cbcb (diff)
downloadchrome-ec-f8e12df9dfb8d028cee1e9a039c4cbcebc608385.tar.gz
slippy/falco: Add back in flash and hiberantion setup code
These were tested to make sure they are not responsible for bricking boards. The flash code is necessary for software sync, and it is essential to be able to update boards without servo. The hibernate setup code was breaking jumping between images and the passing of data between the images -- needed for SW SYNC but also needed for things like "reboot ap-off". BUG=chrome-os-partner:19366 BRANCH=none TEST=manual: emerge-slippy chromeos-ec, flash+boot, update again via SW Sync Change-Id: Ib1363b353f18b21e0cad3209783e1e0b4ff24e86 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/56820
Diffstat (limited to 'chip/lm4/flash.c')
-rw-r--r--chip/lm4/flash.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/chip/lm4/flash.c b/chip/lm4/flash.c
index e7b4064665..c7781c88f1 100644
--- a/chip/lm4/flash.c
+++ b/chip/lm4/flash.c
@@ -51,10 +51,6 @@ static int write_buffer(void)
{
int t;
-#ifndef BOARD_link /* FIXME: crosbug.com/p/19366 */
- return EC_ERROR_UNKNOWN;
-#endif
-
if (all_protected)
return EC_ERROR_ACCESS_DENIED;
@@ -127,9 +123,6 @@ int flash_physical_write(int offset, int size, const char *data)
int flash_physical_erase(int offset, int size)
{
-#ifndef BOARD_link /* FIXME: crosbug.com/p/19366 */
- return EC_ERROR_UNKNOWN;
-#endif
if (all_protected)
return EC_ERROR_ACCESS_DENIED;