Add an interface for GPC used by drivers to keep mega fast mix domain power. Signed-off-by: Li Jun <jun.li@freescale.com> During 4.14 rebase added ifdef check for CONFIG_HAVE_IMX_GPC so that it won't break arm64 build. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
31 lines
750 B
C
31 lines
750 B
C
/*
|
|
* Copyright (C) 2015 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
/*
|
|
* The code contained herein is licensed under the GNU Lesser General
|
|
* Public License. You may obtain a copy of the GNU Lesser General
|
|
* Public License Version 2.1 or later at the following locations:
|
|
*
|
|
* http://www.opensource.org/licenses/lgpl-license.html
|
|
* http://www.gnu.org/copyleft/lgpl.html
|
|
*/
|
|
|
|
/*
|
|
* @file linux/imx_gpc.h
|
|
*
|
|
* @brief Global header file for imx GPC
|
|
*
|
|
* @ingroup GPC
|
|
*/
|
|
#ifndef __LINUX_IMX_GPC_H__
|
|
#define __LINUX_IMX_GPC_H__
|
|
|
|
#ifdef CONFIG_HAVE_IMX_GPC
|
|
int imx_gpc_mf_request_on(unsigned int irq, unsigned int on);
|
|
#else
|
|
static inline int imx_gpc_mf_request_on(unsigned int irq, unsigned int on) { return 0; }
|
|
#endif
|
|
|
|
#endif /* __LINUX_IMX_GPC_H__ */
|