Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *
0004  *  Copyright (C) 2007 Christian Pellegrin
0005  */
0006 
0007 
0008 #ifndef _LINUX_SERIAL_MAX3100_H
0009 #define _LINUX_SERIAL_MAX3100_H 1
0010 
0011 
0012 /**
0013  * struct plat_max3100 - MAX3100 SPI UART platform data
0014  * @loopback:            force MAX3100 in loopback
0015  * @crystal:             1 for 3.6864 Mhz, 0 for 1.8432
0016  * @max3100_hw_suspend:  MAX3100 has a shutdown pin. This is a hook
0017  *                       called on suspend and resume to activate it.
0018  * @poll_time:           poll time for CTS signal in ms, 0 disables (so no hw
0019  *                       flow ctrl is possible but you have less CPU usage)
0020  *
0021  * You should use this structure in your machine description to specify
0022  * how the MAX3100 is connected. Example:
0023  *
0024  * static struct plat_max3100 max3100_plat_data = {
0025  *  .loopback = 0,
0026  *  .crystal = 0,
0027  *  .poll_time = 100,
0028  * };
0029  *
0030  * static struct spi_board_info spi_board_info[] = {
0031  * {
0032  *  .modalias   = "max3100",
0033  *  .platform_data  = &max3100_plat_data,
0034  *  .irq        = IRQ_EINT12,
0035  *  .max_speed_hz   = 5*1000*1000,
0036  *  .chip_select    = 0,
0037  * },
0038  * };
0039  *
0040  **/
0041 struct plat_max3100 {
0042     int loopback;
0043     int crystal;
0044     void (*max3100_hw_suspend) (int suspend);
0045     int poll_time;
0046 };
0047 
0048 #endif