All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tetsuyuki Kobayshi <koba@kmckk.co.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/6] arm: rmobile: kzm9g: Adjust low level hardware setting
Date: Mon,  9 Jul 2012 20:06:56 +0900	[thread overview]
Message-ID: <1341832020-28548-3-git-send-email-koba@kmckk.co.jp> (raw)
In-Reply-To: <1341832020-28548-1-git-send-email-koba@kmckk.co.jp>

From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Adjust low level hardware setting in s_init.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
Changes for v2:
 - No change. Just rebased.
Changes for v3:
 - No change.

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

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 8d7c61a..3716483 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)
-- 
1.7.9.5

  parent reply	other threads:[~2012-07-09 11:06 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26  2:30 [U-Boot] [PATCH] arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S Tetsuyuki Kobayashi
2012-06-26 21:22 ` Albert ARIBAUD
2012-06-27  7:56   ` Tetsuyuki Kobayashi
2012-07-05  7:02 ` Nobuhiro Iwamatsu
2012-07-05 11:37   ` [U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel Tetsuyuki Kobayashi
2012-07-05 11:43     ` [U-Boot] [PATCH 1/3] arm: rmobile: kzm9g: Modify sdram area Tetsuyuki Kobayashi
2012-07-05 11:43     ` [U-Boot] [PATCH 2/3] arm: rmobile: kzm9g: Adjust low level hardware setting Tetsuyuki Kobayashi
2012-07-05 11:43     ` [U-Boot] [PATCH 3/3] arm: rmobile: kzm9g: change prompt to board specific Tetsuyuki Kobayashi
2012-07-06  0:12     ` [U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel Nobuhiro Iwamatsu
2012-07-06  7:48       ` Tetsuyuki Kobayashi
2012-07-06 13:46         ` Albert ARIBAUD
2012-07-07 10:58           ` Tetsuyuki Kobayashi
2012-07-07 11:23             ` [U-Boot] [PATCH v2 0/5] " Tetsuyuki Kobayashi
2012-07-07 11:30               ` [U-Boot] [PATCH v2 1/5] arm: rmobile: kzm9g: Modify sdram area Tetsuyuki Kobayashi
2012-07-07 11:31               ` [U-Boot] [PATCH v2 2/5] arm: rmobile: kzm9g: Adjust low level hardware setting Tetsuyuki Kobayashi
2012-07-07 11:31               ` [U-Boot] [PATCH v2 3/5] arm: rmobile: kzm9g: change prompt to board specific Tetsuyuki Kobayashi
2012-07-07 11:32               ` [U-Boot] [PATCH v2 4/5] arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt Tetsuyuki Kobayashi
2012-07-07 11:32               ` [U-Boot] [PATCH v2 5/5] MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g Tetsuyuki Kobayashi
2012-07-09  6:30               ` [U-Boot] [PATCH v2 0/5] arm: rmobile: kzm9g: enable booting Linux kernel Tetsuyuki Kobayashi
2012-07-09 11:06                 ` [U-Boot] [PATCH v3 0/6] " Tetsuyuki Kobayshi
2012-07-09 11:06                   ` [U-Boot] [PATCH v3 1/6] arm: rmobile: kzm9g: Modify sdram area Tetsuyuki Kobayshi
2012-07-09 11:06                   ` Tetsuyuki Kobayshi [this message]
2012-07-09 11:06                   ` [U-Boot] [PATCH v3 3/6] arm: rmobile: kzm9g: change prompt to board specific Tetsuyuki Kobayshi
2012-07-09 11:06                   ` [U-Boot] [PATCH v3 4/6] arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt Tetsuyuki Kobayshi
2012-07-09 11:06                   ` [U-Boot] [PATCH v3 5/6] MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g Tetsuyuki Kobayshi
2012-07-09 11:07                   ` [U-Boot] [PATCH v3 6/6] arm: rmobile: kzm9g: Modify bus controller setting for CS4 Tetsuyuki Kobayshi
2012-07-17  5:13                   ` [U-Boot] [PATCH v4 0/7] arm: rmobile: kzm9g: enable booting Linux kernel Tetsuyuki Kobayshi
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 1/7] arm: rmobile: kzm9g: Modify sdram area Tetsuyuki Kobayshi
2012-07-19 23:43                       ` Nobuhiro Iwamatsu
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 2/7] arm: rmobile: kzm9g: Adjust low level hardware setting Tetsuyuki Kobayshi
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 3/7] arm: rmobile: kzm9g: change prompt to board specific Tetsuyuki Kobayshi
2012-07-19 23:44                       ` Nobuhiro Iwamatsu
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 4/7] arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt Tetsuyuki Kobayshi
2012-07-20  0:15                       ` Nobuhiro Iwamatsu
2012-07-20  9:27                         ` [U-Boot] [PATCH v5] " Tetsuyuki Kobayshi
2012-07-23  6:28                           ` Nobuhiro Iwamatsu
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 5/7] MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g Tetsuyuki Kobayshi
2012-07-19 23:51                       ` Nobuhiro Iwamatsu
2012-10-04  8:45                         ` Albert ARIBAUD
2012-10-04 22:02                           ` Nobuhiro Iwamatsu
2012-10-05 18:44                             ` Albert ARIBAUD
2012-10-05 18:49                               ` Tom Rini
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 6/7] arm: rmobile: kzm9g: Modify bus controller setting for CS4 Tetsuyuki Kobayshi
2012-07-19 23:51                       ` Nobuhiro Iwamatsu
2012-07-17  5:13                     ` [U-Boot] [PATCH v4 7/7] arm: rmobile: kzm9g: enable reset command Tetsuyuki Kobayshi
2012-07-19 23:48                       ` Nobuhiro Iwamatsu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1341832020-28548-3-git-send-email-koba@kmckk.co.jp \
    --to=koba@kmckk.co.jp \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.