2 * Copyright (C) 2007-2011 ST-Ericsson AB
3 * License terms: GNU General Public License (GPL) version 2
4 * GPIO block resgister definitions and inline macros for
5 * U300 GPIO COH 901 335 or COH 901 571/3
6 * Author: Linus Walleij <linus.walleij@stericsson.com>
9 #ifndef __MACH_U300_GPIO_U300_H
10 #define __MACH_U300_GPIO_U300_H
13 * enum u300_gpio_variant - the type of U300 GPIO employed
15 enum u300_gpio_variant
{
17 U300_GPIO_COH901571_3_BS335
,
18 U300_GPIO_COH901571_3_BS365
,
22 * struct u300_gpio_platform - U300 GPIO platform data
23 * @variant: IP block variant
24 * @ports: number of GPIO block ports
25 * @gpio_base: first GPIO number for this block (use a free range)
26 * @gpio_irq_base: first GPIO IRQ number for this block (use a free range)
28 struct u300_gpio_platform
{
29 enum u300_gpio_variant variant
;
35 #endif /* __MACH_U300_GPIO_U300_H */