summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.h
blob: 47268d0bdbb4b197bec11b7308b811599ddcb80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* arch/arm/mach-spc300/spc300.h
 *
 * (C) Copyright 2009 SPiDCOM Technologies
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */
#ifndef __ARCH_ARM_MACH_SPC300_H
#define __ARCH_ARM_MACH_SPC300_H

#include <linux/proc_fs.h>
#include <asm/mach/arch.h>

extern struct sys_timer spc300_timer;

extern int spc300_autoswitch_en;

extern struct proc_dir_entry *spc300_spidimg_proc_dir;

/**
 * Position of the NVRAM relative to the start of the flash.
 * As the NVRAM is the second partition, this will also correspond to the
 * length of the u-boot partition.
 */
extern uint32_t nvram_offset;

/**
 * Invalid NVRAM offset.
 * Use to initialize nvram_offset with an invalid value to know if it has been
 * correctly set by some other code after.
 */
#define NVRAM_OFFSET_INVALID ((uint32_t) (-1))

/** 
 * Initialize spc300 GIC.
 */
void spc300_init_irq(void);

#ifdef CONFIG_PM

void spc300_irq_suspend(void);

void spc300_irq_resume(void);

#endif /* CONFIG_PM */

/** 
 * New mapping for IOs after MMU starting.
 */
void spc300_map_io(void);

/** 
 * Second spc300 initialisation,
 * just before memory_init.
 *
 * \param  desc  machine descriptor.
 * \param  tags  tag.
 * \param  cmdline  command line.
 * \param  mi  memory informations.
 */
void spc300_fixup(struct machine_desc *desc, struct tag *tags, char **cmdline, struct meminfo *mi);

/** 
 * Initialize spc300.
 */
void spc300_init(void);

#endif /* __ARCH_ARM_MACH_SPC300_H */