8250_accent.c 898 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2005 Russell King.
  3. * Data taken from include/asm-i386/serial.h
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  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 accent_data[] = {
  14. SERIAL8250_PORT(0x330, 4),
  15. SERIAL8250_PORT(0x338, 4),
  16. { },
  17. };
  18. static struct platform_device accent_device = {
  19. .name = "serial8250",
  20. .id = PLAT8250_DEV_ACCENT,
  21. .dev = {
  22. .platform_data = accent_data,
  23. },
  24. };
  25. static int __init accent_init(void)
  26. {
  27. return platform_device_register(&accent_device);
  28. }
  29. module_init(accent_init);
  30. MODULE_AUTHOR("Russell King");
  31. MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
  32. MODULE_LICENSE("GPL");