cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rcar_lvds.h (992B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * rcar_lvds.h  --  R-Car LVDS Encoder
      4 *
      5 * Copyright (C) 2013-2018 Renesas Electronics Corporation
      6 *
      7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
      8 */
      9
     10#ifndef __RCAR_LVDS_H__
     11#define __RCAR_LVDS_H__
     12
     13struct drm_bridge;
     14
     15#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
     16int rcar_lvds_clk_enable(struct drm_bridge *bridge, unsigned long freq);
     17void rcar_lvds_clk_disable(struct drm_bridge *bridge);
     18bool rcar_lvds_dual_link(struct drm_bridge *bridge);
     19bool rcar_lvds_is_connected(struct drm_bridge *bridge);
     20#else
     21static inline int rcar_lvds_clk_enable(struct drm_bridge *bridge,
     22				       unsigned long freq)
     23{
     24	return -ENOSYS;
     25}
     26static inline void rcar_lvds_clk_disable(struct drm_bridge *bridge) { }
     27static inline bool rcar_lvds_dual_link(struct drm_bridge *bridge)
     28{
     29	return false;
     30}
     31static inline bool rcar_lvds_is_connected(struct drm_bridge *bridge)
     32{
     33	return false;
     34}
     35#endif /* CONFIG_DRM_RCAR_LVDS */
     36
     37#endif /* __RCAR_LVDS_H__ */