secdata: Initialize secdata kernel in vb2api_fw_phase1

Currently, secdata kernel is initialized in vb2api_kernel_phase1.
Since we'll be using secdata kernel in romstage for EFS2, it
needs to be initialized earlier.

This patch makes vb2api_fw_phase1 call vb2_secdata_kernel_init.

Signed-off-by: dnojiri <>

BUG=b:147298634, chromium:1045217, b:148259137
TEST=Verify Hmir is updated in romstage on Puff.

Cq-Depend: chromium:2155377
Change-Id: I8a537126a952ecccc9cc496ce60fc6dc81541a8f
Reviewed-by: Julius Werner <>
Reviewed-by: Joel Kitching <>
Commit-Queue: Daisuke Nojiri <>
Tested-by: Daisuke Nojiri <>
Auto-Submit: Daisuke Nojiri <>
6 files changed