提交 98845af7 编写于 作者: Z zhangguijiang 提交者: Yang Yingliang

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: Nzhangguijiang <zhangguijiang@huawei.com>
Reviewed-by: NDing Tianhong <dingtianhong@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 c16f200c
...@@ -71,6 +71,14 @@ bool enable_ascend_mini_gpio_dwapb; ...@@ -71,6 +71,14 @@ bool enable_ascend_mini_gpio_dwapb;
bool enable_ascend_gpio_dwapb; bool enable_ascend_gpio_dwapb;
struct dwapb_gpio; 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 #ifdef CONFIG_PM_SLEEP
/* Store GPIO context across system-wide suspend/resume transitions */ /* Store GPIO context across system-wide suspend/resume transitions */
struct dwapb_context { struct dwapb_context {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册