
Dear Mike Williams,
In message 1311197713-13010-1-git-send-email-mike@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