Blame view
drivers/video/dsi-host-uclass.c
999 Bytes
23f965a4c dm: Add a dsi hos... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2019 STMicroelectronics - All Rights Reserved * Author(s): Yannick Fertre <yannick.fertre@st.com> for STMicroelectronics. * */ #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); } |
bbf72dc8e MLK-23964-6 video... |
35 36 37 38 39 40 41 42 43 |
int dsi_host_disable(struct udevice *dev) { struct dsi_host_ops *ops = dsi_host_get_ops(dev); if (!ops->disable) return -ENOSYS; return ops->disable(dev); } |
23f965a4c dm: Add a dsi hos... |
44 45 46 47 |
UCLASS_DRIVER(dsi_host) = { .id = UCLASS_DSI_HOST, .name = "dsi_host", }; |