mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
42 lines
872 B
C
42 lines
872 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 STMicroelectronics - All Rights Reserved
|
|
* Author(s): Yannick Fertre <yannick.fertre@st.com> for STMicroelectronics.
|
|
*
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_DSI_HOST
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <dsi_host.h>
|
|
|
|
int dsi_host_init(struct udevice *dev,
|
|
struct mipi_dsi_device *device,
|
|
struct display_timing *timings,
|
|
unsigned int max_data_lanes,
|
|
const struct mipi_dsi_phy_ops *phy_ops)
|
|
{
|
|
struct dsi_host_ops *ops = dsi_host_get_ops(dev);
|
|
|
|
if (!ops->init)
|
|
return -ENOSYS;
|
|
|
|
return ops->init(dev, device, timings, max_data_lanes, phy_ops);
|
|
}
|
|
|
|
int dsi_host_enable(struct udevice *dev)
|
|
{
|
|
struct dsi_host_ops *ops = dsi_host_get_ops(dev);
|
|
|
|
if (!ops->enable)
|
|
return -ENOSYS;
|
|
|
|
return ops->enable(dev);
|
|
}
|
|
|
|
UCLASS_DRIVER(dsi_host) = {
|
|
.id = UCLASS_DSI_HOST,
|
|
.name = "dsi_host",
|
|
};
|