[PATCH 9/9] Small updates for Freescale MPC52xx

Sylvain Munaut tnt at 246tNt.com
Tue Sep 14 22:02:48 EST 2004


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/14 12:39:19+02:00 tnt at 246tNt.com
#   ppc: Add Freescale MPC52xx I2C Support using i2c-mpc.c
#   
#   Just adds the necessary OCP def entry.
#   
#   Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
#
# arch/ppc/platforms/mpc5200.c
#   2004/09/14 12:39:00+02:00 tnt at 246tNt.com +24 -0
#   ppc: Add Freescale MPC52xx I2C Support using i2c-mpc.c
#
diff -Nru a/arch/ppc/platforms/mpc5200.c b/arch/ppc/platforms/mpc5200.c
--- a/arch/ppc/platforms/mpc5200.c      2004-09-14 12:48:21 +02:00
+++ b/arch/ppc/platforms/mpc5200.c      2004-09-14 12:48:21 +02:00
@@ -16,6 +16,12 @@
 #include <asm/ocp.h>
 #include <asm/mpc52xx.h>

+
+struct ocp_fs_i2c_data mpc5200_i2c_def = {
+        .flags  = FS_I2C_CLOCK_5200,
+};
+
+
 /* Here is the core_ocp struct.
  * With all the devices common to all board. Even if port multiplexing is
  * not setup for them (if the user don't want them, just don't select the
@@ -23,6 +29,24 @@
  * board specific file.
  */
 struct ocp_def core_ocp[] = {
+       {
+               .vendor         = OCP_VENDOR_FREESCALE,
+               .function       = OCP_FUNC_IIC,
+               .index          = 0,
+               .paddr          = MPC52xx_I2C1,
+               .irq            = OCP_IRQ_NA,   /* MPC52xx_IRQ_I2C1 - 
Buggy */
+               .pm             = OCP_CPM_NA,
+               .additions      = &mpc5200_i2c_def,
+       },
+       {
+               .vendor         = OCP_VENDOR_FREESCALE,
+               .function       = OCP_FUNC_IIC,
+               .index          = 1,
+               .paddr          = MPC52xx_I2C2,
+               .irq            = OCP_IRQ_NA,   /* MPC52xx_IRQ_I2C2 - 
Buggy */
+               .pm             = OCP_CPM_NA,
+               .additions      = &mpc5200_i2c_def,
+       },
        {       /* Terminating entry */
                .vendor         = OCP_VENDOR_INVALID
        }




More information about the Linuxppc-dev mailing list