From patchwork Fri Jun 7 10:56:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 249665 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 B6A642C007A for ; Fri, 7 Jun 2013 21:33:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 923F54A039; Fri, 7 Jun 2013 13:33:29 +0200 (CEST) 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 IXqoA8yW5D+P; Fri, 7 Jun 2013 13:33:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A47D64A02E; Fri, 7 Jun 2013 13:33:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0B63A4A02E for ; Fri, 7 Jun 2013 13:33:21 +0200 (CEST) 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 4su1JclJ9e2h for ; Fri, 7 Jun 2013 13:33:20 +0200 (CEST) X-Greylist: delayed 1345 seconds by postgrey-1.27 at theia; Fri, 07 Jun 2013 13:33:12 CEST 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 mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by theia.denx.de (Postfix) with ESMTPS id 8121C4A02D for ; Fri, 7 Jun 2013 13:33:12 +0200 (CEST) Received: by mail-pb0-f42.google.com with SMTP id un1so417891pbc.1 for ; Fri, 07 Jun 2013 04:33:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=dzWh9JfT0jrJm7zWOuimQ/hY+oY+iQsFhTBM85n5QdM=; b=Cnh9TQTJYHj7NKUdFdDzXnIvPs/Rw2y8f2BoAeB+fOdgEQvAKeDwrjr/VAL2X9/HAw FcnVwzDFL4bP/bWVbAXYmKDxNZEY85AOPi/PPQBS4E0XJykJxlTU4XPIwOCszAZtLd99 7qNhJrSqO4IplkSd5oLO2p/zmlFifp8NHXLWaN8Gvydixzgeb3J6Ii/ltGJk2K8qiw/C Q7FxsBk10IG5c9ibnfEV0+PVajdVb5o6tx41035Hrb0Cryw22QA6FhdOwD4tEviQYjhv 2hlAZPNyS39vg3fH432w/v+2jvXtni1r4C4CRfhKHH8kU9Enraa6hsg13f8v5haib4mA URTg== X-Received: by 10.66.254.131 with SMTP id ai3mr2248834pad.54.1370603445931; Fri, 07 Jun 2013 04:10:45 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id vv6sm2701272pab.6.2013.06.07.04.10.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 04:10:45 -0700 (PDT) From: Tushar Behera To: u-boot@lists.denx.de Date: Fri, 7 Jun 2013 16:26:22 +0530 Message-Id: <1370602582-6332-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370602582-6332-1-git-send-email-tushar.behera@linaro.org> References: <1370602582-6332-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQkCb1layt1LdeTU5ftVk+6NHA4gCpMUCyHdCa+1bfVGmybnmzziKVLuwTyAVu/mrkfO9RsV Cc: k.chander@samsung.com, patches@linaro.org Subject: [U-Boot] [PATCH] Origen: Set FIMD as the default display path 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 On EXYNOS4210, there are three paths for display data to be processed, namely MIE, MDNIE and FIMD. On Origen board, FIMD display controller is used. Signed-off-by: Tushar Behera --- This patch is rebased on master branch of u-boot-samsung tree. board/samsung/origen/lowlevel_init.S | 13 +++++++++++++ board/samsung/origen/origen_setup.h | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/board/samsung/origen/lowlevel_init.S b/board/samsung/origen/lowlevel_init.S index be9d418..a7ea680 100644 --- a/board/samsung/origen/lowlevel_init.S +++ b/board/samsung/origen/lowlevel_init.S @@ -89,6 +89,7 @@ lowlevel_init: bl uart_asm_init bl arch_cpu_init bl tzpc_init + bl display_init pop {pc} wakeup_reset: @@ -96,6 +97,7 @@ wakeup_reset: bl mem_ctrl_asm_init bl arch_cpu_init bl tzpc_init + bl display_init exit_wakeup: /* Load return address and jump to kernel */ @@ -355,3 +357,14 @@ uart_asm_init: nop nop +/* Setting default display path to FIMD */ +display_init: + push {lr} + ldr r0, =EXYNOS4_SYSREG_BASE + + /* DISPLAY_CONTROL */ + ldr r1, =DISPLAY_CONTROL_VAL + ldr r2, =DISPLAY_CONTROL_OFFSET + str r1, [r0, r2] + + pop {pc} diff --git a/board/samsung/origen/origen_setup.h b/board/samsung/origen/origen_setup.h index 926a4cc..b0e1bc2 100644 --- a/board/samsung/origen/origen_setup.h +++ b/board/samsung/origen/origen_setup.h @@ -83,6 +83,8 @@ #define VPLL_CON0_OFFSET 0xC120 #define VPLL_CON1_OFFSET 0xC124 +#define DISPLAY_CONTROL_OFFSET 0x210 + /* DMC: DRAM Controllor Register offsets */ #define DMC_CONCONTROL 0x00 #define DMC_MEMCONTROL 0x04 @@ -485,6 +487,11 @@ | (VPLL_MRR << 24) \ | (VPLL_MFR << 16) \ | (VPLL_K << 0)) + +/* DISPLAY_CONTROL */ +#define FIMDBYPASS_LBLK0 0x1 +#define DISPLAY_CONTROL_VAL (FIMDBYPASS_LBLK0 << 1) + /* * UART GPIO_A0/GPIO_A1 Control Register Value * 0x2: UART Function