Commit f64228ee authored by Patrice Chotard's avatar Patrice Chotard Committed by Linus Walleij

ARM: plat-nomadik: move NMK_GPIO_PER_CHIP into gpio-nomadik.h

Move NMK_GPIO_PER_CHIP to gpio-nomadik.h and define it with a
shift operator.
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 748a2b72
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
* the "gpio" namespace for generic and cross-machine functions * the "gpio" namespace for generic and cross-machine functions
*/ */
#define GPIO_BLOCK_SHIFT 5
#define NMK_GPIO_PER_CHIP (1 << GPIO_BLOCK_SHIFT)
/* Register in the logic block */ /* Register in the logic block */
#define NMK_GPIO_DAT 0x00 #define NMK_GPIO_DAT 0x00
#define NMK_GPIO_DATS 0x04 #define NMK_GPIO_DATS 0x04
......
...@@ -60,8 +60,6 @@ static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) {} ...@@ -60,8 +60,6 @@ static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) {}
* Symbols in this file are called "nmk_gpio" for "nomadik gpio" * Symbols in this file are called "nmk_gpio" for "nomadik gpio"
*/ */
#define NMK_GPIO_PER_CHIP 32
struct nmk_gpio_chip { struct nmk_gpio_chip {
struct gpio_chip chip; struct gpio_chip chip;
struct irq_domain *domain; struct irq_domain *domain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment