8250_accent.c 744 B

1234567891011121314151617181920212223242526272829303132333435
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2005 Russell King.
  4. * Data taken from include/asm-i386/serial.h
  5. */
  6. #include <linux/module.h>
  7. #include <linux/init.h>
  8. #include <linux/serial_8250.h>
  9. #include "8250.h"
  10. static struct plat_serial8250_port accent_data[] = {
  11. SERIAL8250_PORT(0x330, 4),
  12. SERIAL8250_PORT(0x338, 4),
  13. { },
  14. };
  15. static struct platform_device accent_device = {
  16. .name = "serial8250",
  17. .id = PLAT8250_DEV_ACCENT,
  18. .dev = {
  19. .platform_data = accent_data,
  20. },
  21. };
  22. static int __init accent_init(void)
  23. {
  24. return platform_device_register(&accent_device);
  25. }
  26. module_init(accent_init);
  27. MODULE_AUTHOR("Russell King");
  28. MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
  29. MODULE_LICENSE("GPL");