pinmux-shx3.c 546 B

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