소스 검색

cns3xxx: fix UART resource overlap

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 <[email protected]>
Koen Vandeputte 9 년 전
부모
커밋
347884b345
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c

+ 2 - 2
target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c

@@ -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,