power: smb5: Rearrange USB ICL SW configuration

SW configures USB ICL by updating ICL_MAX to override APSD results.
As APSD/PD flow has been re-organized by running APSD after PD, SW
ICL configuration process has to be updated accordingly.

Following is the order of power source precedence along with ICL_MAX
set by SW.

 1. USB PD: set by USB PD driver
 2. HVDCP (Quick Charge 2.0/3.0): 3A
 3. USB Type-C Rp-high: 3A; Rp-medium: 1.5A
 4. USB Legacy/Type-C Rp-std: follow USB BC 1.2

CRs-Fixed: 2215965
Change-Id: Ibd1cd3d531c3132f3cfadad68f6bb10453c702f2
Signed-off-by: Harry Yang <harryy@codeaurora.org>
4 files changed