~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-prima2/include/mach/system.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * arch/arm/mach-prima2/include/mach/system.h
 
3
 *
 
4
 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
 
5
 *
 
6
 * Licensed under GPLv2 or later.
 
7
 */
 
8
 
 
9
#ifndef __MACH_SYSTEM_H__
 
10
#define __MACH_SYSTEM_H__
 
11
 
 
12
#include <linux/bitops.h>
 
13
#include <mach/hardware.h>
 
14
 
 
15
#define SIRFSOC_SYS_RST_BIT  BIT(31)
 
16
 
 
17
extern void __iomem *sirfsoc_rstc_base;
 
18
 
 
19
static inline void arch_idle(void)
 
20
{
 
21
        cpu_do_idle();
 
22
}
 
23
 
 
24
static inline void arch_reset(char mode, const char *cmd)
 
25
{
 
26
        writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base);
 
27
}
 
28
 
 
29
#endif