diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-05-11 08:44:27 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-05-11 08:44:31 -0400 |
| commit | 41fb454ebe6024f5c1e3b3cbc0abc0da762e7b51 (patch) | |
| tree | 51c50bcb67a5039448ddfa1869d7948cab1217e9 /include/linux/serial_max3100.h | |
| parent | 19c1a6f5764d787113fa323ffb18be7991208f82 (diff) | |
| parent | 091bf7624d1c90cec9e578a18529f615213ff847 (diff) | |
Merge commit 'v2.6.30-rc5' into core/iommu
Merge reason: core/iommu was on an .30-rc1 base,
update it to .30-rc5 to refresh.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/serial_max3100.h')
| -rw-r--r-- | include/linux/serial_max3100.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/include/linux/serial_max3100.h b/include/linux/serial_max3100.h new file mode 100644 index 000000000000..4976befb6aeb --- /dev/null +++ b/include/linux/serial_max3100.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* | ||
| 2 | * | ||
| 3 | * Copyright (C) 2007 Christian Pellegrin | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | */ | ||
| 10 | |||
| 11 | |||
| 12 | #ifndef _LINUX_SERIAL_MAX3100_H | ||
| 13 | #define _LINUX_SERIAL_MAX3100_H 1 | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * struct plat_max3100 - MAX3100 SPI UART platform data | ||
| 18 | * @loopback: force MAX3100 in loopback | ||
| 19 | * @crystal: 1 for 3.6864 Mhz, 0 for 1.8432 | ||
| 20 | * @max3100_hw_suspend: MAX3100 has a shutdown pin. This is a hook | ||
| 21 | * called on suspend and resume to activate it. | ||
| 22 | * @poll_time: poll time for CTS signal in ms, 0 disables (so no hw | ||
| 23 | * flow ctrl is possible but you have less CPU usage) | ||
| 24 | * | ||
| 25 | * You should use this structure in your machine description to specify | ||
| 26 | * how the MAX3100 is connected. Example: | ||
| 27 | * | ||
| 28 | * static struct plat_max3100 max3100_plat_data = { | ||
| 29 | * .loopback = 0, | ||
| 30 | * .crystal = 0, | ||
| 31 | * .poll_time = 100, | ||
| 32 | * }; | ||
| 33 | * | ||
| 34 | * static struct spi_board_info spi_board_info[] = { | ||
| 35 | * { | ||
| 36 | * .modalias = "max3100", | ||
| 37 | * .platform_data = &max3100_plat_data, | ||
| 38 | * .irq = IRQ_EINT12, | ||
| 39 | * .max_speed_hz = 5*1000*1000, | ||
| 40 | * .chip_select = 0, | ||
| 41 | * }, | ||
| 42 | * }; | ||
| 43 | * | ||
| 44 | **/ | ||
| 45 | struct plat_max3100 { | ||
| 46 | int loopback; | ||
| 47 | int crystal; | ||
| 48 | void (*max3100_hw_suspend) (int suspend); | ||
| 49 | int poll_time; | ||
| 50 | }; | ||
| 51 | |||
| 52 | #endif | ||
