Configure the supported voltage/current list in the
tablet as a sink to realize PD fast charging.
The maximum charging voltage and current depend on
the charger ic and rk3588s tablet. Taking into
account the stable operation of the tablet, the
software is limited to a maximum voltage of 12v
and a maximum current of 3A.
Change-Id: I5c707e58434ecbe477a650beb7211535ca7c83d4
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
reason:
1. If the task in the session is assigned to two different cores, the
task in the back may complete first and trigger the wait signal of the
session.
2. In the wait thread, it is taken according to the pending list order,
and the previous task will be triggered, and it must not be found in
the list.
3. For the above reasons, put the wait signal into the task and monitor
the wait signal of the task according to the pending order, then the
order will not be wrong.
4. According to this method, done_list can also be unnecessary.
relative log:
session 000000003edbfbaa task 00000000207419c6, not found in done list!
session 000000003edbfbaa task 000000006a0597ed, not found in done list!
session 000000003edbfbaa task 00000000fe35cb90, not found in done list!
session 000000003edbfbaa task 000000001638cf87, not found in done list!
session 000000003edbfbaa task 00000000a2ba5976, not found in done list!
Change-Id: I2ab6c98162cc4b71ef34cbcda0bc30434fecdb5d
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
K should be 2 for all connector in dual channel mode.
YUV420 output is not supported at dual channel mode.
Change-Id: I03e5147304ad494a3617acc0ba9acafb374088eb
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Algos private data should store in tfm's ctx field to avoid
modify by other algos while calculating.
Change-Id: I1c77e408e3374c697849ec508323131bf5f488b2
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Rename some struct name and variable name been more clearly.
Change-Id: Icf5e6f9d1a7e3f4abfbe05b3fb0034651a120039
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Data will divide into multi parts to calculating while buffer not
aligned, and crypto BC_CTL/HASH_CTL only be initialized at first
time. Crypto module will be stuck at second calculations if
BC_CTL/HASH_CTL is cleared after every calculations.
Change-Id: I753c4cefbcefcbf38f36f9a6798f406979b4d17d
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
1.add delay after power on
2.limit resolution to 2560x1520
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: If61f487f8633b4273a839c33562a28409c7d2497
bigmode depend on width > 2688 or size > 2688x1536.
cac mesh buf0 apply to no bigmode, buf1 apply to bigmode.
Change-Id: Iba8120e2076e8677ba176080adf587ab9575ab30
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
rawhist weight reg will be automatically incremented by each write.
Change-Id: I531d8a03dda804039237d3400d77127b070c11e9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
reg write and readback is shoadow, no effective immediately,
so change to get reg ddr value.
Change-Id: I2a13551617f944870dd71bcec666ee8067757cdf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
The Current max vop_dclk if 600MHZ on all rockchip soc.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I497fc14e89bcbaf4e6aa44fc36bc7fc93ac45aed
This function is inherit from linux-4.4, only connector
has mode_valid callback at that age, so we should tie
it to rockchip_crtc_funcs and called by connector driver.
Now drm_crtc_helper_funcs has a mode_valid callback,
so we can tie it here and called by drm framework.
This make connector driver simple.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ib15906d8ab54907c20811e3ac9c531f7113c20c3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
RK3588 saradc will usleep before start, so if start call
from timer will panic. fix it by using delayed_work instead.
Change-Id: I7f98266659f5f2d8968a901bd6423efaa50839b5
Signed-off-by: Simon Xue <xxm@rock-chips.com>