diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-09-28 06:19:11 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-04-23 05:06:08 -0400 |
commit | ebc6178dab43b38042f0e089526bad49081870e5 (patch) | |
tree | 394a03b4d884ec7805424a7d12be0672b07ebe30 /arch/arm/plat-nomadik/include/plat | |
parent | 6c42ad1cf4d7f22469eaecb2eee3b6442169d732 (diff) |
gpio/nomadik: support low EMI mode
Low EMI (Electro-Magnetic Interference) mode means lower slew
rate on the signals. The Nomadik GPIO controller supports
this so create an interface to enable it.
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/plat-nomadik/include/plat')
-rw-r--r-- | arch/arm/plat-nomadik/include/plat/gpio-nomadik.h | 1 | ||||
-rw-r--r-- | arch/arm/plat-nomadik/include/plat/pincfg.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h b/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h index 9605bf227df9..3e8b7f16fb78 100644 --- a/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h +++ b/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #define NMK_GPIO_SLPC 0x1c | 29 | #define NMK_GPIO_SLPC 0x1c |
30 | #define NMK_GPIO_AFSLA 0x20 | 30 | #define NMK_GPIO_AFSLA 0x20 |
31 | #define NMK_GPIO_AFSLB 0x24 | 31 | #define NMK_GPIO_AFSLB 0x24 |
32 | #define NMK_GPIO_LOWEMI 0x28 | ||
32 | 33 | ||
33 | #define NMK_GPIO_RIMSC 0x40 | 34 | #define NMK_GPIO_RIMSC 0x40 |
34 | #define NMK_GPIO_FIMSC 0x44 | 35 | #define NMK_GPIO_FIMSC 0x44 |
diff --git a/arch/arm/plat-nomadik/include/plat/pincfg.h b/arch/arm/plat-nomadik/include/plat/pincfg.h index 22cb97d2d8ad..da6b1e35e171 100644 --- a/arch/arm/plat-nomadik/include/plat/pincfg.h +++ b/arch/arm/plat-nomadik/include/plat/pincfg.h | |||
@@ -105,6 +105,12 @@ typedef unsigned long pin_cfg_t; | |||
105 | #define PIN_SLPM_VAL_LOW ((1 + 0) << PIN_SLPM_VAL_SHIFT) | 105 | #define PIN_SLPM_VAL_LOW ((1 + 0) << PIN_SLPM_VAL_SHIFT) |
106 | #define PIN_SLPM_VAL_HIGH ((1 + 1) << PIN_SLPM_VAL_SHIFT) | 106 | #define PIN_SLPM_VAL_HIGH ((1 + 1) << PIN_SLPM_VAL_SHIFT) |
107 | 107 | ||
108 | #define PIN_LOWEMI_SHIFT 25 | ||
109 | #define PIN_LOWEMI_MASK (0x1 << PIN_LOWEMI_SHIFT) | ||
110 | #define PIN_LOWEMI(x) (((x) & PIN_LOWEMI_MASK) >> PIN_LOWEMI_SHIFT) | ||
111 | #define PIN_LOWEMI_DISABLED (0 << PIN_LOWEMI_SHIFT) | ||
112 | #define PIN_LOWEMI_ENABLED (1 << PIN_LOWEMI_SHIFT) | ||
113 | |||
108 | /* Shortcuts. Use these instead of separate DIR, PULL, and VAL. */ | 114 | /* Shortcuts. Use these instead of separate DIR, PULL, and VAL. */ |
109 | #define PIN_INPUT_PULLDOWN (PIN_DIR_INPUT | PIN_PULL_DOWN) | 115 | #define PIN_INPUT_PULLDOWN (PIN_DIR_INPUT | PIN_PULL_DOWN) |
110 | #define PIN_INPUT_PULLUP (PIN_DIR_INPUT | PIN_PULL_UP) | 116 | #define PIN_INPUT_PULLUP (PIN_DIR_INPUT | PIN_PULL_UP) |