setup-i2c.c 754 B

1234567891011121314151617181920212223242526272829
  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. #include <linux/gpio.h>
  14. struct platform_device;
  15. #include <plat/gpio-cfg.h>
  16. #include <linux/platform_data/i2c-s3c2410.h>
  17. #include <mach/hardware.h>
  18. #include <mach/regs-gpio.h>
  19. #include <mach/gpio-samsung.h>
  20. void s3c_i2c0_cfg_gpio(struct platform_device *dev)
  21. {
  22. s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA);
  23. s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL);
  24. }