chromeos: vboot-related functions move to common vboot code
This moves a few vboot-prefixed functions that were defined in chromeos.c to vboot_common.c, since those are only relevant to vboot and depend on the vboot handoff data. This allows more separation between CONFIG_CHROMEOS and what CONFIG_CHROMEOS selects, so that each separate option (such as CONFIG_VBOOT_VERIFY_FIRMWARE) can be enabled separately. Thus, the actual definitions of these functions will only be declared when CONFIG_VBOOT_VERIFY_FIRMWARE is set, so the check before calling vboot_skip_display_init in bootmode was also adapted. Change-Id: I52f8a408645566dac0a2100e819c8ed5d3d88ea5 Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-on: http://review.coreboot.org/11497 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
committed by
Aaron Durbin
parent
c947fee479
commit
115360fdb3
@@ -45,29 +45,14 @@ void elog_add_boot_reason(void);
|
||||
/* functions implemented in watchdog.c */
|
||||
void elog_add_watchdog_reset(void);
|
||||
void reboot_from_watchdog(void);
|
||||
|
||||
int vboot_enable_developer(void);
|
||||
int vboot_enable_recovery(void);
|
||||
int vboot_skip_display_init(void);
|
||||
#else
|
||||
static inline void elog_add_boot_reason(void) { return; }
|
||||
static inline void elog_add_watchdog_reset(void) { return; }
|
||||
static inline void reboot_from_watchdog(void) { return; }
|
||||
static inline int vboot_skip_display_init(void) { return 0; }
|
||||
#endif /* CONFIG_CHROMEOS */
|
||||
|
||||
struct romstage_handoff;
|
||||
|
||||
#if CONFIG_VBOOT_VERIFY_FIRMWARE
|
||||
/* Returns 0 on success < 0 on error. */
|
||||
int vboot_get_handoff_info(void **addr, uint32_t *size);
|
||||
#else /* CONFIG_VBOOT_VERIFY_FIRMWARE */
|
||||
static inline int vboot_get_handoff_info(void **addr, uint32_t *size)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif /* CONFIG_VBOOT_VERIFY_FIRMWARE */
|
||||
|
||||
#include "gnvs.h"
|
||||
struct device;
|
||||
|
||||
@@ -84,6 +69,5 @@ static inline void chromeos_reserve_ram_oops(struct device *dev, int idx) {}
|
||||
#endif /* CONFIG_CHROMEOS_RAMOOPS */
|
||||
|
||||
void cbmem_add_vpd_calibration_data(void);
|
||||
void vboot_reboot(void);
|
||||
|
||||
#endif /* __CHROMEOS_H__ */
|
||||
|
Reference in New Issue
Block a user