[U-Boot] [PATCH] arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Thu Jul 5 09:02:54 CEST 2012


Hi,

I modified my rmobile git tree. Please rebase your local repository
and resend this patch.
Best regards,
  Nobuhiro

2012/6/26 Tetsuyuki Kobayashi <koba at kmckk.co.jp>:
> 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 <koba at kmckk.co.jp>
> ---
>  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
> --
> 1.7.9.5
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Nobuhiro Iwamatsu


More information about the U-Boot mailing list