i2c-pxa2xx: Fix register offsets
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 13 Mar 2011 13:53:28 +0000 (15:53 +0200)
committerBen Dooks <ben-linux@fluff.org>
Mon, 21 Mar 2011 09:24:08 +0000 (09:24 +0000)
Fix regression that was introduced by dynamic register layout.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-pxa.c

index 27b28e78666ebbddad86159e4db0a5dd529416f4..b914184748c9e285478096ea084413a0cda5ce22 100644 (file)
@@ -65,19 +65,19 @@ enum pxa_i2c_types {
  */
 static struct pxa_reg_layout pxa_reg_layout[] = {
        [REGS_PXA2XX] = {
-               .ibmr = 0x00,
-               .idbr = 0x10,
-               .icr =  0x20,
-               .isr =  0x30,
-               .isar = 0x40,
-       },
-       [REGS_PXA3XX] = {
                .ibmr = 0x00,
                .idbr = 0x08,
                .icr =  0x10,
                .isr =  0x18,
                .isar = 0x20,
        },
+       [REGS_PXA3XX] = {
+               .ibmr = 0x00,
+               .idbr = 0x04,
+               .icr =  0x08,
+               .isr =  0x0c,
+               .isar = 0x10,
+       },
        [REGS_CE4100] = {
                .ibmr = 0x14,
                .idbr = 0x0c,