blob: 1d725224d146162ca60081f66e43cbd87bb05893 [file] [log] [blame]
Saeed Bisharaedabd382009-08-06 15:12:43 +03001/*
2 * arch/arm/mach-dove/common.h
3 *
4 * Core functions for Marvell Dove 88AP510 System On Chip
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#ifndef __ARCH_DOVE_COMMON_H
12#define __ARCH_DOVE_COMMON_H
13
Robin Holt7b6d8642013-07-08 16:01:40 -070014#include <linux/reboot.h>
15
Saeed Bisharaedabd382009-08-06 15:12:43 +030016struct mv643xx_eth_platform_data;
17struct mv_sata_platform_data;
18
Stephen Warren6bb27d72012-11-08 12:40:59 -070019extern void dove_timer_init(void);
Saeed Bisharaedabd382009-08-06 15:12:43 +030020
21/*
22 * Basic Dove init functions used early by machine-setup.
23 */
24void dove_map_io(void);
25void dove_init(void);
Lennert Buytenhek4ee1f6b2010-10-15 16:50:26 +020026void dove_init_early(void);
Saeed Bisharaedabd382009-08-06 15:12:43 +030027void dove_init_irq(void);
Thomas Petazzoni7d554902013-03-21 17:59:17 +010028void dove_setup_cpu_wins(void);
Saeed Bisharaedabd382009-08-06 15:12:43 +030029void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data);
30void dove_sata_init(struct mv_sata_platform_data *sata_data);
Russell King0f81bd42012-09-09 20:34:13 +010031#ifdef CONFIG_PCI
Saeed Bisharaedabd382009-08-06 15:12:43 +030032void dove_pcie_init(int init_port0, int init_port1);
Russell King0f81bd42012-09-09 20:34:13 +010033#else
34static inline void dove_pcie_init(int init_port0, int init_port1) { }
35#endif
Saeed Bisharaedabd382009-08-06 15:12:43 +030036void dove_ehci0_init(void);
37void dove_ehci1_init(void);
38void dove_uart0_init(void);
39void dove_uart1_init(void);
40void dove_uart2_init(void);
41void dove_uart3_init(void);
42void dove_spi0_init(void);
43void dove_spi1_init(void);
44void dove_i2c_init(void);
Saeed Bishara16bc90a2010-05-06 16:12:06 +030045void dove_sdio0_init(void);
46void dove_sdio1_init(void);
Robin Holt7b6d8642013-07-08 16:01:40 -070047void dove_restart(enum reboot_mode, const char *);
Saeed Bisharaedabd382009-08-06 15:12:43 +030048
49#endif