mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
d9e6625c70
The maximum timeout to wait for the PRCM to request that a module exit idle or reach functionnal state is common to OMAP2/3/4 SoCs, so, move it to the chip family-common cm.h include file. Reduce the timeout from 20 ms to 2 ms. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
39 lines
919 B
C
39 lines
919 B
C
/*
|
|
* OMAP4 CM module functions
|
|
*
|
|
* Copyright (C) 2009 Nokia Corporation
|
|
* Paul Walmsley
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/list.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/err.h>
|
|
#include <linux/io.h>
|
|
|
|
#include <asm/atomic.h>
|
|
|
|
#include "cm.h"
|
|
#include "cm-regbits-44xx.h"
|
|
|
|
/**
|
|
* omap4_cm_wait_idlest_ready - wait for a module to leave idle or standby
|
|
* @prcm_mod: PRCM module offset (XXX example)
|
|
* @prcm_dev_offs: PRCM device offset (e.g. MCASP XXX example)
|
|
*
|
|
* XXX document
|
|
*/
|
|
int omap4_cm_wait_idlest_ready(u32 prcm_mod, u8 prcm_dev_offs)
|
|
{
|
|
/* FIXME: Add clock manager related code */
|
|
return 0;
|
|
}
|
|
|