mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 19:11:37 +00:00
mxs: Convert timeout parameter to 'unsigned int'
For representing a timeout value, it makes more sense to pass it as 'unsigned int'. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
497dc79658
commit
a123312f4d
2 changed files with 6 additions and 4 deletions
|
@ -81,7 +81,8 @@ void enable_caches(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, unsigned
|
||||||
|
int timeout)
|
||||||
{
|
{
|
||||||
while (--timeout) {
|
while (--timeout) {
|
||||||
if ((readl(®->reg) & mask) == mask)
|
if ((readl(®->reg) & mask) == mask)
|
||||||
|
@ -92,7 +93,8 @@ int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
||||||
return !timeout;
|
return !timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mxs_wait_mask_clr(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
int mxs_wait_mask_clr(struct mxs_register_32 *reg, uint32_t mask, unsigned
|
||||||
|
int timeout)
|
||||||
{
|
{
|
||||||
while (--timeout) {
|
while (--timeout) {
|
||||||
if ((readl(®->reg) & mask) == 0)
|
if ((readl(®->reg) & mask) == 0)
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
int mxs_reset_block(struct mxs_register_32 *reg);
|
int mxs_reset_block(struct mxs_register_32 *reg);
|
||||||
int mxs_wait_mask_set(struct mxs_register_32 *reg,
|
int mxs_wait_mask_set(struct mxs_register_32 *reg,
|
||||||
uint32_t mask,
|
uint32_t mask,
|
||||||
int timeout);
|
unsigned int timeout);
|
||||||
int mxs_wait_mask_clr(struct mxs_register_32 *reg,
|
int mxs_wait_mask_clr(struct mxs_register_32 *reg,
|
||||||
uint32_t mask,
|
uint32_t mask,
|
||||||
int timeout);
|
unsigned int timeout);
|
||||||
|
|
||||||
int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int));
|
int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue