brintos

brintos / linux-shallow public Read only

0
0
Text · 556 B · 88cd1a1 Raw
30 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * Copyright (C) 2023 Loongson Technology Corporation Limited4 */5 6#ifndef __LSDC_I2C_H__7#define __LSDC_I2C_H__8 9#include <linux/i2c.h>10#include <linux/i2c-algo-bit.h>11 12struct lsdc_i2c {13	struct i2c_adapter adapter;14	struct i2c_algo_bit_data bit;15	struct drm_device *ddev;16	void __iomem *dir_reg;17	void __iomem *dat_reg;18	/* pin bit mask */19	u8 sda;20	u8 scl;21};22 23struct lsdc_display_pipe;24 25int lsdc_create_i2c_chan(struct drm_device *ddev,26			 struct lsdc_display_pipe *dispipe,27			 unsigned int index);28 29#endif30