i2c-versatile.c (0b28330e39bbe0ffee4c56b09fc415fcec595ea3) | i2c-versatile.c (2178218027e4da0608219fae1d02e5c88f4e560d) |
---|---|
1/* 2 * i2c-versatile.c 3 * 4 * Copyright (C) 2006 ARM Ltd. 5 * written by Russell King, Deep Blue Solutions Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11#include <linux/kernel.h> 12#include <linux/module.h> 13#include <linux/i2c.h> 14#include <linux/i2c-algo-bit.h> 15#include <linux/init.h> 16#include <linux/platform_device.h> 17#include <linux/slab.h> | 1/* 2 * i2c-versatile.c 3 * 4 * Copyright (C) 2006 ARM Ltd. 5 * written by Russell King, Deep Blue Solutions Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11#include <linux/kernel.h> 12#include <linux/module.h> 13#include <linux/i2c.h> 14#include <linux/i2c-algo-bit.h> 15#include <linux/init.h> 16#include <linux/platform_device.h> 17#include <linux/slab.h> |
18#include <linux/io.h> |
|
18 | 19 |
19#include <asm/io.h> 20 | |
21#define I2C_CONTROL 0x00 22#define I2C_CONTROLS 0x00 23#define I2C_CONTROLC 0x04 24#define SCL (1 << 0) 25#define SDA (1 << 1) 26 27struct i2c_versatile { 28 struct i2c_adapter adap; --- 133 unchanged lines hidden --- | 20#define I2C_CONTROL 0x00 21#define I2C_CONTROLS 0x00 22#define I2C_CONTROLC 0x04 23#define SCL (1 << 0) 24#define SDA (1 << 1) 25 26struct i2c_versatile { 27 struct i2c_adapter adap; --- 133 unchanged lines hidden --- |