]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Changed CPCI405 to use CTS instead of DSR on PPC405 UART1.
authorstroese <stroese>
Fri, 4 Apr 2003 16:52:57 +0000 (16:52 +0000)
committerstroese <stroese>
Fri, 4 Apr 2003 16:52:57 +0000 (16:52 +0000)
board/esd/cpci405/cpci405.c

index dc498d5ec7915cedb780c1f486761acb09c37a96..b50716f35cdf5b01750f066f0839393d9d89596f 100644 (file)
@@ -234,6 +234,7 @@ int misc_init_r (void)
 
        bd_t *bd = gd->bd;
        char *  tmp;                    /* Temporary char pointer      */
+       unsigned long cntrl0Reg;
 
 #ifdef CONFIG_CPCI405_VER2
        unsigned char *dst;
@@ -241,7 +242,6 @@ int misc_init_r (void)
        int status;
        int index;
        int i;
-       unsigned long cntrl0Reg;
 
        /*
         * On CPCI-405 version 2 the environment is saved in eeprom!
@@ -377,6 +377,12 @@ int misc_init_r (void)
 
 #endif /* CONFIG_CPCI405_VER2 */
 
+       /*
+        * Select cts (and not dsr) on uart1
+        */
+       cntrl0Reg = mfdcr(cntrl0);
+       mtdcr(cntrl0, cntrl0Reg | 0x00001000);
+
        /*
         * Write ethernet addr in NVRAM for VxWorks
         */