pinmux-shx3.c 686 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SH-X3 prototype CPU pinmux
  3. *
  4. * Copyright (C) 2010 Paul Mundt
  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 shx3_pfc_resources[] = {
  16. [0] = {
  17. .start = 0xffc70000,
  18. .end = 0xffc7001f,
  19. .flags = IORESOURCE_MEM,
  20. },
  21. };
  22. static int __init plat_pinmux_setup(void)
  23. {
  24. return sh_pfc_register("pfc-shx3", shx3_pfc_resources,
  25. ARRAY_SIZE(shx3_pfc_resources));
  26. }
  27. arch_initcall(plat_pinmux_setup);