]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sh/kernel/cpu/sh4/setup-sh7760.c
serial: sh-sci: Compute the regshift value for SCI ports
[karo-tx-linux.git] / arch / sh / kernel / cpu / sh4 / setup-sh7760.c
index 0c0cdfc69dcc3e33dc75a5fe267eb2f08e9ccb36..e51fe1734e1368e8baacf4459652a2dc4425be99 100644 (file)
@@ -200,12 +200,18 @@ static struct platform_device scif2_device = {
 };
 
 static struct plat_sci_port scif3_platform_data = {
+       /*
+        * This is actually a SIM card module serial port, based on an SCI with
+        * additional registers. The sh-sci driver doesn't support the SIM port
+        * type, declare it as a SCI. Don't declare the additional registers in
+        * the memory resource or the driver will compute an incorrect regshift
+        * value.
+        */
        .type           = PORT_SCI,
-       .regshift       = 2,
 };
 
 static struct resource scif3_resources[] = {
-       DEFINE_RES_MEM(0xfe480000, 0x100),
+       DEFINE_RES_MEM(0xfe480000, 0x10),
        DEFINE_RES_IRQ(evt2irq(0xc00)),
        DEFINE_RES_IRQ(evt2irq(0xc20)),
        DEFINE_RES_IRQ(evt2irq(0xc40)),