diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-07-13 10:59:11 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:58:53 -0700 |
commit | 541a442f9b2fc8579d8ae3d9c2300c206c8840a9 (patch) | |
tree | 854330a0dfbf9490efe4e949aa2bb38dd7388b68 /include/chromeos/crossystem_data.h | |
parent | b1df40c675024f8dd48d0e55062ea0168f4ec598 (diff) |
CHROMIUM: refactor GPIO interface
BUG=chromium-os:17424
TEST=boot on Seaboard
Change-Id: I9b1f42801eedfba5e7f4e85a5b3ac1e1c106b6bf
Reviewed-on: http://gerrit.chromium.org/gerrit/3998
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'include/chromeos/crossystem_data.h')
-rw-r--r-- | include/chromeos/crossystem_data.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/chromeos/crossystem_data.h b/include/chromeos/crossystem_data.h index 9a5ac31ba8..08805fc953 100644 --- a/include/chromeos/crossystem_data.h +++ b/include/chromeos/crossystem_data.h @@ -11,6 +11,7 @@ #ifndef __CHROMEOS_CROSSYSTEM_DATA_H__ #define __CHROMEOS_CROSSYSTEM_DATA_H__ +#include <chromeos/cros_gpio.h> #include <vboot_nvstorage.h> #include <vboot_struct.h> @@ -58,19 +59,18 @@ typedef struct { * - The recovery reason is default to VBNV_RECOVERY_NOT_REQUESTED. * * @param cdata is the data blob shared with crossystem - * @param fdt points to a device tree * @param frid r/o firmware id; a zero-terminated string shorter than ID_LEN * @param fmap_data is the address of fmap in firmware * @param gbb_data points to gbb blob * @param nvcxt_raw points to the VbNvContext raw data - * @param write_protect_sw stores the value of write protect gpio - * @param recovery_sw stores the value of recovery mode gpio - * @param developer_sw stores the value of developer mode gpio + * @param wpsw stores the value of write protect gpio + * @param recsw stores the value of recovery mode gpio + * @param devsw stores the value of developer mode gpio * @return 0 if it succeeds; non-zero if it fails */ -int crossystem_data_init(crossystem_data_t *cdata, void *fdt, char *frid, +int crossystem_data_init(crossystem_data_t *cdata, char *frid, uint32_t fmap_data, void *gbb_data, void *nvcxt_raw, - int write_protect_sw, int recovery_sw, int developer_sw); + cros_gpio_t *wpsw, cros_gpio_t *recsw, cros_gpio_t *devsw); /** * This sets rewritable firmware id. It should only be called in non-recovery |