1 /* 1 /* 2 * Copyright (C) 2017 Socionext Inc. 2 * Copyright (C) 2017 Socionext Inc. 3 * Author: Masahiro Yamada <yamada.masahiro@ 3 * Author: Masahiro Yamada <yamada.masahiro@socionext.com> 4 */ 4 */ 5 5 6 #ifndef _DT_BINDINGS_GPIO_UNIPHIER_H 6 #ifndef _DT_BINDINGS_GPIO_UNIPHIER_H 7 #define _DT_BINDINGS_GPIO_UNIPHIER_H 7 #define _DT_BINDINGS_GPIO_UNIPHIER_H 8 8 9 #define UNIPHIER_GPIO_LINES_PER_BANK 8 9 #define UNIPHIER_GPIO_LINES_PER_BANK 8 10 10 11 #define UNIPHIER_GPIO_IRQ_OFFSET ((UNIP 11 #define UNIPHIER_GPIO_IRQ_OFFSET ((UNIPHIER_GPIO_LINES_PER_BANK) * 15) 12 12 13 #define UNIPHIER_GPIO_PORT(bank, line) \ 13 #define UNIPHIER_GPIO_PORT(bank, line) \ 14 ((UNIPHIER_GPIO_LINES_ 14 ((UNIPHIER_GPIO_LINES_PER_BANK) * (bank) + (line)) 15 15 16 #define UNIPHIER_GPIO_IRQ(n) ((UNIP 16 #define UNIPHIER_GPIO_IRQ(n) ((UNIPHIER_GPIO_IRQ_OFFSET) + (n)) 17 17 18 #endif /* _DT_BINDINGS_GPIO_UNIPHIER_H */ 18 #endif /* _DT_BINDINGS_GPIO_UNIPHIER_H */ 19 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.