setup-sh7770.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * SH7770 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 <asm/sci.h>
  14. static struct plat_sci_port sci_platform_data[] = {
  15. {
  16. .mapbase = 0xff923000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCIF,
  19. .irqs = { 61, 61, 61, 61 },
  20. }, {
  21. .mapbase = 0xff924000,
  22. .flags = UPF_BOOT_AUTOCONF,
  23. .type = PORT_SCIF,
  24. .irqs = { 62, 62, 62, 62 },
  25. }, {
  26. .mapbase = 0xff925000,
  27. .flags = UPF_BOOT_AUTOCONF,
  28. .type = PORT_SCIF,
  29. .irqs = { 63, 63, 63, 63 },
  30. }, {
  31. .flags = 0,
  32. }
  33. };
  34. static struct platform_device sci_device = {
  35. .name = "sh-sci",
  36. .id = -1,
  37. .dev = {
  38. .platform_data = sci_platform_data,
  39. },
  40. };
  41. static struct platform_device *sh7770_devices[] __initdata = {
  42. &sci_device,
  43. };
  44. static int __init sh7770_devices_setup(void)
  45. {
  46. return platform_add_devices(sh7770_devices,
  47. ARRAY_SIZE(sh7770_devices));
  48. }
  49. __initcall(sh7770_devices_setup);
  50. void __init plat_irq_setup(void)
  51. {
  52. }