From aaaf689007cb6d80d326e5a297899e6719bdac30 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 29 Aug 2013 15:57:11 -0700 Subject: chromeos: On ARM platforms VBNV lives in the EC This patch renames the x86 way of doing things to explicitly mention CMOS (which is not available on our ARM platforms) and adds an implementation to get VBNV through the Chrome EC. We might want to refine this further in the future to allow VBNV in the EC even on x86 platforms. Will be fixed when that appears. Also, not all ARM platforms running ChromeOS might use the Google EC in the future, in which case this code will need additional work. Signed-off-by: Stefan Reinauer Change-Id: Ice09d0e277dbb131f9ad763e762e8877007db901 Reviewed-on: https://chromium-review.googlesource.com/167540 Reviewed-by: David Hendrix Tested-by: Stefan Reinauer Commit-Queue: Stefan Reinauer (cherry picked from commit 8df6cdbcacb082af88c069ef8b542b44ff21d97a) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6616 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/mainboard/google/pit/chromeos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/pit') diff --git a/src/mainboard/google/pit/chromeos.c b/src/mainboard/google/pit/chromeos.c index 28ec2b5c01..c2db165834 100644 --- a/src/mainboard/google/pit/chromeos.c +++ b/src/mainboard/google/pit/chromeos.c @@ -95,7 +95,7 @@ int get_recovery_mode_switch(void) EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEYBOARD_RECOVERY)); } -int get_recovery_mode_from_vbnv(void) +int get_write_protect_state(void) { - return 0; + return 0; // FIXME what GPIO? // WP hard coded to disabled } -- cgit v1.2.3