mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Radhakrishna Sripada](/assets/img/avatar_default.png)
Add tables to map the GMBUS pin pairs to GPIO registers and port to DDC. From spec we have registers GPIO_CTL[1-5] mapped to native display phys and GPIO_CTL[9-12] are mapped to TC ports. v2: - Drop unused GPIO pins(MattR) BSpec: 49306 Cc: Matt Roper <matthew.d.roper@intel.com> Original Author: Brian J Lovin Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220902060342.151824-6-radhakrishna.sripada@intel.com
49 lines
1.5 KiB
C
49 lines
1.5 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_GMBUS_H__
|
|
#define __INTEL_GMBUS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
struct i2c_adapter;
|
|
|
|
#define GMBUS_PIN_DISABLED 0
|
|
#define GMBUS_PIN_SSC 1
|
|
#define GMBUS_PIN_VGADDC 2
|
|
#define GMBUS_PIN_PANEL 3
|
|
#define GMBUS_PIN_DPD_CHV 3 /* HDMID_CHV */
|
|
#define GMBUS_PIN_DPC 4 /* HDMIC */
|
|
#define GMBUS_PIN_DPB 5 /* SDVO, HDMIB */
|
|
#define GMBUS_PIN_DPD 6 /* HDMID */
|
|
#define GMBUS_PIN_RESERVED 7 /* 7 reserved */
|
|
#define GMBUS_PIN_1_BXT 1 /* BXT+ (atom) and CNP+ (big core) */
|
|
#define GMBUS_PIN_2_BXT 2
|
|
#define GMBUS_PIN_3_BXT 3
|
|
#define GMBUS_PIN_4_CNP 4
|
|
#define GMBUS_PIN_5_MTP 5
|
|
#define GMBUS_PIN_9_TC1_ICP 9
|
|
#define GMBUS_PIN_10_TC2_ICP 10
|
|
#define GMBUS_PIN_11_TC3_ICP 11
|
|
#define GMBUS_PIN_12_TC4_ICP 12
|
|
#define GMBUS_PIN_13_TC5_TGP 13
|
|
#define GMBUS_PIN_14_TC6_TGP 14
|
|
|
|
#define GMBUS_NUM_PINS 15 /* including 0 */
|
|
|
|
int intel_gmbus_setup(struct drm_i915_private *dev_priv);
|
|
void intel_gmbus_teardown(struct drm_i915_private *dev_priv);
|
|
bool intel_gmbus_is_valid_pin(struct drm_i915_private *dev_priv,
|
|
unsigned int pin);
|
|
int intel_gmbus_output_aksv(struct i2c_adapter *adapter);
|
|
|
|
struct i2c_adapter *
|
|
intel_gmbus_get_adapter(struct drm_i915_private *dev_priv, unsigned int pin);
|
|
void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit);
|
|
bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter);
|
|
void intel_gmbus_reset(struct drm_i915_private *dev_priv);
|
|
|
|
#endif /* __INTEL_GMBUS_H__ */
|