mb/google/brya: Create rull variant
[coreboot2.git] / src / include / option.h
blob3a00570064fd53cd273506f33c2348303917a0c6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _OPTION_H_
4 #define _OPTION_H_
6 #include <types.h>
8 void sanitize_cmos(void);
10 #if CONFIG(OPTION_BACKEND_NONE)
12 static inline unsigned int get_uint_option(const char *name, const unsigned int fallback)
14 return fallback;
17 static inline enum cb_err set_uint_option(const char *name, unsigned int value)
19 return CB_CMOS_OTABLE_DISABLED;
22 #else /* !OPTION_BACKEND_NONE */
24 unsigned int get_uint_option(const char *name, const unsigned int fallback);
25 enum cb_err set_uint_option(const char *name, unsigned int value);
27 #endif /* OPTION_BACKEND_NONE? */
29 #endif /* _OPTION_H_ */