isa.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * linux/arch/arm/mach-footbridge/isa.c
  3. *
  4. * Copyright (C) 2004 Russell King.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/serial_8250.h>
  12. #include <asm/irq.h>
  13. static struct plat_serial8250_port serial_platform_data[] = {
  14. {
  15. .iobase = 0x3f8,
  16. .irq = IRQ_ISA_UART,
  17. .uartclk = 1843200,
  18. .regshift = 0,
  19. .iotype = UPIO_PORT,
  20. .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
  21. },
  22. {
  23. .iobase = 0x2f8,
  24. .irq = IRQ_ISA_UART2,
  25. .uartclk = 1843200,
  26. .regshift = 0,
  27. .iotype = UPIO_PORT,
  28. .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
  29. },
  30. { },
  31. };
  32. static struct platform_device serial_device = {
  33. .name = "serial8250",
  34. .id = PLAT8250_DEV_PLATFORM,
  35. .dev = {
  36. .platform_data = serial_platform_data,
  37. },
  38. };
  39. static int __init footbridge_isa_init(void)
  40. {
  41. return platform_device_register(&serial_device);
  42. }
  43. arch_initcall(footbridge_isa_init);