cns3xxx: fix UART resource overlap
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 4 Nov 2016 15:31:19 +0000 (16:31 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 5 Nov 2016 09:18:27 +0000 (10:18 +0100)
Port 1 registers the same IO resources as port 2 in the kernel resource
tree, which is wrong.
Fix this by using it's own resources as indicated in the overview
(cns3xxx.h).

Compiled & Tested on several GW2388-4 laguna boards which utilizes all 3
ports.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c

index 5df69f3c4a13c98e369fa4ec0503bb34ca273893..4a596125ab5c8ab1b3a1d31e00d406097b2412d0 100644 (file)
@@ -374,8 +374,8 @@ static struct resource laguna_uart_resources[] = {
                .end   = CNS3XXX_UART0_BASE + SZ_4K - 1,
                .flags    = IORESOURCE_MEM
        },{
-               .start = CNS3XXX_UART2_BASE,
-               .end   = CNS3XXX_UART2_BASE + SZ_4K - 1,
+               .start = CNS3XXX_UART1_BASE,
+               .end   = CNS3XXX_UART1_BASE + SZ_4K - 1,
                .flags    = IORESOURCE_MEM
        },{
                .start = CNS3XXX_UART2_BASE,