~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/i2c-s3c2410.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright 2004-2009 Simtec Electronics
  4  *      Ben Dooks <ben@simtec.co.uk>
  5  *
  6  * S3C - I2C Controller platform_device info
  7 */
  8 
  9 #ifndef __I2C_S3C2410_H
 10 #define __I2C_S3C2410_H __FILE__
 11 
 12 #define S3C_IICFLG_FILTER       (1<<0)  /* enable s3c2440 filter */
 13 
 14 struct platform_device;
 15 
 16 /**
 17  *      struct s3c2410_platform_i2c - Platform data for s3c I2C.
 18  *      @bus_num: The bus number to use (if possible).
 19  *      @flags: Any flags for the I2C bus (E.g. S3C_IICFLK_FILTER).
 20  *      @slave_addr: The I2C address for the slave device (if enabled).
 21  *      @frequency: The desired frequency in Hz of the bus.  This is
 22  *                  guaranteed to not be exceeded.  If the caller does
 23  *                  not care, use zero and the driver will select a
 24  *                  useful default.
 25  *      @sda_delay: The delay (in ns) applied to SDA edges.
 26  *      @cfg_gpio: A callback to configure the pins for I2C operation.
 27  */
 28 struct s3c2410_platform_i2c {
 29         int             bus_num;
 30         unsigned int    flags;
 31         unsigned int    slave_addr;
 32         unsigned long   frequency;
 33         unsigned int    sda_delay;
 34 
 35         void    (*cfg_gpio)(struct platform_device *dev);
 36 };
 37 
 38 /**
 39  * s3c_i2c0_set_platdata - set platform data for i2c0 device
 40  * @i2c: The platform data to set, or NULL for default data.
 41  *
 42  * Register the given platform data for use with the i2c0 device. This
 43  * call copies the platform data, so the caller can use __initdata for
 44  * their copy.
 45  *
 46  * This call will set cfg_gpio if is null to the default platform
 47  * implementation.
 48  *
 49  * Any user of s3c_device_i2c0 should call this, even if it is with
 50  * NULL to ensure that the device is given the default platform data
 51  * as the driver will no longer carry defaults.
 52  */
 53 extern void s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *i2c);
 54 extern void s3c_i2c1_set_platdata(struct s3c2410_platform_i2c *i2c);
 55 extern void s3c_i2c2_set_platdata(struct s3c2410_platform_i2c *i2c);
 56 extern void s3c_i2c3_set_platdata(struct s3c2410_platform_i2c *i2c);
 57 extern void s3c_i2c4_set_platdata(struct s3c2410_platform_i2c *i2c);
 58 extern void s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *i2c);
 59 extern void s3c_i2c6_set_platdata(struct s3c2410_platform_i2c *i2c);
 60 extern void s3c_i2c7_set_platdata(struct s3c2410_platform_i2c *i2c);
 61 extern void s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *i2c);
 62 
 63 /* defined by architecture to configure gpio */
 64 extern void s3c_i2c0_cfg_gpio(struct platform_device *dev);
 65 extern void s3c_i2c1_cfg_gpio(struct platform_device *dev);
 66 extern void s3c_i2c2_cfg_gpio(struct platform_device *dev);
 67 extern void s3c_i2c3_cfg_gpio(struct platform_device *dev);
 68 extern void s3c_i2c4_cfg_gpio(struct platform_device *dev);
 69 extern void s3c_i2c5_cfg_gpio(struct platform_device *dev);
 70 extern void s3c_i2c6_cfg_gpio(struct platform_device *dev);
 71 extern void s3c_i2c7_cfg_gpio(struct platform_device *dev);
 72 
 73 extern struct s3c2410_platform_i2c default_i2c_data;
 74 
 75 #endif /* __I2C_S3C2410_H */
 76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php