pinmux-sh7203.c 684 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * SH7203 Pinmux
  3. *
  4. * Copyright (C) 2008 Magnus Damm
  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/bug.h>
  11. #include <linux/init.h>
  12. #include <linux/kernel.h>
  13. #include <linux/ioport.h>
  14. #include <cpu/pfc.h>
  15. static struct resource sh7203_pfc_resources[] = {
  16. [0] = {
  17. .start = 0xfffe3800,
  18. .end = 0xfffe3a9f,
  19. .flags = IORESOURCE_MEM,
  20. },
  21. };
  22. static int __init plat_pinmux_setup(void)
  23. {
  24. return sh_pfc_register("pfc-sh7203", sh7203_pfc_resources,
  25. ARRAY_SIZE(sh7203_pfc_resources));
  26. }
  27. arch_initcall(plat_pinmux_setup);