diff options
Diffstat (limited to 'driver/tcpm/raa489000.h')
-rw-r--r-- | driver/tcpm/raa489000.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/tcpm/raa489000.h b/driver/tcpm/raa489000.h index 41a37f94e7..b0bb202f98 100644 --- a/driver/tcpm/raa489000.h +++ b/driver/tcpm/raa489000.h @@ -39,7 +39,12 @@ /* VBUS_OCP_UV_THRESHOLD */ /* Detect voltage level of overcurrent protection during Sourcing VBUS */ +#ifdef CONFIG_PLATFORM_EC_RAA489000_OCP_UV_THRESHOLD_MV +#define RAA489000_OCP_THRESHOLD_VALUE \ + (CONFIG_PLATFORM_EC_RAA489000_OCP_UV_THRESHOLD_MV / 25) +#else #define RAA489000_OCP_THRESHOLD_VALUE 0x00BE /* 4.75V */ +#endif /* TYPEC_SETTING1 - only older silicon */ /* Enables for reverse current protection */ |