diff mbox

[U-Boot,5/8] mpc512x: allow configuring board specific IPS divider

Message ID 1360317830-28525-6-git-send-email-agust@denx.de
State Accepted
Delegated to: Wolfgang Denk
Headers show

Commit Message

Anatolij Gustschin Feb. 8, 2013, 10:03 a.m. UTC
Boards may define own IPS divider in the config file if
the default IPS divider doesn't fit their needs.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/include/asm/immap_512x.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk March 9, 2013, 1:46 p.m. UTC | #1
Dear Anatolij Gustschin,

In message <1360317830-28525-6-git-send-email-agust@denx.de> you wrote:
> Boards may define own IPS divider in the config file if
> the default IPS divider doesn't fit their needs.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  arch/powerpc/include/asm/immap_512x.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

Applied to u-boot-mpc5xxx repo, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/powerpc/include/asm/immap_512x.h b/arch/powerpc/include/asm/immap_512x.h
index 157e6b8..383e872 100644
--- a/arch/powerpc/include/asm/immap_512x.h
+++ b/arch/powerpc/include/asm/immap_512x.h
@@ -227,7 +227,9 @@  typedef struct clk512x {
 #define CLOCK_SCCR2_IIM_EN		0x00080000
 
 /* SCFR1 System Clock Frequency Register 1 */
+#ifndef SCFR1_IPS_DIV
 #define SCFR1_IPS_DIV		0x3
+#endif
 #define SCFR1_IPS_DIV_MASK	0x03800000
 #define SCFR1_IPS_DIV_SHIFT	23