diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2014-07-30 12:28:00 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2014-10-09 14:45:03 +0900 |
commit | f212a8abf3dc3715b95ce3c187c7402ee40788e6 (patch) | |
tree | ffdf735de96e973e26d5b4752c6387cf313fffbb | |
parent | 9f1c3beada5a3b70318def14b6b04355d41baa82 (diff) | |
download | u-boot-imx-f212a8abf3dc3715b95ce3c187c7402ee40788e6.zip u-boot-imx-f212a8abf3dc3715b95ce3c187c7402ee40788e6.tar.gz u-boot-imx-f212a8abf3dc3715b95ce3c187c7402ee40788e6.tar.bz2 |
arm: rmobile: lager: Fix CPU frequency setting
Setting to change the CPU frequency is only used version2.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
-rw-r--r-- | board/renesas/lager/lager.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index a5a0474..5302839 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -29,15 +29,17 @@ void s_init(void) { struct rcar_rwdt *rwdt = (struct rcar_rwdt *)RWDT_BASE; struct rcar_swdt *swdt = (struct rcar_swdt *)SWDT_BASE; - u32 stc; /* Watchdog init */ writel(0xA5A5A500, &rwdt->rwtcsra); writel(0xA5A5A500, &swdt->swtcsra); /* CPU frequency setting. Set to 1.4GHz */ - stc = ((1500 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_BIT; - clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc); + if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) { + u32 stc = ((1400 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) + << PLL0_STC_BIT; + clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc); + } /* QoS(Quality-of-Service) Init */ qos_init(); |