setup-sh7343.c 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * SH7343 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 = 0xffe00000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCIF,
  19. .irqs = { 80, 81, 83, 82 },
  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 *sh7343_devices[] __initdata = {
  32. &sci_device,
  33. };
  34. static int __init sh7343_devices_setup(void)
  35. {
  36. return platform_add_devices(sh7343_devices,
  37. ARRAY_SIZE(sh7343_devices));
  38. }
  39. __initcall(sh7343_devices_setup);
  40. void __init plat_irq_setup(void)
  41. {
  42. }