setup-i2c.c 653 B

12345678910111213141516171819202122232425
  1. /* linux/arch/arm/plat-s3c24xx/setup-i2c.c
  2. *
  3. * Copyright 2008 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * S3C24XX Base setup for i2c device
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/kernel.h>
  13. struct platform_device;
  14. #include <plat/iic.h>
  15. #include <mach/hardware.h>
  16. #include <mach/regs-gpio.h>
  17. void s3c_i2c0_cfg_gpio(struct platform_device *dev)
  18. {
  19. s3c2410_gpio_cfgpin(S3C2410_GPE15, S3C2410_GPE15_IICSDA);
  20. s3c2410_gpio_cfgpin(S3C2410_GPE14, S3C2410_GPE14_IICSCL);
  21. }