ARM: sa1100: Refactor mcp-sa11x0 to use platform resources.
[sfrench/cifs-2.6.git] / arch / arm / mach-sa1100 / cerf.c
index b7db7cd083058e7ffe8dd05187a84c2e5619b24e..6f7e19d4e657c1e2c6a9f5013c3e755cc4d09192 100644 (file)
@@ -131,6 +131,16 @@ static void __init cerf_init(void)
 {
        platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices));
        sa11x0_register_mtd(&cerf_flash_data, &cerf_flash_resource, 1);
+
+       /*
+        * Setup the PPC unit correctly.
+        */
+       PPDR &= ~PPC_RXD4;
+       PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
+       PSDR |= PPC_RXD4;
+       PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
+       PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
+
        sa11x0_register_mcp(&cerf_mcp_data);
 }