xref: /openbmc/linux/arch/arm/mach-omap2/cm.h (revision 21325b25)
169d88a00SPaul Walmsley /*
259fb659bSPaul Walmsley  * OMAP2+ Clock Management prototypes
369d88a00SPaul Walmsley  *
49b47267fSRajendra Nayak  * Copyright (C) 2007-2009 Texas Instruments, Inc.
59b47267fSRajendra Nayak  * Copyright (C) 2007-2009 Nokia Corporation
669d88a00SPaul Walmsley  *
769d88a00SPaul Walmsley  * Written by Paul Walmsley
869d88a00SPaul Walmsley  *
969d88a00SPaul Walmsley  * This program is free software; you can redistribute it and/or modify
1069d88a00SPaul Walmsley  * it under the terms of the GNU General Public License version 2 as
1169d88a00SPaul Walmsley  * published by the Free Software Foundation.
1269d88a00SPaul Walmsley  */
1359fb659bSPaul Walmsley #ifndef __ARCH_ASM_MACH_OMAP2_CM_H
1459fb659bSPaul Walmsley #define __ARCH_ASM_MACH_OMAP2_CM_H
1569d88a00SPaul Walmsley 
16d9e6625cSBenoit Cousson /*
17d9e6625cSBenoit Cousson  * MAX_MODULE_READY_TIME: max duration in microseconds to wait for the
18d9e6625cSBenoit Cousson  * PRCM to request that a module exit the inactive state in the case of
19d9e6625cSBenoit Cousson  * OMAP2 & 3.
20d9e6625cSBenoit Cousson  * In the case of OMAP4 this is the max duration in microseconds for the
21d9e6625cSBenoit Cousson  * module to reach the functionnal state from an inactive state.
22d9e6625cSBenoit Cousson  */
23d9e6625cSBenoit Cousson #define MAX_MODULE_READY_TIME		2000
24d9e6625cSBenoit Cousson 
25b8f15b7eSPaul Walmsley /*
26b8f15b7eSPaul Walmsley  * MAX_MODULE_DISABLE_TIME: max duration in microseconds to wait for
27b8f15b7eSPaul Walmsley  * the PRCM to request that a module enter the inactive state in the
28b8f15b7eSPaul Walmsley  * case of OMAP2 & 3.  In the case of OMAP4 this is the max duration
29b8f15b7eSPaul Walmsley  * in microseconds for the module to reach the inactive state from
30b8f15b7eSPaul Walmsley  * a functional state.
31b8f15b7eSPaul Walmsley  * XXX FSUSB on OMAP4430 takes ~4ms to idle after reset during
32b8f15b7eSPaul Walmsley  * kernel init.
33b8f15b7eSPaul Walmsley  */
34b8f15b7eSPaul Walmsley #define MAX_MODULE_DISABLE_TIME		5000
35b8f15b7eSPaul Walmsley 
3621325b25SPaul Walmsley # ifndef __ASSEMBLER__
3721325b25SPaul Walmsley 
3821325b25SPaul Walmsley /**
3921325b25SPaul Walmsley  * struct cm_ll_data - fn ptrs to per-SoC CM function implementations
4021325b25SPaul Walmsley  */
4121325b25SPaul Walmsley struct cm_ll_data {};
4221325b25SPaul Walmsley 
4321325b25SPaul Walmsley extern int cm_register(struct cm_ll_data *cld);
4421325b25SPaul Walmsley extern int cm_unregister(struct cm_ll_data *cld);
4521325b25SPaul Walmsley 
4621325b25SPaul Walmsley # endif
4721325b25SPaul Walmsley 
4869d88a00SPaul Walmsley #endif
49