Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260491
b: refs/heads/master
c: d72fe78
h: refs/heads/master
i:
  260489: b91d078
  260487: 5234062
v: v3
  • Loading branch information
Andy Green authored and Paul Walmsley committed Jul 10, 2011
1 parent 5e1b12c commit d4c9cac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 730027216079ef4ab9850a4367ef665554a6ef73
refs/heads/master: d72fe7883f9f835011cb581aea13e91c6fa2e31d
1 change: 1 addition & 0 deletions trunk/arch/arm/plat-omap/include/plat/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define __ASM__ARCH_OMAP_I2C_H

#include <linux/i2c.h>
#include <linux/i2c-omap.h>

#if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE)
extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
Expand Down
12 changes: 12 additions & 0 deletions trunk/include/linux/i2c-omap.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@

#include <linux/platform_device.h>

/*
* Version 2 of the I2C peripheral unit has a different register
* layout and extra registers. The ID register in the V2 peripheral
* unit on the OMAP4430 reports the same ID as the V1 peripheral
* unit on the OMAP3530, so we must inform the driver which IP
* version we know it is running on from platform / cpu-specific
* code using these constants in the hwmod class definition.
*/

#define OMAP_I2C_IP_VERSION_1 1
#define OMAP_I2C_IP_VERSION_2 2

struct omap_i2c_bus_platform_data {
u32 clkrate;
void (*set_mpu_wkup_lat)(struct device *dev, long set);
Expand Down

0 comments on commit d4c9cac

Please sign in to comment.