disp: msm: dsi: add parsing logic for panel gpio pins/address

Add parsing code for getting the TLMM base address and size
of each GPIO pin register space along with the GPIO pins
used for the specific panel. This list is used to lend
these IO ranges to trusted vm during the trusted UI usecase.

Change-Id: I10429cfa14265d52e898815c6cf94be27daa5677
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-06-22 15:09:51 -07:00
committed by Gerrit - the friendly Code Review server
orang tua f7fece8238
melakukan 30757e8c8a
3 mengubah file dengan 94 tambahan dan 0 penghapusan

Melihat File

@@ -5182,12 +5182,22 @@ error:
static int dsi_display_get_io_resources(struct msm_io_res *io_res, void *data)
{
int rc = 0;
struct dsi_display *display;
if (!data)
return -EINVAL;
rc = dsi_ctrl_get_io_resources(io_res);
if (rc)
goto end;
rc = dsi_phy_get_io_resources(io_res);
if (rc)
goto end;
display = (struct dsi_display *)data;
rc = dsi_panel_get_io_resources(display->panel, io_res);
end:
return rc;
}