.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2014 MediaTek Inc. |
---|
3 | 4 | * Author: James Liao <jamesjj.liao@mediatek.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #ifndef __DRV_CLK_GATE_H |
---|
.. | .. |
---|
47 | 39 | int clr_ofs, |
---|
48 | 40 | int sta_ofs, |
---|
49 | 41 | u8 bit, |
---|
50 | | - const struct clk_ops *ops); |
---|
| 42 | + const struct clk_ops *ops, |
---|
| 43 | + unsigned long flags, |
---|
| 44 | + struct device *dev); |
---|
| 45 | + |
---|
| 46 | +#define GATE_MTK_FLAGS(_id, _name, _parent, _regs, _shift, \ |
---|
| 47 | + _ops, _flags) { \ |
---|
| 48 | + .id = _id, \ |
---|
| 49 | + .name = _name, \ |
---|
| 50 | + .parent_name = _parent, \ |
---|
| 51 | + .regs = _regs, \ |
---|
| 52 | + .shift = _shift, \ |
---|
| 53 | + .ops = _ops, \ |
---|
| 54 | + .flags = _flags, \ |
---|
| 55 | + } |
---|
| 56 | + |
---|
| 57 | +#define GATE_MTK(_id, _name, _parent, _regs, _shift, _ops) \ |
---|
| 58 | + GATE_MTK_FLAGS(_id, _name, _parent, _regs, _shift, _ops, 0) |
---|
51 | 59 | |
---|
52 | 60 | #endif /* __DRV_CLK_GATE_H */ |
---|