diff options
author | Wolfgang Denk <wd@denx.de> | 2010-01-12 23:39:08 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-01-12 23:39:08 +0100 |
commit | c76b64666e2b0d9d4eb8befc686c769db640533c (patch) | |
tree | bc8e9d2c5610d58424b645abb394a7303084dfcb /include/asm-arm/arch-davinci/gpio_defs.h | |
parent | 02c631e6eec5439daea46f8cbdb1572b0df3c843 (diff) | |
parent | 321790f61bb92fead0fc01b8d055aa331d8dcf85 (diff) | |
download | u-boot-imx-c76b64666e2b0d9d4eb8befc686c769db640533c.zip u-boot-imx-c76b64666e2b0d9d4eb8befc686c769db640533c.tar.gz u-boot-imx-c76b64666e2b0d9d4eb8befc686c769db640533c.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'include/asm-arm/arch-davinci/gpio_defs.h')
-rw-r--r-- | include/asm-arm/arch-davinci/gpio_defs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-arm/arch-davinci/gpio_defs.h b/include/asm-arm/arch-davinci/gpio_defs.h index ff62976..1be2ac2 100644 --- a/include/asm-arm/arch-davinci/gpio_defs.h +++ b/include/asm-arm/arch-davinci/gpio_defs.h @@ -22,12 +22,21 @@ #ifndef _GPIO_DEFS_H_ #define _GPIO_DEFS_H_ +#ifndef CONFIG_SOC_DA8XX #define DAVINCI_GPIO_BINTEN 0x01C67008 #define DAVINCI_GPIO_BANK01 0x01C67010 #define DAVINCI_GPIO_BANK23 0x01C67038 #define DAVINCI_GPIO_BANK45 0x01C67060 #define DAVINCI_GPIO_BANK67 0x01C67088 +#else /* CONFIG_SOC_DA8XX */ +#define DAVINCI_GPIO_BINTEN 0x01E26008 +#define DAVINCI_GPIO_BANK01 0x01E26010 +#define DAVINCI_GPIO_BANK23 0x01E26038 +#define DAVINCI_GPIO_BANK45 0x01E26060 +#define DAVINCI_GPIO_BANK67 0x01E26088 +#endif /* CONFIG_SOC_DA8XX */ + struct davinci_gpio { unsigned int dir; unsigned int out_data; @@ -49,4 +58,9 @@ struct davinci_gpio_bank { unsigned long base; }; +#define davinci_gpio_bank01 ((struct davinci_gpio *)DAVINCI_GPIO_BANK01) +#define davinci_gpio_bank23 ((struct davinci_gpio *)DAVINCI_GPIO_BANK23) +#define davinci_gpio_bank45 ((struct davinci_gpio *)DAVINCI_GPIO_BANK45) +#define davinci_gpio_bank67 ((struct davinci_gpio *)DAVINCI_GPIO_BANK67) + #endif |