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

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/arm/cpu/arm926ejs/mb86r0x/reset.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 2010
 
3
 * Matthias Weisser <weisserm@arcor.de>
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
6
 */
 
7
 
 
8
#include <common.h>
 
9
#include <asm/io.h>
 
10
#include <asm/arch/hardware.h>
 
11
 
 
12
/*
 
13
 * Reset the cpu by setting software reset request bit
 
14
 */
 
15
void reset_cpu(ulong ignored)
 
16
{
 
17
        struct mb86r0x_crg * crg = (struct mb86r0x_crg *)
 
18
                                        MB86R0x_CRG_BASE;
 
19
 
 
20
        writel(MB86R0x_CRSR_SWRSTREQ, &crg->crsr);
 
21
        while (1)
 
22
                /* NOP */;
 
23
        /* Never reached */
 
24
}