Skip to content

Commit

Permalink
drm/msm: move MDSS registers to separate header file
Browse files Browse the repository at this point in the history
In preparation of adding more registers, move MDSS-related headers to
the separate top-level file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/615310/
Link: https://lore.kernel.org/r/20240921-msm-mdss-ubwc-v1-1-411dcf309d05@linaro.org
  • Loading branch information
Dmitry Baryshkov committed Nov 1, 2024
1 parent ab52d27 commit 92de813
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/msm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ DISPLAY_HEADERS = \
generated/mdp4.xml.h \
generated/mdp5.xml.h \
generated/mdp_common.xml.h \
generated/mdss.xml.h \
generated/sfpb.xml.h

$(addprefix $(obj)/,$(adreno-y)): $(addprefix $(obj)/,$(ADRENO_HEADERS))
Expand Down
16 changes: 0 additions & 16 deletions drivers/gpu/drm/msm/registers/display/mdp5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@ xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
<domain name="VBIF" width="32">
</domain>

<domain name="MDSS" width="32">
<reg32 offset="0x00000" name="HW_VERSION">
<bitfield name="STEP" low="0" high="15" type="uint"/>
<bitfield name="MINOR" low="16" high="27" type="uint"/>
<bitfield name="MAJOR" low="28" high="31" type="uint"/>
</reg32>

<reg32 offset="0x00010" name="HW_INTR_STATUS">
<bitfield name="INTR_MDP" pos="0" type="boolean"/>
<bitfield name="INTR_DSI0" pos="4" type="boolean"/>
<bitfield name="INTR_DSI1" pos="5" type="boolean"/>
<bitfield name="INTR_HDMI" pos="8" type="boolean"/>
<bitfield name="INTR_EDP" pos="12" type="boolean"/>
</reg32>
</domain>

<domain name="MDP5" width="32">

<enum name="mdp5_intf_type">
Expand Down
23 changes: 23 additions & 0 deletions drivers/gpu/drm/msm/registers/display/mdss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<database xmlns="http://nouveau.freedesktop.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
<import file="freedreno_copyright.xml"/>

<domain name="MDSS" width="32">
<reg32 offset="0x00000" name="HW_VERSION">
<bitfield name="STEP" low="0" high="15" type="uint"/>
<bitfield name="MINOR" low="16" high="27" type="uint"/>
<bitfield name="MAJOR" low="28" high="31" type="uint"/>
</reg32>

<reg32 offset="0x00010" name="HW_INTR_STATUS">
<bitfield name="INTR_MDP" pos="0" type="boolean"/>
<bitfield name="INTR_DSI0" pos="4" type="boolean"/>
<bitfield name="INTR_DSI1" pos="5" type="boolean"/>
<bitfield name="INTR_HDMI" pos="8" type="boolean"/>
<bitfield name="INTR_EDP" pos="12" type="boolean"/>
</reg32>
</domain>

</database>

0 comments on commit 92de813

Please sign in to comment.