| 
					
				 | 
			
			
				@@ -1628,3 +1628,60 @@ static struct platform_device bfin_capture_device = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 static struct resource bfin_uart0_resources[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		.start = UART0_THR, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = UART0_GCTL+2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_MEM, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = IRQ_UART0_TX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = IRQ_UART0_TX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_IRQ, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = IRQ_UART0_RX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = IRQ_UART0_RX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_IRQ, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = IRQ_UART0_ERROR, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = IRQ_UART0_ERROR, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_IRQ, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = CH_UART0_TX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = CH_UART0_TX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_DMA, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = CH_UART0_RX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = CH_UART0_RX, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_DMA, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#ifdef CONFIG_BFIN_UART0_CTSRTS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{	/* CTS pin */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = GPIO_PG7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = GPIO_PG7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_IO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{	/* RTS pin */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start = GPIO_PG6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end = GPIO_PG6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags = IORESOURCE_IO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static unsigned short bfin_uart0_peripherals[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	P_UART0_TX, P_UART0_RX, 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct platform_device bfin_uart0_device = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.name = "bfin-uart", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.id = 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.num_resources = ARRAY_SIZE(bfin_uart0_resources), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.resource = bfin_uart0_resources, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.dev = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.platform_data = &bfin_uart0_peripherals, /* Passed to driver */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#ifdef CONFIG_SERIAL_BFIN_UART1 
			 |