pinmux-sh7720.c 684 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * SH7720 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 sh7720_pfc_resources[] = {
  16. [0] = {
  17. .start = 0xa4050100,
  18. .end = 0xa405016f,
  19. .flags = IORESOURCE_MEM,
  20. },
  21. };
  22. static int __init plat_pinmux_setup(void)
  23. {
  24. return sh_pfc_register("pfc-sh7720", sh7720_pfc_resources,
  25. ARRAY_SIZE(sh7720_pfc_resources));
  26. }
  27. arch_initcall(plat_pinmux_setup);