diff options
author | Ketul Shah <ketulshah1993@gmail.com> | 2015-08-18 20:00:48 +0530 |
---|---|---|
committer | Ben Gras <ben@minix3.org> | 2015-08-18 17:05:55 +0200 |
commit | 151e53feabbe8ebdcbb491f06afeee8ea596ed6c (patch) | |
tree | 94c5a66a7f586931b847589b9b82054f48430c78 /c/src/lib/libbsp/arm/beagle/include/bsp.h | |
parent | Closes ticket #2390, and also updates the RPI implementation. (diff) | |
download | rtems-151e53feabbe8ebdcbb491f06afeee8ea596ed6c.tar.bz2 |
Beagle: GPIO support (for BBB)
GPIO Driver Development for BeagleBone Black based on the generic GPIO API
Diffstat (limited to 'c/src/lib/libbsp/arm/beagle/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/arm/beagle/include/bsp.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/arm/beagle/include/bsp.h b/c/src/lib/libbsp/arm/beagle/include/bsp.h index e43d27a7a5..0250749419 100644 --- a/c/src/lib/libbsp/arm/beagle/include/bsp.h +++ b/c/src/lib/libbsp/arm/beagle/include/bsp.h @@ -31,6 +31,7 @@ #include <stdint.h> #include <bsp/start.h> #include <bsp/default-initial-extension.h> +#include <bsp/beagleboneblack.h> #include <rtems.h> #include <rtems/irq-extension.h> @@ -169,6 +170,17 @@ static inline void flush_data_cache(void) #define BEAGLE_BASE_UART_3 0x49020000 #endif +/* GPIO pin config */ +#if IS_AM335X +#define BSP_GPIO_PIN_COUNT 128 +#define BSP_GPIO_PINS_PER_BANK 32 +#endif + +#if IS_DM3730 +#define BSP_GPIO_PIN_COUNT 192 +#define BSP_GPIO_PINS_PER_BANK 32 +#endif + /* i2c stuff */ typedef struct { uint32_t rx_or_tx; @@ -339,4 +351,4 @@ static inline void write_ttbr0(uint32_t bar) */ BSP_START_TEXT_SECTION void beagle_setup_mmu_and_cache(void); -#endif /* LIBBSP_ARM_BEAGLE_BSP_H */ +#endif /* LIBBSP_ARM_BEAGLE_BSP_H */
\ No newline at end of file |