]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-am33xx/gpio.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / arch / arm / include / asm / arch-am33xx / gpio.h
1 /*
2  * Copyright (c) 2012 Lothar Waßmann <LW@KARO-electronics.de>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  */
14 #ifndef _GPIO_AM33XX_H
15 #define _GPIO_AM33XX_H
16
17 #include <asm-generic/gpio.h>
18
19 #define AM33XX_GPIO_NR(bank, pin)       (((bank) << 5) | (pin))
20
21 #endif /* _GPIO_AM33XX_H */