8250_exar_st16c554.c 888 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Written by Paul B Schroeder < pschroeder "at" uplogix "dot" com >
  4. * Based on 8250_boca.
  5. *
  6. * Copyright (C) 2005 Russell King.
  7. * Data taken from include/asm-i386/serial.h
  8. */
  9. #include <linux/module.h>
  10. #include <linux/init.h>
  11. #include <linux/serial_8250.h>
  12. #include "8250.h"
  13. static struct plat_serial8250_port exar_data[] = {
  14. SERIAL8250_PORT(0x100, 5),
  15. SERIAL8250_PORT(0x108, 5),
  16. SERIAL8250_PORT(0x110, 5),
  17. SERIAL8250_PORT(0x118, 5),
  18. { },
  19. };
  20. static struct platform_device exar_device = {
  21. .name = "serial8250",
  22. .id = PLAT8250_DEV_EXAR_ST16C554,
  23. .dev = {
  24. .platform_data = exar_data,
  25. },
  26. };
  27. static int __init exar_init(void)
  28. {
  29. return platform_device_register(&exar_device);
  30. }
  31. module_init(exar_init);
  32. MODULE_AUTHOR("Paul B Schroeder");
  33. MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
  34. MODULE_LICENSE("GPL");