/* * Copyright (c) 2014 MediaTek Inc. * Author: James Liao * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include #include #include #include #include #include "clk-mtk-v1.h" #if !defined(MT_CCF_DEBUG) || !defined(MT_CCF_BRINGUP) #define MT_CCF_DEBUG 0 #define MT_CCF_BRINGUP 0 #endif static DEFINE_SPINLOCK(clk_ops_lock); static DEFINE_SPINLOCK(mtcmos_ops_lock); spinlock_t *get_mtk_clk_lock(void) { return &clk_ops_lock; } spinlock_t *get_mtk_mtcmos_lock(void) { return &mtcmos_ops_lock; }