pfc.c 544 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * SH Pin Function Control Initialization
  4. *
  5. * Copyright (C) 2012 Renesas Solutions Corp.
  6. */
  7. #include <linux/init.h>
  8. #include <linux/platform_device.h>
  9. #include <cpu/pfc.h>
  10. static struct platform_device sh_pfc_device = {
  11. .id = -1,
  12. };
  13. int __init sh_pfc_register(const char *name,
  14. struct resource *resource, u32 num_resources)
  15. {
  16. sh_pfc_device.name = name;
  17. sh_pfc_device.num_resources = num_resources;
  18. sh_pfc_device.resource = resource;
  19. return platform_device_register(&sh_pfc_device);
  20. }