xref: /openbmc/linux/arch/arm/mach-dove/common.h (revision 7cffcade)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * arch/arm/mach-dove/common.h
4  *
5  * Core functions for Marvell Dove 88AP510 System On Chip
6  */
7 
8 #ifndef __ARCH_DOVE_COMMON_H
9 #define __ARCH_DOVE_COMMON_H
10 
11 #include <linux/reboot.h>
12 
13 struct mv643xx_eth_platform_data;
14 struct mv_sata_platform_data;
15 
16 extern void dove_timer_init(void);
17 
18 /*
19  * Basic Dove init functions used early by machine-setup.
20  */
21 void dove_map_io(void);
22 void dove_init(void);
23 void dove_init_early(void);
24 void dove_init_irq(void);
25 void dove_setup_cpu_wins(void);
26 void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data);
27 void dove_sata_init(struct mv_sata_platform_data *sata_data);
28 #ifdef CONFIG_PCI
29 void dove_pcie_init(int init_port0, int init_port1);
30 #else
31 static inline void dove_pcie_init(int init_port0, int init_port1) { }
32 #endif
33 void dove_ehci0_init(void);
34 void dove_ehci1_init(void);
35 void dove_uart0_init(void);
36 void dove_uart1_init(void);
37 void dove_uart2_init(void);
38 void dove_uart3_init(void);
39 void dove_spi0_init(void);
40 void dove_spi1_init(void);
41 void dove_i2c_init(void);
42 void dove_sdio0_init(void);
43 void dove_sdio1_init(void);
44 void dove_restart(enum reboot_mode, const char *);
45 
46 #endif
47