setup-sh4-202.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * SH4-202 Setup
  3. *
  4. * Copyright (C) 2006 Paul Mundt
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/platform_device.h>
  11. #include <linux/init.h>
  12. #include <linux/serial.h>
  13. #include <linux/serial_sci.h>
  14. static struct plat_sci_port sci_platform_data[] = {
  15. {
  16. .mapbase = 0xffe80000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCIF,
  19. .irqs = { 40, 41, 43, 42 },
  20. }, {
  21. .flags = 0,
  22. }
  23. };
  24. static struct platform_device sci_device = {
  25. .name = "sh-sci",
  26. .id = -1,
  27. .dev = {
  28. .platform_data = sci_platform_data,
  29. },
  30. };
  31. static struct platform_device *sh4202_devices[] __initdata = {
  32. &sci_device,
  33. };
  34. static int __init sh4202_devices_setup(void)
  35. {
  36. return platform_add_devices(sh4202_devices,
  37. ARRAY_SIZE(sh4202_devices));
  38. }
  39. __initcall(sh4202_devices_setup);
  40. void __init plat_irq_setup(void)
  41. {
  42. /* do nothing - all IRL interrupts are handled by the board code */
  43. }