]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/74xx_7xx/cpu_init.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / 74xx_7xx / cpu_init.c
1 /*
2  * (C) Copyright 2001
3  * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 /*
9  * cpu_init.c - low level cpu init
10  *
11  * there's really nothing going on here yet.  future work area?
12  */
13
14 #include <common.h>
15 #include <74xx_7xx.h>
16
17 /*
18  * Breath some life into the CPU...
19  *
20  * there's basically nothing to do here since the memory controller
21  * isn't on the CPU in this case.
22  */
23 void
24 cpu_init_f (void)
25 {
26         switch (get_cpu_type()) {
27         case CPU_7450:
28         case CPU_7455:
29         case CPU_7457:
30         case CPU_7447A:
31         case CPU_7448:
32                 /* enable the timebase bit in HID0 */
33                 set_hid0(get_hid0() | 0x4000000);
34                 break;
35         default:
36                 /* do nothing */
37                 break;
38         }
39 }
40
41 /*
42  * initialize higher level parts of CPU like timers
43  */
44 int cpu_init_r (void)
45 {
46         return (0);
47 }