162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * linux/arch/arm/mach-pxa/generic.h 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Author: Nicolas Pitre 662306a36Sopenharmony_ci * Copyright: MontaVista Software Inc. 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/reboot.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistruct irq_data; 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciextern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, 1462306a36Sopenharmony_ci unsigned int)); 1562306a36Sopenharmony_ciextern void __init pxa_map_io(void); 1662306a36Sopenharmony_ciextern void pxa_timer_init(void); 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#define SET_BANK(__nr,__start,__size) \ 1962306a36Sopenharmony_ci mi->bank[__nr].start = (__start), \ 2062306a36Sopenharmony_ci mi->bank[__nr].size = (__size) 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#define pxa25x_handle_irq icip_handle_irq 2562306a36Sopenharmony_ciextern void __init pxa25x_init_irq(void); 2662306a36Sopenharmony_ciextern void __init pxa25x_map_io(void); 2762306a36Sopenharmony_ciextern void __init pxa26x_init_irq(void); 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#define pxa27x_handle_irq ichp_handle_irq 3062306a36Sopenharmony_ciextern void __init pxa27x_init_irq(void); 3162306a36Sopenharmony_ciextern void __init pxa27x_map_io(void); 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#define pxa3xx_handle_irq ichp_handle_irq 3462306a36Sopenharmony_ciextern void __init pxa3xx_init_irq(void); 3562306a36Sopenharmony_ciextern void __init pxa3xx_map_io(void); 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ciextern struct syscore_ops pxa_irq_syscore_ops; 3862306a36Sopenharmony_ciextern struct syscore_ops pxa2xx_mfp_syscore_ops; 3962306a36Sopenharmony_ciextern struct syscore_ops pxa3xx_mfp_syscore_ops; 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_civoid __init pxa_set_ffuart_info(void *info); 4262306a36Sopenharmony_civoid __init pxa_set_btuart_info(void *info); 4362306a36Sopenharmony_civoid __init pxa_set_stuart_info(void *info); 4462306a36Sopenharmony_civoid __init pxa_set_hwuart_info(void *info); 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_civoid pxa_restart(enum reboot_mode, const char *); 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) 4962306a36Sopenharmony_ciextern void pxa2xx_clear_reset_status(unsigned int); 5062306a36Sopenharmony_ci#else 5162306a36Sopenharmony_cistatic inline void pxa2xx_clear_reset_status(unsigned int mask) {} 5262306a36Sopenharmony_ci#endif 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci 55