2009-08-06 12:12:43 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2013-07-08 23:01:40 +00:00
|
|
|
#include <linux/reboot.h>
|
|
|
|
|
2009-08-06 12:12:43 +00:00
|
|
|
struct mv643xx_eth_platform_data;
|
|
|
|
struct mv_sata_platform_data;
|
|
|
|
|
2012-11-08 19:40:59 +00:00
|
|
|
extern void dove_timer_init(void);
|
2009-08-06 12:12:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Basic Dove init functions used early by machine-setup.
|
|
|
|
*/
|
|
|
|
void dove_map_io(void);
|
|
|
|
void dove_init(void);
|
2010-10-15 14:50:26 +00:00
|
|
|
void dove_init_early(void);
|
2009-08-06 12:12:43 +00:00
|
|
|
void dove_init_irq(void);
|
2013-03-21 16:59:17 +00:00
|
|
|
void dove_setup_cpu_wins(void);
|
2009-08-06 12:12:43 +00:00
|
|
|
void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data);
|
|
|
|
void dove_sata_init(struct mv_sata_platform_data *sata_data);
|
2012-09-09 19:34:13 +00:00
|
|
|
#ifdef CONFIG_PCI
|
2009-08-06 12:12:43 +00:00
|
|
|
void dove_pcie_init(int init_port0, int init_port1);
|
2012-09-09 19:34:13 +00:00
|
|
|
#else
|
|
|
|
static inline void dove_pcie_init(int init_port0, int init_port1) { }
|
|
|
|
#endif
|
2009-08-06 12:12:43 +00:00
|
|
|
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);
|
2010-05-06 13:12:06 +00:00
|
|
|
void dove_sdio0_init(void);
|
|
|
|
void dove_sdio1_init(void);
|
2013-07-08 23:01:40 +00:00
|
|
|
void dove_restart(enum reboot_mode, const char *);
|
2009-08-06 12:12:43 +00:00
|
|
|
|
|
|
|
#endif
|