common.h 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * arch/arm/mach-dove/common.h
 *
 * Core functions for Marvell Dove 88AP510 System On Chip
 *
 * 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 __ARCH_DOVE_COMMON_H
#define __ARCH_DOVE_COMMON_H

struct mv643xx_eth_platform_data;
struct mv_sata_platform_data;

S
Stephen Warren 已提交
17
extern void dove_timer_init(void);
18 19 20 21 22 23

/*
 * Basic Dove init functions used early by machine-setup.
 */
void dove_map_io(void);
void dove_init(void);
24
void dove_init_early(void);
25
void dove_init_irq(void);
26
void dove_setup_cpu_wins(void);
27 28
void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data);
void dove_sata_init(struct mv_sata_platform_data *sata_data);
29
#ifdef CONFIG_PCI
30
void dove_pcie_init(int init_port0, int init_port1);
31 32 33
#else
static inline void dove_pcie_init(int init_port0, int init_port1) { }
#endif
34 35 36 37 38 39 40 41 42
void dove_ehci0_init(void);
void dove_ehci1_init(void);
void dove_uart0_init(void);
void dove_uart1_init(void);
void dove_uart2_init(void);
void dove_uart3_init(void);
void dove_spi0_init(void);
void dove_spi1_init(void);
void dove_i2c_init(void);
43 44
void dove_sdio0_init(void);
void dove_sdio1_init(void);
45
void dove_restart(char, const char *);
46 47

#endif