“b7697592ef7c52aaf42879ae718a4b0a8a8b17dc”上不存在“arch/powerpc/configs/powernv_defconfig”
generic.h 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * arch/arm/mach-spear3xx/generic.h
 *
 * SPEAr3XX machine family generic header file
 *
 * Copyright (C) 2009 ST Microelectronics
 * Viresh Kumar<viresh.kumar@st.com>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2. This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

#ifndef __MACH_GENERIC_H
#define __MACH_GENERIC_H

17
#include <linux/amba/pl08x.h>
18 19 20
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/amba/bus.h>
21 22
#include <asm/mach/time.h>
#include <asm/mach/map.h>
23

24
/* spear3xx declarations */
25 26 27 28 29
/*
 * Each GPT has 2 timer channels
 * Following GPT channels will be used as clock source and clockevent
 */
#define SPEAR_GPT0_BASE		SPEAR3XX_ML1_TMR_BASE
30 31
#define SPEAR_GPT0_CHAN0_IRQ	SPEAR3XX_IRQ_CPU_GPT1_1
#define SPEAR_GPT0_CHAN1_IRQ	SPEAR3XX_IRQ_CPU_GPT1_2
32 33

/* Add spear3xx family device structure declarations here */
34
extern struct sys_timer spear3xx_timer;
35
extern struct pl022_ssp_controller pl022_plat_data;
36
extern struct pl08x_platform_data pl080_plat_data;
37 38

/* Add spear3xx family function declarations here */
39
void __init spear_setup_timer(void);
40
void __init spear3xx_map_io(void);
41
void __init spear3xx_dt_init_irq(void);
42

43 44
void spear_restart(char, const char *);

45
/* spear300 declarations */
46
#ifdef CONFIG_MACH_SPEAR300
47
void __init spear300_clk_init(void);
48

49 50
#endif /* CONFIG_MACH_SPEAR300 */

51
/* spear310 declarations */
52
#ifdef CONFIG_MACH_SPEAR310
53
void __init spear310_clk_init(void);
54

55 56
#endif /* CONFIG_MACH_SPEAR310 */

57
/* spear320 declarations */
58
#ifdef CONFIG_MACH_SPEAR320
59
void __init spear320_clk_init(void);
60

61 62 63
#endif /* CONFIG_MACH_SPEAR320 */

#endif /* __MACH_GENERIC_H */