[ar7] add UPF_IOREMAP flag to the uart port definition (#6532)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jan 2010 21:17:21 +0000 (21:17 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jan 2010 21:17:21 +0000 (21:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19374 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar7/files/arch/mips/ar7/platform.c

index 1464ccd..b636216 100644 (file)
@@ -454,6 +454,7 @@ static int __init ar7_register_devices(void)
        uart_port[0].mapbase = AR7_REGS_UART0;
        uart_port[0].membase = ioremap(uart_port[0].mapbase, 256);
        uart_port[0].regshift = 2;
        uart_port[0].mapbase = AR7_REGS_UART0;
        uart_port[0].membase = ioremap(uart_port[0].mapbase, 256);
        uart_port[0].regshift = 2;
+       uart_port[0].flags = UPF_IOREMAP;
        res = early_serial_setup(&uart_port[0]);
        if (res)
                return res;
        res = early_serial_setup(&uart_port[0]);
        if (res)
                return res;
@@ -469,6 +470,7 @@ static int __init ar7_register_devices(void)
                uart_port[1].mapbase = UR8_REGS_UART1;
                uart_port[1].membase = ioremap(uart_port[1].mapbase, 256);
                uart_port[1].regshift = 2;
                uart_port[1].mapbase = UR8_REGS_UART1;
                uart_port[1].membase = ioremap(uart_port[1].mapbase, 256);
                uart_port[1].regshift = 2;
+               uart_port[1].flags = UPF_IOREMAP;
                res = early_serial_setup(&uart_port[1]);
                if (res)
                        return res;
                res = early_serial_setup(&uart_port[1]);
                if (res)
                        return res;
This page took 0.031126 seconds and 4 git commands to generate.