mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-27 13:33:40 +00:00
e9986a4fa7
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
18 lines
497 B
C
18 lines
497 B
C
/*
|
|
* Copyright (C) 2017 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_GPIO_UNIPHIER_H
|
|
#define _DT_BINDINGS_GPIO_UNIPHIER_H
|
|
|
|
#define UNIPHIER_GPIO_LINES_PER_BANK 8
|
|
|
|
#define UNIPHIER_GPIO_IRQ_OFFSET ((UNIPHIER_GPIO_LINES_PER_BANK) * 15)
|
|
|
|
#define UNIPHIER_GPIO_PORT(bank, line) \
|
|
((UNIPHIER_GPIO_LINES_PER_BANK) * (bank) + (line))
|
|
|
|
#define UNIPHIER_GPIO_IRQ(n) ((UNIPHIER_GPIO_IRQ_OFFSET) + (n))
|
|
|
|
#endif /* _DT_BINDINGS_GPIO_UNIPHIER_H */
|