cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

setup-i2c-s3c24xx.c (513B)


      1// SPDX-License-Identifier: GPL-2.0
      2//
      3// Copyright 2008 Simtec Electronics
      4//	Ben Dooks <ben@simtec.co.uk>
      5//
      6// S3C24XX Base setup for i2c device
      7
      8#include <linux/kernel.h>
      9#include <linux/gpio.h>
     10
     11struct platform_device;
     12
     13#include <linux/platform_data/i2c-s3c2410.h>
     14
     15#include "gpio-cfg.h"
     16#include "regs-gpio.h"
     17#include "gpio-samsung.h"
     18
     19void s3c_i2c0_cfg_gpio(struct platform_device *dev)
     20{
     21	s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA);
     22	s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL);
     23}