8250_alpha.c 516 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0+
  2. #include <asm/machvec.h>
  3. #include "8250.h"
  4. bool alpha_jensen(void)
  5. {
  6. return !strcmp(alpha_mv.vector_name, "Jensen");
  7. }
  8. void alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl)
  9. {
  10. /*
  11. * Digital did something really horribly wrong with the OUT1 and OUT2
  12. * lines on Alpha Jensen. The failure mode is that if either is
  13. * cleared, the machine locks up with endless interrupts.
  14. */
  15. mctrl |= TIOCM_OUT1 | TIOCM_OUT2;
  16. serial8250_do_set_mctrl(port, mctrl);
  17. }