
From: zhangguijiang <zhangguijiang@huawei.com> ascend inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I4JMQA ---------- Hi everyone, This patch register a setup function for ascend gpio driver. With this patch, we can enable ascend gpio function independently, so that we can turn this feature on or off through bootargs. Signed-off-by: zhangguijiang <zhangguijiang@huawei.com> Reviewed-by: Ding Tianhong <dingtianhong@huawei.com> Reviewed-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/gpio/gpio-dwapb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 2cdbb4a11075f..53eb5c506fea0 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -71,6 +71,14 @@ bool enable_ascend_mini_gpio_dwapb; bool enable_ascend_gpio_dwapb; struct dwapb_gpio; +static int __init enable_ascend_gpio_dwapb_setup(char *str) +{ + enable_ascend_gpio_dwapb = true; + + return 1; +} +__setup("enable_ascend_gpio_dwapb", enable_ascend_gpio_dwapb_setup); + #ifdef CONFIG_PM_SLEEP /* Store GPIO context across system-wide suspend/resume transitions */ struct dwapb_context { -- 2.25.1