Skip to contentSkip to conversation

I2C: Add support for 64bit system.

PATCH In review Xulei 4 participants 6 messages Dec 20, 2010 – Mar 15, 2011 4 messages not in the archive I2C subsystem host drivers

lore
Share & tools
lore

Xulei

author
#0 lore raw

PATCH 1/1 I2C: Add support for 64bit system.

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both.

---
 drivers/i2c/busses/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +1 -1
index 9c6170c..3392f4b 100644
@@ -422,7 +422,7 @@ config I2C_IXP2000
 
 config I2C_MPC
 	tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
-	depends on PPC32
+	depends on PPC32 || PPC64
 	help
 	  If you say yes to this option, support will be included for the
 	  built-in I2C interface on the MPC107, Tsi107, MPC512x, MPC52xx,
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Xulei

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both.

This been build or run tested?

Quoted 25 lines
---
 drivers/i2c/busses/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +1 -1
index 9c6170c..3392f4b 100644
@@ -422,7 +422,7 @@ config I2C_IXP2000
 
 config I2C_MPC
 	tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
-	depends on PPC32
+	depends on PPC32 || PPC64
 	help
 	  If you say yes to this option, support will be included for the
 	  built-in I2C interface on the MPC107, Tsi107, MPC512x, MPC52xx,
Signature · 7 lines
1.7.0.4


--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
Ben Dooks, [email protected], http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.
author
#4 lore raw
In reply to a message not in the archive

yes, it has been built and could access the RTC well.

Quoted 23 lines · Ben Dooks
Quoted 4 lines · Xulei

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both. =20

=20
This been build or run tested?
=20

Quoted 15 lines
---
 drivers/i2c/busses/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

=20

drivers/i2c/busses/Kconfig +0 -0
index 9c6170c..3392f4b 100644
@@ -422,7 +422,7 @@ config I2C_IXP2000

=20
config I2C_MPC

drivers/i2c/busses/Kconfig +1 -1
 	tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
-	depends on PPC32
+	depends on PPC32 || PPC64
 	help
Quoted 8 lines
Quoted 8 lines
drivers/i2c/busses/Kconfig +0 -1
 	  If you say yes to this option, support will be included for the
 	  built-in I2C interface on the MPC107, Tsi107, MPC512x, MPC52xx,
--=20

1.7.0.4
=20
=20
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" =

in

Quoted 3 lines
Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

=20

#5 lore raw
In reply to a message not in the archive
Quoted 7 lines · Ben Dooks
Quoted 4 lines · Xulei

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both.

This been build or run tested?

Yes, Any issues with me applying this via the powerpc.git tree?

Quoted 36 lines
Quoted 26 lines

---
drivers/i2c/busses/Kconfig | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +0 -0
index 9c6170c..3392f4b 100644
@@ -422,7 +422,7 @@ config I2C_IXP2000
 

config I2C_MPC

	tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
drivers/i2c/busses/Kconfig +1 -1
-	depends on PPC32
+	depends on PPC32 || PPC64
	help
	  If you say yes to this option, support will be included for the
	  built-in I2C interface on the MPC107, Tsi107, MPC512x, MPC52xx,
Signature · 7 lines
1.7.0.4


--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 8 lines
Ben Dooks, [email protected], http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
#7 lore raw
In reply to a message not in the archive
Quoted 4 lines · Kumar Gala
Quoted 1 line · Ben Dooks

On Mon, Dec 20, 2010 at 03:37:34PM +0800, Xulei wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both.

This been build or run tested?

Yes, Any issues with me applying this via the powerpc.git tree?

I'm concerned about the fact that we have to have two defines to declare code that is 32-bit and 64-bit clean. Technically speaking, all drivers should work in both environments. It seems silly to have "PPC32 || PPC64" for everything. Isn't there a generic "PPC" config option that covers this?

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#9 lore raw
In reply to a message not in the archive
Quoted 12 lines · Timur Tabi
Quoted 11 lines · Kumar Gala
Quoted 7 lines · Ben Dooks
Quoted 4 lines · Xulei

Currently I2C_MPC supports 32bit system only, then this modification makes it support 32bit and 64bit system both.

This been build or run tested?

Quoted 7 lines
Quoted 1 line

Yes, Any issues with me applying this via the powerpc.git tree?

I'm concerned about the fact that we have to have two defines to declare code that is 32-bit and 64-bit clean. Technically speaking, all drivers should work in both environments. It seems silly to have "PPC32 || PPC64" for everything. Isn't there a generic "PPC" config option that covers this?

There is, I'll post a new patch that uses it.

- k--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html