summaryrefslogtreecommitdiff
path: root/include/vboot.h
blob: 48d626c0c7d74a01865b78d35721b454122f2e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Verified boot module for Chrome EC */

#ifndef __CROS_EC_VBOOT_H
#define __CROS_EC_VBOOT_H

#include "common.h"

/* Pre-initializes the module.  This occurs before clocks or tasks are
 * set up. */
int vboot_pre_init(void);

/* Initializes the module. */
int vboot_init(void);

/* These are the vboot commands available via LPC. */
enum vboot_command {
	VBOOT_CMD_GET_FLAGS,
	VBOOT_CMD_SET_FLAGS,
	VBOOT_NUM_CMDS,
};

/* These are the flags transferred across LPC. At the moment, only the devmode
   flag can be set, and only because it's faked. Ultimately this functionality
   will be moved elsewhere.  */
#define VBOOT_FLAGS_IMAGE_MASK       0x03   /* enum system_image_copy_t */
#define VBOOT_FLAGS_FAKE_DEVMODE     0x04   /* fake dev-mode bit */

#endif  /* __CROS_EC_VBOOT_H */