Thread (18 messages) flat view 18 messages, 2 authors, 2011-03-04
DORMANTno replies

Revision v1 of 5 in this series.

Revisions (5)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 current

[PATCH 1/4] OMAP3 and 4 hwmod I2C units only allow 16 bit access

From: Cousson, Benoit <hidden>
Date: 2011-03-04 15:20:12
Also in: linux-omap

One more minor comment about the order of the flags for OMAP4.

On 3/3/2011 2:50 PM, Andy Green wrote:
[...]
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index ce646f2..c500416 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -2280,7 +2280,7 @@ static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  static struct omap_hwmod omap44xx_i2c1_hwmod = {
  	.name		= "i2c1",
  	.class		=&omap44xx_i2c_hwmod_class,
-	.flags		= HWMOD_INIT_NO_RESET,
+	.flags		= HWMOD_INIT_NO_RESET | HWMOD_16BIT_REG,
Since this code is generated by script, the flags are sorted by name.
HWMOD_16BIT_REG should then be the first one. This is of course 
applicable for the 4 instances.
I already updated the generator to take the sysconfig register width 
into account.

Thanks,
Benoit

quoted hunk ↗ jump to hunk
  	.mpu_irqs	= omap44xx_i2c1_irqs,
  	.mpu_irqs_cnt	= ARRAY_SIZE(omap44xx_i2c1_irqs),
  	.sdma_reqs	= omap44xx_i2c1_sdma_reqs,
@@ -2396,7 +2396,7 @@ static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  static struct omap_hwmod omap44xx_i2c2_hwmod = {
  	.name		= "i2c2",
  	.class		=&omap44xx_i2c_hwmod_class,
-	.flags		= HWMOD_INIT_NO_RESET,
+	.flags		= HWMOD_INIT_NO_RESET | HWMOD_16BIT_REG,
  	.mpu_irqs	= omap44xx_i2c2_irqs,
  	.mpu_irqs_cnt	= ARRAY_SIZE(omap44xx_i2c2_irqs),
  	.sdma_reqs	= omap44xx_i2c2_sdma_reqs,
@@ -2449,7 +2449,7 @@ static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  static struct omap_hwmod omap44xx_i2c3_hwmod = {
  	.name		= "i2c3",
  	.class		=&omap44xx_i2c_hwmod_class,
-	.flags		= HWMOD_INIT_NO_RESET,
+	.flags		= HWMOD_INIT_NO_RESET | HWMOD_16BIT_REG,
  	.mpu_irqs	= omap44xx_i2c3_irqs,
  	.mpu_irqs_cnt	= ARRAY_SIZE(omap44xx_i2c3_irqs),
  	.sdma_reqs	= omap44xx_i2c3_sdma_reqs,
@@ -2502,7 +2502,7 @@ static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  static struct omap_hwmod omap44xx_i2c4_hwmod = {
  	.name		= "i2c4",
  	.class		=&omap44xx_i2c_hwmod_class,
-	.flags		= HWMOD_INIT_NO_RESET,
+	.flags		= HWMOD_INIT_NO_RESET | HWMOD_16BIT_REG,
  	.mpu_irqs	= omap44xx_i2c4_irqs,
  	.mpu_irqs_cnt	= ARRAY_SIZE(omap44xx_i2c4_irqs),
  	.sdma_reqs	= omap44xx_i2c4_sdma_reqs,

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help