mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
powerpc, timer: Does 8xx specific actions in 8xx cpu_init
The actions inside #ifdef CONFIG_8xx in arch/powerpc/lib/time.c can be performed before, in a 8xx dedicated function. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
This commit is contained in:

committed by
Tom Rini

parent
0819450fdd
commit
93e85d02b2
@ -38,7 +38,10 @@ void cpu_init_f(immap_t __iomem *immr)
|
||||
/* unlock TBSCRK */
|
||||
|
||||
out_be32(&immr->im_sitk.sitk_tbscrk, KAPWR_KEY);
|
||||
out_be16(&immr->im_sit.sit_tbscr, CONFIG_SYS_TBSCR);
|
||||
out_be16(&immr->im_sit.sit_tbscr, CONFIG_SYS_TBSCR | TBSCR_TBE);
|
||||
|
||||
/* Unlock timebase register */
|
||||
out_be32(&immr->im_sitk.sitk_tbk, KAPWR_KEY);
|
||||
|
||||
/* initialize the PIT (11-31) */
|
||||
|
||||
|
Reference in New Issue
Block a user