diff options
author | John Crispin <john@openwrt.org> | 2013-09-17 21:46:10 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-09-17 21:46:10 +0000 |
commit | 1878a3d6ab7e4296671eaa827623cc874d1f12c5 (patch) | |
tree | 895fea96a0462bc19622aed65e9e179d22d61069 /target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch | |
parent | cd668944ef699762d4269ad71263ffe99c93ea8c (diff) | |
download | mtk-20170518-1878a3d6ab7e4296671eaa827623cc874d1f12c5.zip mtk-20170518-1878a3d6ab7e4296671eaa827623cc874d1f12c5.tar.gz mtk-20170518-1878a3d6ab7e4296671eaa827623cc874d1f12c5.tar.bz2 |
lantiq: add v3.10 patches
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38031
Diffstat (limited to 'target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch b/target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch deleted file mode 100644 index c83dbd8..0000000 --- a/target/linux/lantiq/patches-3.8/0005-PINCTRL-lantiq-pinconf-uses-port-instead-of-pin.patch +++ /dev/null @@ -1,87 +0,0 @@ -From 5e19578b807e7ef6e7baf05fb1f69433d5e74667 Mon Sep 17 00:00:00 2001 -From: John Crispin <blogic@openwrt.org> -Date: Fri, 30 Nov 2012 21:11:22 +0100 -Subject: [PATCH 05/40] PINCTRL: lantiq: pinconf uses port instead of pin - -The XWAY pinctrl driver invalidly uses the port and not the pin number to work -out the registeres and bits to be set for the opendrain and pullup/down -resistors. - -Signed-off-by: John Crispin <blogic@openwrt.org> ---- - drivers/pinctrl/pinctrl-xway.c | 28 ++++++++++++++-------------- - 1 file changed, 14 insertions(+), 14 deletions(-) - ---- a/drivers/pinctrl/pinctrl-xway.c -+++ b/drivers/pinctrl/pinctrl-xway.c -@@ -441,17 +441,17 @@ static int xway_pinconf_get(struct pinct - if (port == PORT3) - reg = GPIO3_OD; - else -- reg = GPIO_OD(port); -+ reg = GPIO_OD(pin); - *config = LTQ_PINCONF_PACK(param, -- !!gpio_getbit(info->membase[0], reg, PORT_PIN(port))); -+ !!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); - break; - - case LTQ_PINCONF_PARAM_PULL: - if (port == PORT3) - reg = GPIO3_PUDEN; - else -- reg = GPIO_PUDEN(port); -- if (!gpio_getbit(info->membase[0], reg, PORT_PIN(port))) { -+ reg = GPIO_PUDEN(pin); -+ if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { - *config = LTQ_PINCONF_PACK(param, 0); - break; - } -@@ -459,8 +459,8 @@ static int xway_pinconf_get(struct pinct - if (port == PORT3) - reg = GPIO3_PUDSEL; - else -- reg = GPIO_PUDSEL(port); -- if (!gpio_getbit(info->membase[0], reg, PORT_PIN(port))) -+ reg = GPIO_PUDSEL(pin); -+ if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) - *config = LTQ_PINCONF_PACK(param, 2); - else - *config = LTQ_PINCONF_PACK(param, 1); -@@ -488,29 +488,29 @@ static int xway_pinconf_set(struct pinct - if (port == PORT3) - reg = GPIO3_OD; - else -- reg = GPIO_OD(port); -- gpio_setbit(info->membase[0], reg, PORT_PIN(port)); -+ reg = GPIO_OD(pin); -+ gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); - break; - - case LTQ_PINCONF_PARAM_PULL: - if (port == PORT3) - reg = GPIO3_PUDEN; - else -- reg = GPIO_PUDEN(port); -+ reg = GPIO_PUDEN(pin); - if (arg == 0) { -- gpio_clearbit(info->membase[0], reg, PORT_PIN(port)); -+ gpio_clearbit(info->membase[0], reg, PORT_PIN(pin)); - break; - } -- gpio_setbit(info->membase[0], reg, PORT_PIN(port)); -+ gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); - - if (port == PORT3) - reg = GPIO3_PUDSEL; - else -- reg = GPIO_PUDSEL(port); -+ reg = GPIO_PUDSEL(pin); - if (arg == 1) -- gpio_clearbit(info->membase[0], reg, PORT_PIN(port)); -+ gpio_clearbit(info->membase[0], reg, PORT_PIN(pin)); - else if (arg == 2) -- gpio_setbit(info->membase[0], reg, PORT_PIN(port)); -+ gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); - else - dev_err(pctldev->dev, "Invalid pull value %d\n", arg); - break; |