From patchwork Thu Apr 27 11:44:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: eric.gao@rock-chips.com X-Patchwork-Id: 755995 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wDFfM54Scz9sNB for ; Thu, 27 Apr 2017 21:51:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 43AE1C21C67; Thu, 27 Apr 2017 11:47:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 411BAC21C5E; Thu, 27 Apr 2017 11:46:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 82F7FC21C5D; Thu, 27 Apr 2017 11:46:06 +0000 (UTC) Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.99.130]) by lists.denx.de (Postfix) with ESMTPS id CCB88C21C80 for ; Thu, 27 Apr 2017 11:46:00 +0000 (UTC) Received: from eric.gao?rock-chips.com (unknown [192.168.165.141]) by regular1.263xmail.com (Postfix) with ESMTP id 8FDA5B1AD; Thu, 27 Apr 2017 19:45:40 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from smtp.263.net (va-smtp01.263.net [54.88.144.211]) by smtp.263.net (Postfix) with ESMTP id 798253DD; Thu, 27 Apr 2017 19:45:40 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 82DD09F603; Thu, 27 Apr 2017 19:45:25 +0800 (CST) X-RL-SENDER: eric.gao@rock-chips.com X-FST-TO: sjg@chromium.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: eric.gao@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: eric.gao@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 29595WV3K2G; Thu, 27 Apr 2017 19:45:26 +0800 (CST) From: Eric Gao To: sjg@chromium.org Date: Thu, 27 Apr 2017 19:44:00 +0800 Message-Id: <1493293443-22485-8-git-send-email-eric.gao@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493293443-22485-1-git-send-email-eric.gao@rock-chips.com> References: <1493293443-22485-1-git-send-email-eric.gao@rock-chips.com> Cc: u-boot@lists.denx.de, eric.gao@rock-chips.com Subject: [U-Boot] [PATCH v5 07/10] rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Eric Gao --- Changes in v5: None Changes in v4: None Changes in v3: -Add ret value in debug message. Changes in v2: -Add pwm0 pinctrl init for lcd backlight. board/rockchip/evb_rk3399/evb-rk3399.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index 362fa0b..4753a76 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -28,6 +28,13 @@ int board_init(void) goto out; } + /* Enable pwm0 for panel backlight */ + ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM0); + if (ret) { + debug("%s PWM0 pinctrl init fail! (ret=%d)\n", __func__, ret); + goto out; + } + ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM2); if (ret) { debug("%s PWM2 pinctrl init fail!\n", __func__);