From patchwork Thu Jul 5 11:43:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuyuki Kobayashi X-Patchwork-Id: 169129 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 278D22C00E7 for ; Thu, 5 Jul 2012 21:44:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9ADA5280AA; Thu, 5 Jul 2012 13:44:05 +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 DDALl1mY5SDz; Thu, 5 Jul 2012 13:44:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 19B1C280AB; Thu, 5 Jul 2012 13:44:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F2D32809B for ; Thu, 5 Jul 2012 13:43:58 +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 NBrI+ssmpv2v for ; Thu, 5 Jul 2012 13:43:54 +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 vrgw3.firstserver.ne.jp (vrgw3.firstserver.ne.jp [164.46.1.46]) by theia.denx.de (Postfix) with ESMTPS id F311528096 for ; Thu, 5 Jul 2012 13:43:52 +0200 (CEST) Received: from fvrsp25.firstserver.ne.jp (fvrsp25.firstserver.ne.jp [203.183.16.3]) by vrgw3.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id q65BhmL7000732; Thu, 5 Jul 2012 20:43:48 +0900 (envelope-from koba@kmckk.co.jp) Received: from 203.137.25.97 (203.137.25.97) by fvrsp25.firstserver.ne.jp (F-Secure/virusgw_smtp/407/fvrsp25.firstserver.ne.jp); Thu, 05 Jul 2012 20:43:48 +0900 (JST) X-Virus-Status: clean(F-Secure/virusgw_smtp/407/fvrsp25.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 q65BhmEg020284; Thu, 5 Jul 2012 20:43:48 +0900 Message-ID: <4FF57DF4.1020501@kmckk.co.jp> Date: Thu, 05 Jul 2012 20:43:48 +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: Nobuhiro Iwamatsu References: <4FE91EB8.6090407@kmckk.co.jp> <4FF57C69.5020704@kmckk.co.jp> In-Reply-To: <4FF57C69.5020704@kmckk.co.jp> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/3] arm: rmobile: kzm9g: Adjust low level hardware setting 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 Adjust low level hardware setting in s_init. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/include/asm/arch-rmobile/sh73a0.h | 4 +++- board/kmc/kzm9g/kzm9g.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) -- 1.7.9.5 diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 605dd44..ad59be7 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -229,7 +229,9 @@ struct sh73a0_sbsc_cpg { volatile u32 smstpcr3; volatile u32 smstpcr4; volatile u32 smstpcr5; - volatile u32 dummy11[10]; /* 0x148 .. 0x16c */ + volatile u32 dummy11[2]; /* 0x148 .. 0x14c */ + volatile u32 cpgxxcs4; + volatile u32 dummy12[7]; /* 0x154 .. 0x16c */ volatile u32 dvfscr2; volatile u32 dvfscr3; volatile u32 dvfscr4; diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index dea62d8..ebb2480 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -163,6 +163,7 @@ void s_init(void) #define LIFEC_SEC_SRC_BIT (1 < 15) writel(readl(LIFEC_SEC_SRC) & ~LIFEC_SEC_SRC_BIT, LIFEC_SEC_SRC); + clrbits_le32(&cpg->smstpcr3, (1 << 15)); clrbits_le32(&cpg_srcr->srcr3, (1 << 15)); clrbits_le32(&cpg->smstpcr2, (1 << 18)); clrbits_le32(&cpg_srcr->srcr2, (1 << 18)); @@ -266,6 +267,7 @@ void s_init(void) writel(0x00000b0b, &cpg->frqcrd); cmp_loop(&cpg->frqcrd, 0x80000000, 0x0); + writel(0xfffffffc, &cpg->cpgxxcs4); } int board_early_init_f(void)