diff options
author | Eduardo Valentin <eduardo.valentin@nokia.com> | 2009-08-20 09:18:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-20 15:10:26 -0400 |
commit | 7aa9ff56cae7a6a4fa2e1a503cc5f8bbd887d6e3 (patch) | |
tree | a23d22ca7825c35a76f7e52bda742bba051550ab /arch/arm/plat-omap/include/mach/mcbsp.h | |
parent | 44a6311c0a83f682bcf18fae389a1b270df29314 (diff) |
OMAP: McBSP: Add transmit/receive threshold handler
This patch adds a way to handle transmit/receive threshold.
It export to mcbsp users a callback registration procedure.
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/plat-omap/include/mach/mcbsp.h')
-rw-r--r-- | arch/arm/plat-omap/include/mach/mcbsp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/mach/mcbsp.h b/arch/arm/plat-omap/include/mach/mcbsp.h index ceaf9eee61b..2544aa5bccd 100644 --- a/arch/arm/plat-omap/include/mach/mcbsp.h +++ b/arch/arm/plat-omap/include/mach/mcbsp.h | |||
@@ -389,6 +389,15 @@ int omap_mcbsp_init(void); | |||
389 | void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config, | 389 | void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config, |
390 | int size); | 390 | int size); |
391 | void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config); | 391 | void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config); |
392 | #ifdef CONFIG_ARCH_OMAP34XX | ||
393 | void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold); | ||
394 | void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold); | ||
395 | #else | ||
396 | static inline void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold) | ||
397 | { } | ||
398 | static inline void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold) | ||
399 | { } | ||
400 | #endif | ||
392 | int omap_mcbsp_request(unsigned int id); | 401 | int omap_mcbsp_request(unsigned int id); |
393 | void omap_mcbsp_free(unsigned int id); | 402 | void omap_mcbsp_free(unsigned int id); |
394 | void omap_mcbsp_start(unsigned int id, int tx, int rx); | 403 | void omap_mcbsp_start(unsigned int id, int tx, int rx); |