| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | /* |
| 4 | |
| 5 | * Copyright (c) 2020 MediaTek Inc. |
| 6 | |
| 7 | */ |
| 8 | #include <linux/of.h> |
| 9 | #include <linux/of_address.h> |
| 10 | #include <linux/io.h> |
| 11 | #include <linux/slab.h> |
| 12 | #include <linux/delay.h> |
| 13 | #include <linux/clkdev.h> |
| 14 | #include "clk-mtk-v1.h" |
| 15 | #if !defined(MT_CCF_DEBUG) || !defined(MT_CCF_BRINGUP) |
| 16 | #define MT_CCF_DEBUG 0 |
| 17 | #define MT_CCF_BRINGUP 0 |
| 18 | #endif |
| 19 | static DEFINE_SPINLOCK(clk_ops_lock); |
| 20 | static DEFINE_SPINLOCK(mtcmos_ops_lock); |
| 21 | spinlock_t *get_mtk_clk_lock(void) |
| 22 | { |
| 23 | return &clk_ops_lock; |
| 24 | } |
| 25 | spinlock_t *get_mtk_mtcmos_lock(void) |
| 26 | { |
| 27 | return &mtcmos_ops_lock; |
| 28 | } |