~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/powerpc/cpu/74xx_7xx/cpu_init.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}