Implement the necessary programming sequence to configure the
uPacket RX of a connected downstream device in power save mode.
Add a new sysfs node to trigger the configuration as follows:
To enter power save mode:
* echo 1 > /sys/class/graphics/<fbi>/psm
To exit power save mode:
* echo 0 > /sys/class/graphics/<fbi>/psm
where fbi is the framebuffer node corresponding to the display
port device.
CRs-Fixed: 1076516
Change-Id: I306ff4451d56dfa7edcff93fe26842ae9af71b69
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Check if cp_irq has been raised by sink, if so, read bstatus
register to check the status of hdcp at sink side. Clear the
cp_irq after reading bstatus. Also, fix the bstatus read size
which is one byte.
Change-Id: I46231f82878f8d2557aa06ccfa5c74f67252c6f8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Update the PHY/PLL setting related to pre-emphasis and voltage
swing as per hardware recommendations.
Change-Id: I3bbd7c8de541e22da30205d93a98d48f82288865
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
A sink can have more than one EDID blocks. The extension
block count is provided in the first block. Not reading
all blocks can result in DP compliance failures.
Read all the extension blocks as mentioned in the first
block to avoid any EDID related compliance failures.
Change-Id: I9cfe6403da511e6af3b887fcf858109852e9844c
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Wait for the user modules to come up during boot up before
sending events. In case user modules are not yet up,
events sent to them are ignored. If the cable is connected
at boot up, wait for user modules to enable hpd (Hot Plug
Detect). On receiving hpd, check if the cable is already
connected, if so, notify user modules so that power on sequence
can be initialized.
Change-Id: I91242fbfd32a478324b98edba4349081d9e55601
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Update the I2C configuration for AUX communication
as per hardware recommendations.
Change-Id: If5550b66660aab692f9a358b50e0d1fb157b1d58
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Initialize the DisplayPort's host controller once the usbpd
configuration has been done. Do not wait for HPD high as some
DP sinks may not issue HPD high unless the host is initialized.
This avoids a deadlock between sink and source where source is
waiting for HPD high and sink is waiting for the DP host.
Change-Id: I1cdcb3556779d00fd2b4ecd264fa6b187bf4e317
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Remove the additional unbalanced unlock being called for the
link training mutex. This fixes random crashes seen while
running Display Port connection/disconnection tests.
Change-Id: I2fce80cec72e3bd8b1561fd46fa1a1520cddd294
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
If the calculated link rate based on sink's capabilities exceeds
the maximum supported link rate, do not error out. Instead, cap
the link rate at the maximum supported rate. This fixes instability
issues seen when connecting to sinks at 4K resolution.
Change-Id: I214bb19385f855af61da628fdf1cf7efc5dd08d6
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Add support for PHY compliance tests by parsing requests
from the reference sink and generating the requested
PHY test patterns from DP PHY.
CRs-Fixed: 1076516
Change-Id: I290ec786bbe5c45873265ea74290eefcd3d16cb1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Add etm save retore nodes which saves etm
values across power collapse. Hwevent is
used to collect hardware events.
Change-Id: I329aa4084c0983f066cdd06455c3d69e255a420c
CRs-fixed: 1056777
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
Remove WLAN hardware reset sequence from ICNSS platform as it
will be taken care by WLAN FW.
CRs-Fixed: 1089686
Change-Id: I363ee028eeb360ef998fd90c1ff94bb09c4ac8b4
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>