From 433d2470e95370feea70afbff12fda905461ec6f Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Thu, 10 Jan 2019 23:01:24 +0900 Subject: [PATCH] [RAMEN9610-10736][9610][ERD] arm64: configs: Enable sleep gpio Change-Id: Id680941ed7f41a2135618e958958983742bee8ba Signed-off-by: Soomin Kim --- .../dts/exynos/exynos9610_gpio_config_macros.dtsi | 15 +++++++++++++++ arch/arm64/configs/erd9610_defconfig | 1 + 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos9610_gpio_config_macros.dtsi b/arch/arm64/boot/dts/exynos/exynos9610_gpio_config_macros.dtsi index aba0fb5d64ce..f5bae9616c7b 100644 --- a/arch/arm64/boot/dts/exynos/exynos9610_gpio_config_macros.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos9610_gpio_config_macros.dtsi @@ -58,6 +58,21 @@ samsung,pin-pud = ; \ } +#define PIN_OUT_PUD(_pin, _pud) \ + _pin { \ + samsung,pins = #_pin; \ + samsung,pin-function = <1>; \ + samsung,pin-pud = ; \ + } + +#define PIN_OUT_DAT(_pin, _val) \ + _pin { \ + samsung,pins = #_pin; \ + samsung,pin-function = <1>; \ + samsung,pin-val = <_val>; \ + samsung,pin-pud = <0>; \ + } + #define PIN_FUNC_PUD(_pin, _pud) \ _pin { \ samsung,pins = #_pin; \ diff --git a/arch/arm64/configs/erd9610_defconfig b/arch/arm64/configs/erd9610_defconfig index 4f692427dae2..146353398f1b 100644 --- a/arch/arm64/configs/erd9610_defconfig +++ b/arch/arm64/configs/erd9610_defconfig @@ -516,6 +516,7 @@ CONFIG_GNSS_PMUCAL=y CONFIG_SHUB_PMUCAL=y CONFIG_ECT=y CONFIG_ECT_DUMP=y +CONFIG_EXYNOS_SLEEP_GPIO=y CONFIG_EXYNOS_RGT=y CONFIG_EXYNOS_CORESIGHT=y CONFIG_EXYNOS_DVFS_MANAGER=y -- 2.20.1