linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ppc32: smc1_lineif fix for mpc8272
@ 2005-11-20 14:05 Mike Rapoport
  2005-11-23  7:16 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Rapoport @ 2005-11-20 14:05 UTC (permalink / raw)
  To: galak; +Cc: 'linuxppc-embedded@ozlabs.org'

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

This patch fixes the pin assignment of SMC1 for MPC8272 family

Signed-off-by: Mike Rapoport <mike@compulab.co.il>


-- 
Sincerely yours,
Mike Rapoport



[-- Attachment #2: smc_8272.patch --]
[-- Type: text/x-diff, Size: 728 bytes --]

diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm2.c b/drivers/serial/cpm_uart/cpm_uart_cpm2.c
--- a/drivers/serial/cpm_uart/cpm_uart_cpm2.c
+++ b/drivers/serial/cpm_uart/cpm_uart_cpm2.c
@@ -89,11 +89,19 @@ void smc1_lineif(struct uart_cpm_port *p
 {
 	volatile iop_cpm2_t *io = &cpm2_immr->im_ioport;
 
+#ifdef CONFIG_8272
+	/* SMC1 is only on port C on 8272 */
+	io->iop_pparc |= 0x0c000000;
+	io->iop_pdirc |= 0x04000000;
+	io->iop_pdirc &= ~0x08000000;
+	io->iop_psorc &= ~0x0c000000;
+#else
 	/* SMC1 is only on port D */
 	io->iop_ppard |= 0x00c00000;
 	io->iop_pdird |= 0x00400000;
 	io->iop_pdird &= ~0x00800000;
 	io->iop_psord &= ~0x00c00000;
+#endif
 
 	/* Wire BRG1 to SMC1 */
 	cpm2_immr->im_cpmux.cmx_smr &= 0x0f;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-23  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20 14:05 [PATCH] ppc32: smc1_lineif fix for mpc8272 Mike Rapoport
2005-11-23  7:16 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).