google_cpm: handle thermal transition during negotiation

Handle themal level transitions for MDIS and for legacy thermal
cooling devices. Turn off and turn on charging (including setting
the wireless charger online) after critical level.

Bug: 231656227
Test: rapid toggle of thermal levels, sweep for MDIS and legagy
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I49dd2c2a4cf9e886b9a67f60fc650b80f6e6b8d9
1 file changed