setup-sh7705.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * SH7705 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 = 0xa4400000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCIF,
  19. .irqs = { 52, 53, 55, 54 },
  20. }, {
  21. .mapbase = 0xa4410000,
  22. .flags = UPF_BOOT_AUTOCONF,
  23. .type = PORT_SCIF,
  24. .irqs = { 56, 57, 59, 58 },
  25. }, {
  26. .flags = 0,
  27. }
  28. };
  29. static struct platform_device sci_device = {
  30. .name = "sh-sci",
  31. .id = -1,
  32. .dev = {
  33. .platform_data = sci_platform_data,
  34. },
  35. };
  36. static struct platform_device *sh7705_devices[] __initdata = {
  37. &sci_device,
  38. };
  39. static int __init sh7705_devices_setup(void)
  40. {
  41. return platform_add_devices(sh7705_devices,
  42. ARRAY_SIZE(sh7705_devices));
  43. }
  44. __initcall(sh7705_devices_setup);