treewide: Move mipi_panel_parse_commands() to commonlib
Move the MIPI panel init command parsing function mipi_panel_parse_init_commands() and related macros and structs from drivers/mipi/ to commonlib/mipi/, so that the function can be shared with payloads. In a follow-up patch, a 'poweroff' field will be added to the panel_serializable_data struct and then passed to payloads, so that payloads can utilize mipi_panel_parse_init_commands() to run the panel poweroff commands. BUG=b:474187570 TEST=emerge-jedi coreboot libpayload BRANCH=skywalker Change-Id: I19011669f03d060e9f030b673687cbe5965d7e2f Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90736 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com> Reviewed-by: Alicja Michalska <ahplka19@gmail.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
parent
1d2b399fd7
commit
b4fbc59c6f
11 changed files with 69 additions and 58 deletions
|
|
@ -4,8 +4,8 @@
|
|||
#define SOC_MEDIATEK_DSI_COMMON_H
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <commonlib/mipi/dsi.h>
|
||||
#include <edid.h>
|
||||
#include <mipi/dsi.h>
|
||||
#include <types.h>
|
||||
#include <soc/addressmap.h>
|
||||
#include <soc/display_dsi.h>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef __SOC_MIPI_DISPLAY_H__
|
||||
#define __SOC_MIPI_DISPLAY_H__
|
||||
|
||||
#include <mipi/dsi.h>
|
||||
#include <commonlib/mipi/dsi.h>
|
||||
|
||||
/* MIPI DCS pixel formats */
|
||||
#define MIPI_DCS_PIXEL_FMT_24BIT 7
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <mipi/dsi.h>
|
||||
#include <mipi/panel.h>
|
||||
#include <device/mmio.h>
|
||||
#include <console/console.h>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef __RK_MIPI_H
|
||||
#define __RK_MIPI_H
|
||||
|
||||
#include <mipi/dsi.h>
|
||||
#include <commonlib/mipi/dsi.h>
|
||||
#include <types.h>
|
||||
|
||||
struct rk_mipi_regs {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue