init: Add CPU_RESUME and CPU_SUSPEND flag/type

The CPU_SUSPEND flag/type will be used to save state/disable portions of
lk when entering a suspend state.

The CPU_RESUME flag/type will be used to re-initialize portions of lk
when resuming from a suspended state.

Change-Id: Ia21f845da72552c68c679b24413cdc1138e3968c
This commit is contained in:
Aaron Gamble
2014-05-15 10:17:07 -07:00
committed by Arve Hjønnevåg
parent 615fa16210
commit d6da35afc5

View File

@@ -31,6 +31,8 @@ enum lk_init_flags {
LK_INIT_FLAG_PRIMARY_CPU = 0x1,
LK_INIT_FLAG_SECONDARY_CPUS = 0x2,
LK_INIT_FLAG_ALL_CPUS = LK_INIT_FLAG_PRIMARY_CPU | LK_INIT_FLAG_SECONDARY_CPUS,
LK_INIT_FLAG_CPU_SUSPEND = 0x4,
LK_INIT_FLAG_CPU_RESUME = 0x8,
};
void lk_init_level(enum lk_init_flags flags, uint start_level, uint stop_level);