8250_exar_st16c554.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #include <linux/module.h>
  14. #include <linux/init.h>
  15. #include <linux/serial_8250.h>
  16. #include "8250.h"
  17. static struct plat_serial8250_port exar_data[] = {
  18. SERIAL8250_PORT(0x100, 5),
  19. SERIAL8250_PORT(0x108, 5),
  20. SERIAL8250_PORT(0x110, 5),
  21. SERIAL8250_PORT(0x118, 5),
  22. { },
  23. };
  24. static struct platform_device exar_device = {
  25. .name = "serial8250",
  26. .id = PLAT8250_DEV_EXAR_ST16C554,
  27. .dev = {
  28. .platform_data = exar_data,
  29. },
  30. };
  31. static int __init exar_init(void)
  32. {
  33. return platform_device_register(&exar_device);
  34. }
  35. module_init(exar_init);
  36. MODULE_AUTHOR("Paul B Schroeder");
  37. MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
  38. MODULE_LICENSE("GPL");