setup-sh7770.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * SH7770 Setup
  3. *
  4. * Copyright (C) 2006 - 2008 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 = 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. .mapbase = 0xff926000,
  32. .flags = UPF_BOOT_AUTOCONF,
  33. .type = PORT_SCIF,
  34. .irqs = { 64, 64, 64, 64 },
  35. }, {
  36. .mapbase = 0xff927000,
  37. .flags = UPF_BOOT_AUTOCONF,
  38. .type = PORT_SCIF,
  39. .irqs = { 65, 65, 65, 65 },
  40. }, {
  41. .mapbase = 0xff928000,
  42. .flags = UPF_BOOT_AUTOCONF,
  43. .type = PORT_SCIF,
  44. .irqs = { 66, 66, 66, 66 },
  45. }, {
  46. .mapbase = 0xff929000,
  47. .flags = UPF_BOOT_AUTOCONF,
  48. .type = PORT_SCIF,
  49. .irqs = { 67, 67, 67, 67 },
  50. }, {
  51. .mapbase = 0xff92a000,
  52. .flags = UPF_BOOT_AUTOCONF,
  53. .type = PORT_SCIF,
  54. .irqs = { 68, 68, 68, 68 },
  55. }, {
  56. .mapbase = 0xff92b000,
  57. .flags = UPF_BOOT_AUTOCONF,
  58. .type = PORT_SCIF,
  59. .irqs = { 69, 69, 69, 69 },
  60. }, {
  61. .mapbase = 0xff92c000,
  62. .flags = UPF_BOOT_AUTOCONF,
  63. .type = PORT_SCIF,
  64. .irqs = { 70, 70, 70, 70 },
  65. }, {
  66. .flags = 0,
  67. }
  68. };
  69. static struct platform_device sci_device = {
  70. .name = "sh-sci",
  71. .id = -1,
  72. .dev = {
  73. .platform_data = sci_platform_data,
  74. },
  75. };
  76. static struct platform_device *sh7770_devices[] __initdata = {
  77. &sci_device,
  78. };
  79. static int __init sh7770_devices_setup(void)
  80. {
  81. return platform_add_devices(sh7770_devices,
  82. ARRAY_SIZE(sh7770_devices));
  83. }
  84. __initcall(sh7770_devices_setup);
  85. void __init plat_irq_setup(void)
  86. {
  87. }