1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2019 STMicroelectronics - All Rights Reserved
4 * Author(s): Yannick Fertre <yannick.fertre@st.com> for STMicroelectronics.
8 #define LOG_CATEGORY UCLASS_DSI_HOST
14 int dsi_host_init(struct udevice *dev,
15 struct mipi_dsi_device *device,
16 struct display_timing *timings,
17 unsigned int max_data_lanes,
18 const struct mipi_dsi_phy_ops *phy_ops)
20 struct dsi_host_ops *ops = dsi_host_get_ops(dev);
25 return ops->init(dev, device, timings, max_data_lanes, phy_ops);
28 int dsi_host_enable(struct udevice *dev)
30 struct dsi_host_ops *ops = dsi_host_get_ops(dev);
35 return ops->enable(dev);
38 UCLASS_DRIVER(dsi_host) = {
39 .id = UCLASS_DSI_HOST,