diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-07-25 17:38:05 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:09 -0700 |
commit | 4ddaee01e37ed491ce7c45586ab96e5bbb905ab4 (patch) | |
tree | 60e3d29e54caf253c34422ffc856477cf97b362c /include/chromeos | |
parent | 2d80a8801a10b211366d9db2c7a0fba844ec7b80 (diff) |
CHROMIUM: honor /chromeos-config/twostop-optional flag of device tree
BUG=none
TEST=Boot and see "twostop-optional" on output
TEST=Remove "twostop-optional" from flashrom-ro.dtsi and set preambles
flags to 0, then boot and see "not twostop-optional" on output
Change-Id: I53a151107e2bdf1a32f4aeace6f302b66cee3228
Reviewed-on: http://gerrit.chromium.org/gerrit/4651
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'include/chromeos')
-rw-r--r-- | include/chromeos/fdt_decode.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/chromeos/fdt_decode.h b/include/chromeos/fdt_decode.h index e9ce64c67c0..4585b9a62dc 100644 --- a/include/chromeos/fdt_decode.h +++ b/include/chromeos/fdt_decode.h @@ -44,4 +44,13 @@ int fdt_decode_twostop_fmap(const void *fdt, struct fdt_twostop_fmap *config); void dump_fmap(struct fdt_twostop_fmap *config); +/** + * This checks whether a property exists. + * + * @param fdt FDT blob to use + * @param name The path and name to the property in question + * @return non-zero if the property exists, zero if it does not exist. + */ +int fdt_decode_chromeos_config_has_prop(const void *fdt, const char *name); + #endif /* CHROMEOS_FDT_DECODE_H_ */ |