]>
Commit | Line | Data |
---|---|---|
b0d5217c KP |
1 | /* linux/arch/arm/plat-s5pc1xx/include/plat/gpio-cfg.h |
2 | * | |
3 | * Copyright 2009 Samsung Electronic | |
4 | * | |
5 | * S5PC1XX Platform - GPIO pin configuration | |
6 | * | |
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. | |
10 | */ | |
11 | ||
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. | |
15 | */ | |
16 | ||
17 | #ifndef __GPIO_CFG_S5PC1XX_H | |
18 | #define __GPIO_CFG_S5PC1XX_H __FILE__ | |
19 | ||
20 | typedef unsigned int __bitwise__ s5p_gpio_drvstr_t; | |
21 | ||
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 | |
26 | ||
27 | extern s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin, unsigned int off); | |
28 | ||
29 | extern int s5p_gpio_set_drvstr(unsigned int pin, unsigned int off, | |
30 | s5p_gpio_drvstr_t drvstr); | |
31 | ||
32 | #endif /* __GPIO_CFG_S5PC1XX_H */ |