diff --git a/lk2nd/device/dts/msm8994/msm8992-lg-bullhead.dts b/lk2nd/device/dts/msm8994/msm8992-lg-bullhead.dts new file mode 100644 index 000000000..bf47b31fa --- /dev/null +++ b/lk2nd/device/dts/msm8994/msm8992-lg-bullhead.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + model = "LG Nexus 5X"; + qcom,msm-id = <251 0>, <252 0>; + qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>; + qcom,board-id = <0xb64 0>; +}; + +&lk2nd { + model = "LG Nexus 5X"; + compatible = "lg,bullhead"; +}; diff --git a/lk2nd/device/dts/msm8994/rules.mk b/lk2nd/device/dts/msm8994/rules.mk new file mode 100644 index 000000000..856beda8c --- /dev/null +++ b/lk2nd/device/dts/msm8994/rules.mk @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +LOCAL_DIR := $(GET_LOCAL_DIR) + +ADTBS += \ + $(LOCAL_DIR)/msm8992-lg-bullhead.dtb \ diff --git a/lk2nd/display/cont-splash/refresh.c b/lk2nd/display/cont-splash/refresh.c index fa8818918..31525dd82 100644 --- a/lk2nd/display/cont-splash/refresh.c +++ b/lk2nd/display/cont-splash/refresh.c @@ -40,6 +40,9 @@ static void mdp_cmd_signal_refresh(void) static void mdp_cmd_refresh_start(struct fbcon_config *fb) { +#if ENABLE_AUTOREFRESH + writel((BIT(31) | 1), MDP_PP_0_BASE + MDSS_MDP_REG_PP_AUTOREFRESH_CONFIG); +#else thread_t *thr; event_init(&refresh_event, false, EVENT_FLAG_AUTOUNSIGNAL); @@ -53,6 +56,7 @@ static void mdp_cmd_refresh_start(struct fbcon_config *fb) thread_resume(thr); fb->update_start = mdp_cmd_signal_refresh; +#endif } bool mdp_start_refresh(struct fbcon_config *fb) diff --git a/project/lk2nd-msm8994-bullhead.mk b/project/lk2nd-msm8994-bullhead.mk new file mode 100644 index 000000000..4bcb303ff --- /dev/null +++ b/project/lk2nd-msm8994-bullhead.mk @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: BSD-3-Clause +TARGET := msm8994 +include lk2nd/project/lk2nd.mk +DEFINES += ENABLE_AUTOREFRESH=1