[U-Boot] [PATCH] ppc460: read get_sys_info from CPR registers instead of STRP registers

Wolfgang Denk wd at denx.de
Thu Jul 21 00:38:24 CEST 2011


Dear Mike Williams,

In message <1311197713-13010-1-git-send-email-mike at mikebwilliams.com> you wrote:
> This code has been changed to read the CPU speed information from the
> CPR registers rather than the bootstrap registers. This is useful when
> changing the clock speed to something other than the default on boot.
...
> --- a/arch/powerpc/include/asm/ppc460ex_gt.h
> +++ b/arch/powerpc/include/asm/ppc460ex_gt.h
> @@ -211,11 +211,24 @@
>  #define PLLSYS0_PERCLK_DIV_MASK 0x03000000	/* Peripheral Clk Divisor */
>  #define PLLSYS0_SEL_MASK	0x18000000	/* 0 = PLL, 1 = PerClk */
>  
> -#define CPR0_ICFG_RLI_MASK	0x80000000
> +#define CPR0_PLBED              0x00000080 /* PLL PLB Ealry Clock Divider */

s/Ealry/Early/


And please use TABs for vertical alignment.

> +#define PERDV_MASK		0x03000000  /* Periferal Clock Divisor */

s/Periferal/Peripheral/

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hiring experienced unix people is  like  a  built-in  filter  against
idiots. Hiring experienced NT people provides no such guarantee.
            -- Miguel Cruz in WgL96.349$CC.122704 at typhoon2.ba-dsg.net


More information about the U-Boot mailing list