From patchwork Tue Jun 26 02:30:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuyuki Kobayashi X-Patchwork-Id: 167291 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 85CDB1007D1 for ; Tue, 26 Jun 2012 12:30:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B51C728099; Tue, 26 Jun 2012 04:30:25 +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 zoGfQNnbnJZ1; Tue, 26 Jun 2012 04:30:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56C6C2808C; Tue, 26 Jun 2012 04:30:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 65BA52808C for ; Tue, 26 Jun 2012 04:30: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 9-pf1WEzg6o6 for ; Tue, 26 Jun 2012 04:30:19 +0200 (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 vrgw7.firstserver.ne.jp (vrgw7.firstserver.ne.jp [164.46.1.105]) by theia.denx.de (Postfix) with ESMTPS id B3BB828084 for ; Tue, 26 Jun 2012 04:30:17 +0200 (CEST) Received: from fvrsp21.firstserver.ne.jp (fvrsp21.firstserver.ne.jp [203.183.196.3]) by vrgw7.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id q5Q2UDhO006458; Tue, 26 Jun 2012 11:30:13 +0900 (envelope-from koba@kmckk.co.jp) Received: from 203.137.25.97 (203.137.25.97) by fvrsp21.firstserver.ne.jp (F-Secure/virusgw_smtp/407/fvrsp21.firstserver.ne.jp); Tue, 26 Jun 2012 11:30:13 +0900 (JST) X-Virus-Status: clean(F-Secure/virusgw_smtp/407/fvrsp21.firstserver.ne.jp) Received: from [192.168.1.110] (58-188-103-12f2.kns1.eonet.ne.jp [58.188.103.12]) (authenticated (0 bits)) by mail.kmckk.co.jp (8.14.3/8.11.3) with ESMTP id q5Q2UDHX011178; Tue, 26 Jun 2012 11:30:13 +0900 Message-ID: <4FE91EB8.6090407@kmckk.co.jp> Date: Tue, 26 Jun 2012 11:30:16 +0900 From: Tetsuyuki Kobayashi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: u-boot@lists.denx.de Cc: nobuhiro.iwamatsu.yj@renesas.com Subject: [U-Boot] [PATCH] arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch depends on Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board Tetsuyuki Kobayashi's arm: rmobile: kzm9g: Modify sdram area Adjust hardware setting in lowlevel_init.S. After this patch U-boot can boot Linux kernel (without DTB) on KZM-A9-GT board successfully. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/include/asm/arch-rmobile/sh73a0.h | 1 + board/kmc/kzm/lowlevel_init.S | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 07824ab..bb66d20 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -191,6 +191,7 @@ #define SMSTPCR3 (CPG_BASE + 0x013C) #define SMSTPCR4 (CPG_BASE + 0x0140) #define SMSTPCR5 (CPG_BASE + 0x0144) +#define CPGXXCR4 (CPG_BASE + 0x0150) #define SRCR0 (CPG_BASE + 0x80A0) #define SRCR1 (CPG_BASE + 0x80A8) #define SRCR2 (CPG_BASE + 0x80B0) diff --git a/board/kmc/kzm/lowlevel_init.S b/board/kmc/kzm/lowlevel_init.S index 5221611..be3d203 100644 --- a/board/kmc/kzm/lowlevel_init.S +++ b/board/kmc/kzm/lowlevel_init.S @@ -111,6 +111,7 @@ loop0: and_write32 LIFEC_SEC_SRC, 0xFFFFFFE7 + and_write32 SMSTPCR3,0xFFFF7FFF and_write32 SRCR3, 0xFFFF7FFF and_write32 SMSTPCR2,0xFFFBFFFF and_write32 SRCR2, 0xFFFBFFFF @@ -302,6 +303,8 @@ loop0: write32 FRQCRD, 0x00000B0B cmp_loop FRQCRD, 0x80000000, 0x00000000 + write32 CPGXXCR4, 0xfffffffc + bx lr .pool