aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-rp-2.6.26/poodle_serial_vcc-r1.patch
blob: 853dce8ac233c88570cd86fee4239ea154cd0cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Index: linux-2.6.26/arch/arm/common/locomo.c
===================================================================
--- linux-2.6.26.orig/arch/arm/common/locomo.c	2008-08-02 20:53:56.000000000 -0700
+++ linux-2.6.26/arch/arm/common/locomo.c	2008-08-04 16:50:29.000000000 -0700
@@ -715,7 +715,7 @@
	locomo_writel(0, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KIC);

	/* GPIO */
-	locomo_writel(0, lchip->base + LOCOMO_GPO);
+	locomo_writel(POODLE_LOCOMO_GPIO_232VCC_ON, lchip->base + LOCOMO_GPO);
	locomo_writel((LOCOMO_GPIO(1) | LOCOMO_GPIO(2) | LOCOMO_GPIO(13) | LOCOMO_GPIO(14))
			, lchip->base + LOCOMO_GPE);
	locomo_writel((LOCOMO_GPIO(1) | LOCOMO_GPIO(2) | LOCOMO_GPIO(13) | LOCOMO_GPIO(14))
Index: linux-2.6.26/drivers/serial/pxa.c
===================================================================
--- linux-2.6.26.orig/drivers/serial/pxa.c	2008-08-04 16:46:37.000000000 -0700
+++ linux-2.6.26/drivers/serial/pxa.c	2008-08-04 16:48:18.000000000 -0700
@@ -296,9 +296,9 @@
	unsigned char mcr = 0;

	if (mctrl & TIOCM_RTS)
-		mcr |= UART_MCR_RTS;
+		mcr &= ~UART_MCR_RTS;
	if (mctrl & TIOCM_DTR)
-		mcr |= UART_MCR_DTR;
+		mcr &= ~UART_MCR_DTR;
	if (mctrl & TIOCM_OUT1)
		mcr |= UART_MCR_OUT1;
	if (mctrl & TIOCM_OUT2)