Skip to content

Commit

Permalink
ARM: plat-nomadik: move NMK_GPIO_PER_CHIP into gpio-nomadik.h
Browse files Browse the repository at this point in the history
Move NMK_GPIO_PER_CHIP to gpio-nomadik.h and define it with a
shift operator.

Signed-off-by: Patrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Patrice Chotard authored and Linus Walleij committed Oct 28, 2012
1 parent 748a2b7 commit f64228e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions arch/arm/plat-nomadik/include/plat/gpio-nomadik.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
* 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 */
#define NMK_GPIO_DAT 0x00
#define NMK_GPIO_DATS 0x04
Expand Down
2 changes: 0 additions & 2 deletions drivers/pinctrl/pinctrl-nomadik.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
*/

#define NMK_GPIO_PER_CHIP 32

struct nmk_gpio_chip {
struct gpio_chip chip;
struct irq_domain *domain;
Expand Down

0 comments on commit f64228e

Please sign in to comment.