pinmux-sh7734.c 766 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * SH7734 processor support - PFC hardware block
  4. *
  5. * Copyright (C) 2012 Renesas Solutions Corp.
  6. * Copyright (C) 2012 Nobuhiro Iwamatsu <[email protected]>
  7. */
  8. #include <linux/bug.h>
  9. #include <linux/init.h>
  10. #include <linux/kernel.h>
  11. #include <linux/ioport.h>
  12. #include <cpu/pfc.h>
  13. static struct resource sh7734_pfc_resources[] = {
  14. [0] = { /* PFC */
  15. .start = 0xFFFC0000,
  16. .end = 0xFFFC011C,
  17. .flags = IORESOURCE_MEM,
  18. },
  19. [1] = { /* GPIO */
  20. .start = 0xFFC40000,
  21. .end = 0xFFC4502B,
  22. .flags = IORESOURCE_MEM,
  23. }
  24. };
  25. static int __init plat_pinmux_setup(void)
  26. {
  27. return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
  28. ARRAY_SIZE(sh7734_pfc_resources));
  29. }
  30. arch_initcall(plat_pinmux_setup);