mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
81e0da703f
There is some "confusing" license text in some of the sm750fb driver files. After discussing it with the company, it turns out to have been a mistake and these lines can be safely removed. The files are all to be licensed under the GPLv2 license. Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Teddy Wang <teddy.wang@siliconmotion.com> Cc: linux-fbdev@vger.kernel.org Cc: devel@driverdev.osuosl.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20190815123009.16499-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
61 lines
1.6 KiB
C
61 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2007 by Silicon Motion, Inc. (SMI)
|
|
*
|
|
* swi2c.h --- SM750/SM718 DDK
|
|
* This file contains the definitions for i2c using software
|
|
* implementation.
|
|
*
|
|
*/
|
|
|
|
#ifndef _SWI2C_H_
|
|
#define _SWI2C_H_
|
|
|
|
/* Default i2c CLK and Data GPIO. These are the default i2c pins */
|
|
#define DEFAULT_I2C_SCL 30
|
|
#define DEFAULT_I2C_SDA 31
|
|
|
|
/*
|
|
* This function initializes the i2c attributes and bus
|
|
*
|
|
* Parameters:
|
|
* i2cClkGPIO - The GPIO pin to be used as i2c SCL
|
|
* i2cDataGPIO - The GPIO pin to be used as i2c SDA
|
|
*
|
|
* Return Value:
|
|
* -1 - Fail to initialize the i2c
|
|
* 0 - Success
|
|
*/
|
|
long sm750_sw_i2c_init(unsigned char clk_gpio, unsigned char data_gpio);
|
|
|
|
/*
|
|
* This function reads the slave device's register
|
|
*
|
|
* Parameters:
|
|
* addr - i2c Slave device address which register
|
|
* to be read from
|
|
* reg - Slave device's register to be read
|
|
*
|
|
* Return Value:
|
|
* Register value
|
|
*/
|
|
unsigned char sm750_sw_i2c_read_reg(unsigned char addr, unsigned char reg);
|
|
|
|
/*
|
|
* This function writes a value to the slave device's register
|
|
*
|
|
* Parameters:
|
|
* addr - i2c Slave device address which register
|
|
* to be written
|
|
* reg - Slave device's register to be written
|
|
* data - Data to be written to the register
|
|
*
|
|
* Result:
|
|
* 0 - Success
|
|
* -1 - Fail
|
|
*/
|
|
long sm750_sw_i2c_write_reg(unsigned char addr,
|
|
unsigned char reg,
|
|
unsigned char data);
|
|
|
|
#endif /* _SWI2C_H_ */
|