setup-sh7206.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * SH7206 Setup
  3. *
  4. * Copyright (C) 2006 Yoshinori Sato
  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 = 0xfffe8000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCIF,
  19. .irqs = { 240, 241, 242, 243},
  20. }, {
  21. .mapbase = 0xfffe8800,
  22. .flags = UPF_BOOT_AUTOCONF,
  23. .type = PORT_SCIF,
  24. .irqs = { 244, 245, 246, 247},
  25. }, {
  26. .mapbase = 0xfffe9000,
  27. .flags = UPF_BOOT_AUTOCONF,
  28. .type = PORT_SCIF,
  29. .irqs = { 248, 249, 250, 251},
  30. }, {
  31. .mapbase = 0xfffe9800,
  32. .flags = UPF_BOOT_AUTOCONF,
  33. .type = PORT_SCIF,
  34. .irqs = { 252, 253, 254, 255},
  35. }, {
  36. .flags = 0,
  37. }
  38. };
  39. static struct platform_device sci_device = {
  40. .name = "sh-sci",
  41. .id = -1,
  42. .dev = {
  43. .platform_data = sci_platform_data,
  44. },
  45. };
  46. static struct platform_device *sh7206_devices[] __initdata = {
  47. &sci_device,
  48. };
  49. static int __init sh7206_devices_setup(void)
  50. {
  51. return platform_add_devices(sh7206_devices,
  52. ARRAY_SIZE(sh7206_devices));
  53. }
  54. __initcall(sh7206_devices_setup);