siu.h (947B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Include file for NEC VR4100 series Serial Interface Unit. 4 * 5 * Copyright (C) 2005-2008 Yoichi Yuasa <yuasa@linux-mips.org> 6 */ 7#ifndef __NEC_VR41XX_SIU_H 8#define __NEC_VR41XX_SIU_H 9 10#define SIU_PORTS_MAX 2 11 12typedef enum { 13 SIU_INTERFACE_RS232C, 14 SIU_INTERFACE_IRDA, 15} siu_interface_t; 16 17extern void vr41xx_select_siu_interface(siu_interface_t interface); 18 19typedef enum { 20 SIU_USE_IRDA, 21 FIR_USE_IRDA, 22} irda_use_t; 23 24extern void vr41xx_use_irda(irda_use_t use); 25 26typedef enum { 27 SHARP_IRDA, 28 TEMIC_IRDA, 29 HP_IRDA, 30} irda_module_t; 31 32typedef enum { 33 IRDA_TX_1_5MBPS, 34 IRDA_TX_4MBPS, 35} irda_speed_t; 36 37extern void vr41xx_select_irda_module(irda_module_t module, irda_speed_t speed); 38 39#ifdef CONFIG_SERIAL_VR41XX_CONSOLE 40extern void vr41xx_siu_early_setup(struct uart_port *port); 41#else 42static inline void vr41xx_siu_early_setup(struct uart_port *port) {} 43#endif 44 45#endif /* __NEC_VR41XX_SIU_H */