Skip to contentSkip to conversation

ppc32: smc1_lineif fix for mpc8272

PATCH In review Mike Rapoport 2 participants 2 messages Nov 20, 2005 – Nov 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: smc1_lineif fix for mpc8272

This patch fixes the pin assignment of SMC1 for MPC8272 family

Signature · 2 lines
Sincerely yours,
Mike Rapoport
drivers/serial/cpm_uart/cpm_uart_cpm2.c +8 -0
@@ -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;
#1 lore raw

It this on some specific board with an MPC8272 on it?

- kumar

Quoted 33 lines · Mike Rapoport

This patch fixes the pin assignment of SMC1 for MPC8272 family

Signature · 2 lines
Sincerely yours,
Mike Rapoport
drivers/serial/cpm_uart/cpm_uart_cpm2.c +8 -0
@@ -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;