Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] m68knommu: set GPIO lines for serial ports on 5282 in mcfserial.c

For the Freescale M5282 ColdFire,
Port UA Pin Assignment Register should set to UART mode.
Patch submitted by David Wu <davidwu@arcturusnetworks.com>.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Greg Ungerer and committed by
Linus Torvalds
ebfcfef4 8668fb5d

+9 -2
+9 -2
drivers/serial/mcfserial.c
··· 1541 1541 * External Pin Mask Setting & Enable External Pin for Interface 1542 1542 * mrcbis@aliceposta.it 1543 1543 */ 1544 - unsigned short *serpin_enable_mask; 1545 - serpin_enable_mask = (MCF_IPSBAR + MCF_GPIO_PAR_UART); 1544 + u16 *serpin_enable_mask; 1545 + serpin_enable_mask = (u16 *) (MCF_IPSBAR + MCF_GPIO_PAR_UART); 1546 1546 if (info->line == 0) 1547 1547 *serpin_enable_mask |= UART0_ENABLE_MASK; 1548 1548 else if (info->line == 1) 1549 1549 *serpin_enable_mask |= UART1_ENABLE_MASK; 1550 1550 else if (info->line == 2) 1551 1551 *serpin_enable_mask |= UART2_ENABLE_MASK; 1552 + } 1553 + #endif 1554 + #if defined(CONFIG_M528x) 1555 + /* make sure PUAPAR is set for UART0 and UART1 */ 1556 + if (info->line < 2) { 1557 + volatile unsigned char *portp = (volatile unsigned char *) (MCF_MBAR + MCF5282_GPIO_PUAPAR); 1558 + *portp |= (0x03 << (info->line * 2)); 1552 1559 } 1553 1560 #endif 1554 1561 #elif defined(CONFIG_M520x)