From 98845af7200023d1f410ba8d39b847e236aec627 Mon Sep 17 00:00:00 2001 From: zhangguijiang Date: Tue, 7 Dec 2021 16:27:37 +0800 Subject: [PATCH] GPIO : support ascend_gpio_dwapb_enable switch 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 Reviewed-by: Ding Tianhong Reviewed-by: Weilong Chen Signed-off-by: Yang Yingliang --- 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 2cdbb4a11075..53eb5c506fea 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 { -- GitLab