pinmux-sh7203.c 544 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * SH7203 Pinmux
  4. *
  5. * Copyright (C) 2008 Magnus Damm
  6. */
  7. #include <linux/bug.h>
  8. #include <linux/init.h>
  9. #include <linux/kernel.h>
  10. #include <linux/ioport.h>
  11. #include <cpu/pfc.h>
  12. static struct resource sh7203_pfc_resources[] = {
  13. [0] = {
  14. .start = 0xfffe3800,
  15. .end = 0xfffe3a9f,
  16. .flags = IORESOURCE_MEM,
  17. },
  18. };
  19. static int __init plat_pinmux_setup(void)
  20. {
  21. return sh_pfc_register("pfc-sh7203", sh7203_pfc_resources,
  22. ARRAY_SIZE(sh7203_pfc_resources));
  23. }
  24. arch_initcall(plat_pinmux_setup);