summaryrefslogtreecommitdiff
path: root/include/ppc440.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-03-24 15:57:09 +0100
committerStefan Roese <sr@denx.de>2007-03-24 15:57:09 +0100
commit0d974d5297349504a2ddfa09314be573b5df320a (patch)
treeb7f9b98813aeb348077c4370da8e26ccb7b1fce2 /include/ppc440.h
parent2db633658bbf366ab0c8dad7a0727e1fb2ae6b11 (diff)
downloadu-boot-imx-0d974d5297349504a2ddfa09314be573b5df320a.zip
u-boot-imx-0d974d5297349504a2ddfa09314be573b5df320a.tar.gz
u-boot-imx-0d974d5297349504a2ddfa09314be573b5df320a.tar.bz2
[PATCH] Add 4xx GPIO functions
This patch adds some 4xx GPIO functions. It also moves some of the common code and defines into a common 4xx GPIO header file. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/ppc440.h')
-rw-r--r--include/ppc440.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/ppc440.h b/include/ppc440.h
index 1c7f11c..d827228 100644
--- a/include/ppc440.h
+++ b/include/ppc440.h
@@ -3267,29 +3267,6 @@
#define GPIO1_ISR3H (GPIO1_BASE+0x44)
#endif
-#define GPIO_GROUP_MAX 2
-#define GPIO_MAX 32
-#define GPIO_ALT1_SEL 0x40000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 0 */
-#define GPIO_ALT2_SEL 0x80000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 1 */
-#define GPIO_ALT3_SEL 0xC0000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 2 */
-#define GPIO_MASK 0xC0000000 /* GPIO_MASK */
-#define GPIO_IN_SEL 0x40000000 /* GPIO_IN value put in GPIO_ISx for the GPIO nb 0 */
- /* For the other GPIO number, you must shift */
-
-#define GPIO_VAL(gpio) (0x80000000 >> (gpio))
-
-#ifndef __ASSEMBLY__
-
-typedef enum gpio_select { GPIO_SEL, GPIO_ALT1, GPIO_ALT2, GPIO_ALT3 } gpio_select_t;
-typedef enum gpio_driver { GPIO_DIS, GPIO_IN, GPIO_OUT, GPIO_BI } gpio_driver_t;
-
-typedef struct { unsigned long add; /* gpio core base address */
- gpio_driver_t in_out; /* Driver Setting */
- gpio_select_t alt_nb; /* Selected Alternate */
-} gpio_param_s;
-
-#endif /* __ASSEMBLY__ */
-
/*
* Macros for accessing the indirect EBC registers
*/