2 * Copyright (c) 2012 Lothar Waßmann <LW@KARO-electronics.de>
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.
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.
14 #ifndef _GPIO_AM33XX_H
15 #define _GPIO_AM33XX_H
17 #include <asm-generic/gpio.h>
19 #define AM33XX_GPIO_NR(bank, pin) (((bank) << 5) | (pin))
21 #endif /* _GPIO_AM33XX_H */