pinmux-sh7734.c 906 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * SH7734 processor support - PFC hardware block
  3. *
  4. * Copyright (C) 2012 Renesas Solutions Corp.
  5. * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. */
  11. #include <linux/bug.h>
  12. #include <linux/init.h>
  13. #include <linux/kernel.h>
  14. #include <linux/ioport.h>
  15. #include <cpu/pfc.h>
  16. static struct resource sh7734_pfc_resources[] = {
  17. [0] = { /* PFC */
  18. .start = 0xFFFC0000,
  19. .end = 0xFFFC011C,
  20. .flags = IORESOURCE_MEM,
  21. },
  22. [1] = { /* GPIO */
  23. .start = 0xFFC40000,
  24. .end = 0xFFC4502B,
  25. .flags = IORESOURCE_MEM,
  26. }
  27. };
  28. static int __init plat_pinmux_setup(void)
  29. {
  30. return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
  31. ARRAY_SIZE(sh7734_pfc_resources));
  32. }
  33. arch_initcall(plat_pinmux_setup);