summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2014-02-18 12:49:32 +0800
committerLiu Ying <Ying.Liu@freescale.com>2014-02-19 18:36:15 +0800
commit66a466d52cedad06e68fe8c37238b5b8b65413b5 (patch)
tree79de9b120a36dfba9d7ae4947482d16143bb8917 /arch
parentf0fadbcb791fcfb86f53be10477bf74c985841f0 (diff)
ENGR00298052-7 ARM: imx6q: remove function imx6q_lvds_cabc_init()
This patch removes the function imx6q_lvds_cabc_init() from the machine layer since we have a dedicated Hannstar CABC driver to control the CABC feature. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit b0d2154a9c63b2beba774e46b90ec3d55609c672)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/mach-imx6q.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index f24c231ce38a..8dbd402ec3b5 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2013 Freescale Semiconductor, Inc.
+ * Copyright 2011-2014 Freescale Semiconductor, Inc.
* Copyright 2011 Linaro Ltd.
*
* The code contained herein is licensed under the GNU General Public
@@ -231,38 +231,6 @@ static void __init imx6q_csi_mux_init(void)
}
}
-/*
- * Disable Hannstar LVDS panel CABC function.
- * This function turns the panel's backlight density automatically
- * according to the content shown on the panel which may cause
- * annoying unstable backlight issue.
- */
-static void __init imx6q_lvds_cabc_init(void)
-{
- struct device_node *np = NULL;
- int ret, lvds0_gpio, lvds1_gpio;
-
- np = of_find_node_by_name(NULL, "lvds_cabc_ctrl");
- if (!np)
- return;
-
- lvds0_gpio = of_get_named_gpio(np, "lvds0-gpios", 0);
- if (gpio_is_valid(lvds0_gpio)) {
- ret = gpio_request_one(lvds0_gpio, GPIOF_OUT_INIT_LOW,
- "LVDS0 CABC enable");
- if (ret)
- pr_warn("failed to request LVDS0 CABC gpio\n");
- }
-
- lvds1_gpio = of_get_named_gpio(np, "lvds1-gpios", 0);
- if (gpio_is_valid(lvds1_gpio)) {
- ret = gpio_request_one(lvds1_gpio, GPIOF_OUT_INIT_LOW,
- "LVDS1 CABC enable");
- if (ret)
- pr_warn("failed to request LVDS1 CABC gpio\n");
- }
-}
-
#define OCOTP_MACn(n) (0x00000620 + (n) * 0x10)
void __init imx6_enet_mac_init(const char *compatible)
{
@@ -352,7 +320,6 @@ static void __init imx6q_init_machine(void)
imx_anatop_init();
imx6_pm_init();
imx6q_csi_mux_init();
- imx6q_lvds_cabc_init();
}
#define OCOTP_CFG3 0x440