1178476Sjb// SPDX-License-Identifier: GPL-2.0+
2178476Sjb
3178476Sjb#include <asm/machvec.h>
4178476Sjb#include "8250.h"
5178476Sjb
6178476Sjbbool alpha_jensen(void)
7178476Sjb{
8178476Sjb	return !strcmp(alpha_mv.vector_name, "Jensen");
9178476Sjb}
10178476Sjb
11178476Sjbvoid alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl)
12178476Sjb{
13178476Sjb	/*
14178476Sjb	 * Digital did something really horribly wrong with the OUT1 and OUT2
15178476Sjb	 * lines on Alpha Jensen.  The failure mode is that if either is
16178476Sjb	 * cleared, the machine locks up with endless interrupts.
17178476Sjb	 */
18178476Sjb	mctrl |= TIOCM_OUT1 | TIOCM_OUT2;
19178476Sjb
20178476Sjb	serial8250_do_set_mctrl(port, mctrl);
21178476Sjb}
22178476Sjb