sead3-i2c.c 735 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
  7. */
  8. #include <linux/init.h>
  9. #include <linux/platform_device.h>
  10. struct resource sead3_i2c_resources[] = {
  11. {
  12. .start = 0x805200,
  13. .end = 0x8053ff,
  14. .flags = IORESOURCE_MEM,
  15. },
  16. };
  17. static struct platform_device sead3_i2c_device = {
  18. .name = "sead3-i2c",
  19. .id = 0,
  20. .num_resources = ARRAY_SIZE(sead3_i2c_resources),
  21. .resource = sead3_i2c_resources,
  22. };
  23. static int __init sead3_i2c_init(void)
  24. {
  25. return platform_device_register(&sead3_i2c_device);
  26. }
  27. device_initcall(sead3_i2c_init);