Messages in this thread Patch in this message | | | Date | Tue, 14 Sep 2004 14:02:48 +0200 | From | Sylvain Munaut <> | Subject | [PATCH 9/9] Small updates for Freescale MPC52xx |
| |
# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/09/14 12:39:19+02:00 tnt@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@246tNt.com> # # arch/ppc/platforms/mpc5200.c # 2004/09/14 12:39:00+02:00 tnt@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 } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |