From patchwork Tue Dec 11 11:01:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 205178 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 79B732C0081 for ; Tue, 11 Dec 2012 22:19:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6FC574A189; Tue, 11 Dec 2012 12:19:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zHE2SH-N6miH; Tue, 11 Dec 2012 12:19:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BE5434A150; Tue, 11 Dec 2012 12:19:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 48D8F4A09C for ; Tue, 11 Dec 2012 11:38:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4prnj7Geqt3p for ; Tue, 11 Dec 2012 11:38:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by theia.denx.de (Postfix) with ESMTP id 0C9F34A027 for ; Tue, 11 Dec 2012 11:38:44 +0100 (CET) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEV00C8L48GI9Z0@mailout3.samsung.com> for u-boot@lists.denx.de; Tue, 11 Dec 2012 19:38:41 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1C.F0.01231.13D07C05; Tue, 11 Dec 2012 19:38:41 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-6c-50c70d312e7c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7B.F0.01231.13D07C05; Tue, 11 Dec 2012 19:38:41 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MEV00L474894C70@mmp2.samsung.com> for u-boot@lists.denx.de; Tue, 11 Dec 2012 19:38:41 +0900 (KST) From: Ajay Kumar To: u-boot@lists.denx.de Date: Tue, 11 Dec 2012 16:31:23 +0530 Message-id: <1355223686-13718-2-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1355223686-13718-1-git-send-email-ajaykumar.rs@samsung.com> References: <1355223686-13718-1-git-send-email-ajaykumar.rs@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkVteQ93iAwdMJZhZv93ayOzB6nL2z gzGAMYrLJiU1J7MstUjfLoErY3PHf9aCK3wVX7fsYm9gXMLTxcjJISFgInFy825GCFtM4sK9 9WxdjFwcQgJLGSWmzF/KBFPU9ewrE0RiOqPE7KUL2CGcBUwSG7qOM4NUsQloS2ybfpMFxBYR kJD41X8VbCyzQJhE18G9YLawgIHEyqsPWEFsFgFVickb9oJt4BXwkOi88xNqm4JE67JD7CA2 p4CnxJX+M2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NyKlJ/c8PPrm75rEL4X8348ubth+x/1GWzbbzsnXbv5T 3JyyyfgU55xL4uflHr7Ki/15+/INwfMzliqWsG+6+WJJq7Mp26/y9KdqnmYdbiGzpgq739v/ bYrM3kOywXbT+1X6j/td/7J6xzY1oUcWnV6PjqYbOD7zOW20UImlOCPRUIu5qDgRABkGJrif AgAA X-CFilter-Loop: Reflected X-Mailman-Approved-At: Tue, 11 Dec 2012 12:19:07 +0100 Cc: inki.dae@samsung.com, dh09.lee@samsung.com Subject: [U-Boot] [PATCH 2/5] EXYNOS5: Add pinmux for LCD X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch adds pinmux configuration for backlight, LCD reset and HPD for DP panel on Exynos5 SMDK. Signed-off-by: Ajay Kumar --- arch/arm/cpu/armv7/exynos/pinmux.c | 20 ++++++++++++++++++++ arch/arm/include/asm/arch-exynos/periph.h | 1 + 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c index f02f441..84f52ea 100644 --- a/arch/arm/cpu/armv7/exynos/pinmux.c +++ b/arch/arm/cpu/armv7/exynos/pinmux.c @@ -284,6 +284,23 @@ void exynos5_spi_config(int peripheral) } } +void exynos5_lcd_config() +{ + struct exynos5_gpio_part1 *gpio1 = + (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1(); + + /* For Backlight */ + s5p_gpio_cfg_pin(&gpio1->b2, 0, GPIO_OUTPUT); + s5p_gpio_set_value(&gpio1->b2, 0, 1); + + /* LCD power on */ + s5p_gpio_cfg_pin(&gpio1->x1, 5, GPIO_OUTPUT); + s5p_gpio_set_value(&gpio1->x1, 5, 1); + + /* Set Hotplug detect for DP */ + s5p_gpio_cfg_pin(&gpio1->x0, 7, GPIO_FUNC(0x3)); +} + static int exynos5_pinmux_config(int peripheral, int flags) { switch (peripheral) { @@ -321,6 +338,9 @@ static int exynos5_pinmux_config(int peripheral, int flags) case PERIPH_ID_SPI4: exynos5_spi_config(peripheral); break; + case PERIPH_ID_LCD: + exynos5_lcd_config(); + break; default: debug("%s: invalid peripheral %d", __func__, peripheral); return -1; diff --git a/arch/arm/include/asm/arch-exynos/periph.h b/arch/arm/include/asm/arch-exynos/periph.h index 13abd2d..446f5c9 100644 --- a/arch/arm/include/asm/arch-exynos/periph.h +++ b/arch/arm/include/asm/arch-exynos/periph.h @@ -54,6 +54,7 @@ enum periph_id { PERIPH_ID_UART1, PERIPH_ID_UART2, PERIPH_ID_UART3, + PERIPH_ID_LCD, PERIPH_ID_COUNT, PERIPH_ID_NONE = -1,