xref: /openbmc/linux/arch/arm/mach-dove/common.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*0fdebc5eSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2edabd38eSSaeed Bishara /*
3edabd38eSSaeed Bishara  * arch/arm/mach-dove/common.h
4edabd38eSSaeed Bishara  *
5edabd38eSSaeed Bishara  * Core functions for Marvell Dove 88AP510 System On Chip
6edabd38eSSaeed Bishara  */
7edabd38eSSaeed Bishara 
8edabd38eSSaeed Bishara #ifndef __ARCH_DOVE_COMMON_H
9edabd38eSSaeed Bishara #define __ARCH_DOVE_COMMON_H
10edabd38eSSaeed Bishara 
117b6d864bSRobin Holt #include <linux/reboot.h>
127b6d864bSRobin Holt 
13edabd38eSSaeed Bishara struct mv643xx_eth_platform_data;
14edabd38eSSaeed Bishara struct mv_sata_platform_data;
15edabd38eSSaeed Bishara 
166bb27d73SStephen Warren extern void dove_timer_init(void);
17edabd38eSSaeed Bishara 
18edabd38eSSaeed Bishara /*
19edabd38eSSaeed Bishara  * Basic Dove init functions used early by machine-setup.
20edabd38eSSaeed Bishara  */
21edabd38eSSaeed Bishara void dove_map_io(void);
22edabd38eSSaeed Bishara void dove_init(void);
234ee1f6b5SLennert Buytenhek void dove_init_early(void);
24edabd38eSSaeed Bishara void dove_init_irq(void);
257d554902SThomas Petazzoni void dove_setup_cpu_wins(void);
26edabd38eSSaeed Bishara void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data);
27edabd38eSSaeed Bishara void dove_sata_init(struct mv_sata_platform_data *sata_data);
280f81bd43SRussell King #ifdef CONFIG_PCI
29edabd38eSSaeed Bishara void dove_pcie_init(int init_port0, int init_port1);
300f81bd43SRussell King #else
dove_pcie_init(int init_port0,int init_port1)310f81bd43SRussell King static inline void dove_pcie_init(int init_port0, int init_port1) { }
320f81bd43SRussell King #endif
33edabd38eSSaeed Bishara void dove_ehci0_init(void);
34edabd38eSSaeed Bishara void dove_ehci1_init(void);
35edabd38eSSaeed Bishara void dove_uart0_init(void);
36edabd38eSSaeed Bishara void dove_uart1_init(void);
37edabd38eSSaeed Bishara void dove_uart2_init(void);
38edabd38eSSaeed Bishara void dove_uart3_init(void);
39edabd38eSSaeed Bishara void dove_spi0_init(void);
40edabd38eSSaeed Bishara void dove_spi1_init(void);
41edabd38eSSaeed Bishara void dove_i2c_init(void);
4216bc90afSSaeed Bishara void dove_sdio0_init(void);
4316bc90afSSaeed Bishara void dove_sdio1_init(void);
447b6d864bSRobin Holt void dove_restart(enum reboot_mode, const char *);
45edabd38eSSaeed Bishara 
46edabd38eSSaeed Bishara #endif
47