blob: a6a87884338d551743d366803dcf9ed794e412a2 [file] [log] [blame]
wdenk4a9cbbe2002-08-27 09:48:53 +00001/*
2 * (C) Copyright 2001
3 * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk4a9cbbe2002-08-27 09:48:53 +00006 */
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 */
23void
24cpu_init_f (void)
25{
wdenk5da7f2f2004-01-03 00:43:19 +000026 switch (get_cpu_type()) {
27 case CPU_7450:
28 case CPU_7455:
29 case CPU_7457:
roy zangd136d662006-11-02 18:49:51 +080030 case CPU_7447A:
31 case CPU_7448:
wdenk4a9cbbe2002-08-27 09:48:53 +000032 /* enable the timebase bit in HID0 */
33 set_hid0(get_hid0() | 0x4000000);
wdenk5da7f2f2004-01-03 00:43:19 +000034 break;
35 default:
36 /* do nothing */
37 break;
wdenk4a9cbbe2002-08-27 09:48:53 +000038 }
39}
40
41/*
42 * initialize higher level parts of CPU like timers
43 */
44int cpu_init_r (void)
45{
46 return (0);
47}