call depthcharge hooks for auxiliary FW update.

this adds calls to depthcharge (using callbacks) to do auxiliary
firmware updates.  in particular, this is intended to trigger TCPC
updates, but other programmables could also be updated.

no firmware updates take place until a board file has actually
registered a firmware update "driver".  board file updates to follow.

TEST="COV=1 make" passes.
	    depthcharge boots on snappy.
	    with additional follow-on CLs, we can update the ps8751.

the companion depthcharge changes are here:

the working design doc is here:

these features depend on vboot API updates:


Signed-off-by: Caveh Jalali <>
Reviewed-by: Stefan Reinauer <>

(cherry picked from commit 3dd580298b42d9d77e1f37733e4df2b6d5c302c6)

Change-Id: I553f7a184c0872c1b9bd046677b641a1eab1893e
Commit-Queue: Caveh Jalali <>
Reviewed-by: Caveh Jalali <>
Reviewed-by: Stefan Reinauer <>
Tested-by: Caveh Jalali <>
4 files changed