blob: c23b51f2a730a4bbde9a110bda765428ae6ffc89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
menuconfig PLATFORM_EC_CHARGESPLASH
bool "Charging splashscreen support"
depends on PLATFORM_EC_CHARGER
help
Enable visual charging indicator to display on-screen when
AC is initially connected.
if PLATFORM_EC_CHARGESPLASH
config PLATFORM_EC_CHARGESPLASH_PERIOD
int "Seconds for which chargesplash requests are tracked"
default 900
help
A charger which is connecting and disconnecting frequently
can indicate damage to the charger or port. To prevent
excessive power usage on a device plugged in and
experiencing frequent AC connects, we monitor the number of
AC connects over a period of time. If the number of AC
connects exceeds a defined value during that period of time,
we inhibit all chargesplash requests until an entire period
passes with no new AC connections.
This config option defines the length of the period, in
seconds.
config PLATFORM_EC_CHARGESPLASH_MAX_REQUESTS_PER_PERIOD
int "Number of chargesplash requests per period which triggers lockout"
default 5
help
A charger which is connecting and disconnecting frequently
can indicate damage to the charger or port. To prevent
excessive power usage on a device plugged in and
experiencing frequent AC connects, we monitor the number of
AC connects over a period of time. If the number of AC
connects exceeds a defined value during that period of time,
we inhibit all chargesplash requests until an entire period
passes with no new AC connections.
This config option defines the number of requests that must
happen in one period to trigger the lockout condition.
endif # PLATFORM_EC_CHARGESPLASH
|