]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
mpc8xxx: LCRR[CLKDIV] is sometimes five bits
authorTrent Piepho <tpiepho@freescale.com>
Wed, 3 Dec 2008 23:16:34 +0000 (15:16 -0800)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Sat, 20 Dec 2008 00:20:25 +0000 (18:20 -0600)
commita5d212a263c58cc746481bf1fc878510533ce7d6
treeeb08c782227ec1399e96eb6dc082db2123262e41
parent58ec4866ed916c7e422f5107bb27b0822084728e
mpc8xxx: LCRR[CLKDIV] is sometimes five bits

On newer CPUs, 8536, 8572, and 8610, the CLKDIV field of LCRR is five bits
instead of four.

In order to avoid an ifdef, LCRR_CLKDIV is set to 0x1f on all systems.  It
should be safe as the fifth bit was defined as reserved and set to 0.

Code that was using a hard coded 0x0f is changed to use LCRR_CLKDIV.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Jon Loeliger <jdl@freescale.com>
15 files changed:
board/freescale/mpc8540ads/mpc8540ads.c
board/freescale/mpc8541cds/mpc8541cds.c
board/freescale/mpc8548cds/mpc8548cds.c
board/freescale/mpc8555cds/mpc8555cds.c
board/freescale/mpc8560ads/mpc8560ads.c
board/freescale/mpc8568mds/mpc8568mds.c
board/mpc8540eval/mpc8540eval.c
board/pm854/pm854.c
board/pm856/pm856.c
board/sbc8548/sbc8548.c
board/socrates/socrates.c
board/tqc/tqm85xx/tqm85xx.c
cpu/mpc85xx/cpu.c
cpu/mpc86xx/cpu.c
include/asm-ppc/fsl_lbc.h