diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-07-13 16:09:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-23 05:22:48 +0300 |
commit | 93e85d02b21cdcd431df2237b883218f5c4059af (patch) | |
tree | 28d769b7bfd304398f1ad61c628a9aa56dcd4f30 /arch/powerpc/cpu | |
parent | 0819450fdd1160462f7a67af055618029857e204 (diff) | |
download | u-boot-93e85d02b21cdcd431df2237b883218f5c4059af.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/cpu_init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/cpu_init.c b/arch/powerpc/cpu/mpc8xx/cpu_init.c index 16e7bf5fd5..dc601a1297 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc8xx/cpu_init.c @@ -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) */ |