diff options
author | Keerthy <j-keerthy@ti.com> | 2014-08-22 10:01:02 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-08-29 03:28:35 -0400 |
commit | aa2293d82c29309d8399d41941add7af606a4fea (patch) | |
tree | ba237e011e4700c3c814723bc67bc44d588bbda0 /drivers/pinctrl/pinctrl-single.c | |
parent | 31320beaa3d3c5190e7db08144f37a2d519f6d6d (diff) |
pinctrl: single: AM437x: Add pinctrl compatibility
AM437x pinctrl definitions now differ from traditional 16 bit OMAP pin
ctrl definitions, in that all 32 bits are used to describe a single pin
Also the location of wakeupenable and event bits have changed.
Signed-off-by: Keerthy <j-keerthy@ti.com>
[nm@ti.com: minor updates]
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-single.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-single.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 598d600ac7e4..784de13facf3 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c | |||
@@ -1987,6 +1987,12 @@ static const struct pcs_soc_data pinctrl_single_dra7 = { | |||
1987 | .irq_status_mask = (1 << 25), /* WAKEUPEVENT */ | 1987 | .irq_status_mask = (1 << 25), /* WAKEUPEVENT */ |
1988 | }; | 1988 | }; |
1989 | 1989 | ||
1990 | static const struct pcs_soc_data pinctrl_single_am437x = { | ||
1991 | .flags = PCS_QUIRK_SHARED_IRQ, | ||
1992 | .irq_enable_mask = (1 << 29), /* OMAP_WAKEUP_EN */ | ||
1993 | .irq_status_mask = (1 << 30), /* OMAP_WAKEUP_EVENT */ | ||
1994 | }; | ||
1995 | |||
1990 | static const struct pcs_soc_data pinctrl_single = { | 1996 | static const struct pcs_soc_data pinctrl_single = { |
1991 | }; | 1997 | }; |
1992 | 1998 | ||
@@ -1999,6 +2005,7 @@ static struct of_device_id pcs_of_match[] = { | |||
1999 | { .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup }, | 2005 | { .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup }, |
2000 | { .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup }, | 2006 | { .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup }, |
2001 | { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 }, | 2007 | { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 }, |
2008 | { .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x }, | ||
2002 | { .compatible = "pinctrl-single", .data = &pinctrl_single }, | 2009 | { .compatible = "pinctrl-single", .data = &pinctrl_single }, |
2003 | { .compatible = "pinconf-single", .data = &pinconf_single }, | 2010 | { .compatible = "pinconf-single", .data = &pinconf_single }, |
2004 | { }, | 2011 | { }, |