1 /* linux/arch/arm/plat-s5pc1xx/include/plat/gpio-cfg.h
3 * Copyright 2009 Samsung Electronic
5 * S5PC1XX Platform - GPIO pin configuration
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 /* This file contains the necessary definitions to get the basic gpio
13 * pin configuration done such as setting a pin to input or output or
14 * changing the pull-{up,down} configurations.
17 #ifndef __GPIO_CFG_S5PC1XX_H
18 #define __GPIO_CFG_S5PC1XX_H __FILE__
20 typedef unsigned int __bitwise__ s5p_gpio_drvstr_t;
22 #define S5P_GPIO_DRVSTR_LV1 0x00
23 #define S5P_GPIO_DRVSTR_LV2 0x01
24 #define S5P_GPIO_DRVSTR_LV3 0x10
25 #define S5P_GPIO_DRVSTR_LV4 0x11
27 extern s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin, unsigned int off);
29 extern int s5p_gpio_set_drvstr(unsigned int pin, unsigned int off,
30 s5p_gpio_drvstr_t drvstr);
32 #endif /* __GPIO_CFG_S5PC1XX_H */