Currently, the Northwest Logic MIPI-DSI controller host specific code resides under drm/bridge, but is not a real drm_bridge. It creates a drm_bridge and adds itself to the drm_encoder that handles this file, but this is wrong, since it does not implement the drm_bridge_funcs. The correct way to implement a drm_bridge is to add the drm_bridge and let other components (another bridge or a drm_encoder) to attach to this bridge. Since we are doing this, a new compatible strings can be used for this driver: "nwl,mipi-dsi". Since this was used by nwl_dsi-imx.c, update that driver to use this bridge correctly. This is needed in order to add support for MIPI-DSI on 8MQ. The IMX_NWL driver will either add a DSI encoder to DRM, or a DSI bridge. The encoder will be used by imx-drm-core driver, while the bridge will be used by MXSFB driver (which creates a simple display pipe). Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
36 lines
964 B
C
36 lines
964 B
C
/*
|
|
* Copyright 2017 NXP
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*/
|
|
|
|
#ifndef PHY_MIXEL_MIPI_DSI_H_
|
|
#define PHY_MIXEL_MIPI_DSI_H_
|
|
|
|
#include "phy.h"
|
|
|
|
#if IS_ENABLED(CONFIG_PHY_MIXEL_MIPI_DSI)
|
|
int mixel_phy_mipi_set_phy_speed(struct phy *phy,
|
|
unsigned long bit_clk,
|
|
unsigned long ref_clk,
|
|
bool best_match);
|
|
#else
|
|
int mixel_phy_mipi_set_phy_speed(struct phy *phy,
|
|
unsigned long bit_clk,
|
|
unsigned long ref_clk,
|
|
bool best_match)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
|
|
#endif /* PHY_MIXEL_MIPI_DSI_H_ */
|