Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 
0003 #include <asm/machvec.h>
0004 #include "8250.h"
0005 
0006 bool alpha_jensen(void)
0007 {
0008     return !strcmp(alpha_mv.vector_name, "Jensen");
0009 }
0010 
0011 void alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl)
0012 {
0013     /*
0014      * Digital did something really horribly wrong with the OUT1 and OUT2
0015      * lines on Alpha Jensen.  The failure mode is that if either is
0016      * cleared, the machine locks up with endless interrupts.
0017      */
0018     mctrl |= TIOCM_OUT1 | TIOCM_OUT2;
0019 
0020     serial8250_do_set_mctrl(port, mctrl);
0021 }