mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
444a7c3bb8
Introduce a function for checking the busy bits of CLKCTRL register that uses a proper timeout mechanism. Remove parts of code that use busy loops and replace them with the mxs_clkctrl_timeout() function. Tested on a mx28evk by performing audio playback. Suggested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
37 lines
1006 B
C
37 lines
1006 B
C
/*
|
|
* Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
|
|
*/
|
|
|
|
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __MACH_MXS_COMMON_H__
|
|
#define __MACH_MXS_COMMON_H__
|
|
|
|
struct clk;
|
|
|
|
extern const u32 *mxs_get_ocotp(void);
|
|
extern int mxs_reset_block(void __iomem *);
|
|
extern void mxs_timer_init(struct clk *, int);
|
|
extern void mxs_restart(char, const char *);
|
|
extern int mxs_saif_clkmux_select(unsigned int clkmux);
|
|
|
|
extern int mx23_register_gpios(void);
|
|
extern int mx23_clocks_init(void);
|
|
extern void mx23_map_io(void);
|
|
extern void mx23_init_irq(void);
|
|
|
|
extern int mx28_register_gpios(void);
|
|
extern int mx28_clocks_init(void);
|
|
extern void mx28_map_io(void);
|
|
extern void mx28_init_irq(void);
|
|
|
|
extern void icoll_init_irq(void);
|
|
|
|
extern int mxs_clkctrl_timeout(unsigned int reg_offset, unsigned int mask);
|
|
|
|
#endif /* __MACH_MXS_COMMON_H__ */
|