1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright 2022 CS GROUP France
9 #ifndef __SOC_FSL_TSA_H__
10 #define __SOC_FSL_TSA_H__
12 #include <linux/types.h>
18 struct tsa_serial *tsa_serial_get_byphandle(struct device_node *np,
19 const char *phandle_name);
20 void tsa_serial_put(struct tsa_serial *tsa_serial);
21 struct tsa_serial *devm_tsa_serial_get_byphandle(struct device *dev,
22 struct device_node *np,
23 const char *phandle_name);
25 /* Connect and disconnect the TSA serial */
26 int tsa_serial_connect(struct tsa_serial *tsa_serial);
27 int tsa_serial_disconnect(struct tsa_serial *tsa_serial);
29 /* Cell information */
30 struct tsa_serial_info {
31 unsigned long rx_fs_rate;
32 unsigned long rx_bit_rate;
34 unsigned long tx_fs_rate;
35 unsigned long tx_bit_rate;
40 int tsa_serial_get_info(struct tsa_serial *tsa_serial, struct tsa_serial_info *info);
42 /* Get serial number */
43 int tsa_serial_get_num(struct tsa_serial *tsa_serial);
45 #endif /* __SOC_FSL_TSA_H__ */