~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/plat-samsung/gpio-config.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
        return pull;
321
321
}
322
322
#endif
323
 
 
324
 
#ifdef CONFIG_CPU_EXYNOS4210
325
 
int s3c_gpio_setpull_exynos4(struct s3c_gpio_chip *chip,
326
 
                                unsigned int off, s3c_gpio_pull_t pull)
327
 
{
328
 
        if (pull == S3C_GPIO_PULL_UP)
329
 
                pull = 3;
330
 
 
331
 
        return s3c_gpio_setpull_updown(chip, off, pull);
332
 
}
333
 
 
334
 
s3c_gpio_pull_t s3c_gpio_getpull_exynos4(struct s3c_gpio_chip *chip,
335
 
                                        unsigned int off)
336
 
{
337
 
        s3c_gpio_pull_t pull;
338
 
 
339
 
        pull = s3c_gpio_getpull_updown(chip, off);
340
 
        if (pull == 3)
341
 
                pull = S3C_GPIO_PULL_UP;
342
 
 
343
 
        return pull;
344
 
}
345
 
#endif /* CONFIG_CPU_EXYNOS4210 */
346
323
#endif
347
324
 
348
325
#if defined(CONFIG_S3C_GPIO_PULL_UP) || defined(CONFIG_S3C_GPIO_PULL_DOWN)