setup-sh7300.c 914 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * SH7300 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 = 0xa4430000,
  17. .flags = UPF_BOOT_AUTOCONF,
  18. .type = PORT_SCI,
  19. .irqs = { 80, 80, 80, 80 },
  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 *sh7300_devices[] __initdata = {
  32. &sci_device,
  33. };
  34. static int __init sh7300_devices_setup(void)
  35. {
  36. return platform_add_devices(sh7300_devices,
  37. ARRAY_SIZE(sh7300_devices));
  38. }
  39. __initcall(sh7300_devices_setup);