Patchwork [U-Boot,2/2] arm: rmobile: kzm9g: Adjust ETM trace clock

login
register
mail settings
Submitter Tetsuyuki Kobayashi
Date Nov. 21, 2012, 2:29 a.m.
Message ID <1353464957-9872-3-git-send-email-koba@kmckk.co.jp>
Download mbox | patch
Permalink /patch/200542/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Tetsuyuki Kobayashi - Nov. 21, 2012, 2:29 a.m.
Set ETM TRCLK down to 78MHz to get clear wave form.
This patch makes difference only when you use ETM trace connecting JTAG debugger.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
---
 board/kmc/kzm9g/kzm9g.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Nobuhiro Iwamatsu - Nov. 21, 2012, 10:47 p.m.
On Wed, Nov 21, 2012 at 11:29 AM, Tetsuyuki Kobayashi <koba@kmckk.co.jp> wrote:
> Set ETM TRCLK down to 78MHz to get clear wave form.
> This patch makes difference only when you use ETM trace connecting JTAG debugger.
>
> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Acked-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>

> ---
>  board/kmc/kzm9g/kzm9g.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
> index 1aeb5fe..0d895c2 100644
> --- a/board/kmc/kzm9g/kzm9g.c
> +++ b/board/kmc/kzm9g/kzm9g.c
> @@ -195,7 +195,7 @@ void s_init(void)
>
>         /* FRQCR Init */
>         writel(0x0012453C, &cpg->frqcra);
> -       writel(0x80331350, &cpg->frqcrb);
> +       writel(0x80431350, &cpg->frqcrb);    /* ETM TRCLK  78MHz */
>         cmp_loop(&cpg->frqcrb, 0x80000000, 0x0);
>         writel(0x00000B0B, &cpg->frqcrd);
>         cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
> --
> 1.7.9.5
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
Nobuhiro Iwamatsu - Jan. 7, 2013, 12:52 a.m.
Hi, Albert.

Could you pick-up this patch to your repository?

Best regards,
  Nobuhiro

On Thu, Nov 22, 2012 at 7:47 AM, Nobuhiro Iwamatsu
<nobuhiro.iwamatsu.yj@renesas.com> wrote:
> On Wed, Nov 21, 2012 at 11:29 AM, Tetsuyuki Kobayashi <koba@kmckk.co.jp> wrote:
>> Set ETM TRCLK down to 78MHz to get clear wave form.
>> This patch makes difference only when you use ETM trace connecting JTAG debugger.
>>
>> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
>
> Acked-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>
>> ---
>>  board/kmc/kzm9g/kzm9g.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
>> index 1aeb5fe..0d895c2 100644
>> --- a/board/kmc/kzm9g/kzm9g.c
>> +++ b/board/kmc/kzm9g/kzm9g.c
>> @@ -195,7 +195,7 @@ void s_init(void)
>>
>>         /* FRQCR Init */
>>         writel(0x0012453C, &cpg->frqcra);
>> -       writel(0x80331350, &cpg->frqcrb);
>> +       writel(0x80431350, &cpg->frqcrb);    /* ETM TRCLK  78MHz */
>>         cmp_loop(&cpg->frqcrb, 0x80000000, 0x0);
>>         writel(0x00000B0B, &cpg->frqcrd);
>>         cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot@lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>
>
>
> --
> Nobuhiro Iwamatsu

Patch

diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
index 1aeb5fe..0d895c2 100644
--- a/board/kmc/kzm9g/kzm9g.c
+++ b/board/kmc/kzm9g/kzm9g.c
@@ -195,7 +195,7 @@  void s_init(void)
 
 	/* FRQCR Init */
 	writel(0x0012453C, &cpg->frqcra);
-	writel(0x80331350, &cpg->frqcrb);
+	writel(0x80431350, &cpg->frqcrb);    /* ETM TRCLK  78MHz */
 	cmp_loop(&cpg->frqcrb, 0x80000000, 0x0);
 	writel(0x00000B0B, &cpg->frqcrd);
 	cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);