Dario Binacchi | d284157 | 2020-12-30 00:06:35 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * TI clock utilities header |
| 4 | * |
| 5 | * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it> |
| 6 | */ |
| 7 | |
| 8 | #ifndef _CLK_TI_H |
| 9 | #define _CLK_TI_H |
| 10 | |
| 11 | void clk_ti_latch(fdt_addr_t reg, s8 shift); |
Dario Binacchi | 6dfe426 | 2021-05-01 17:05:22 +0200 | [diff] [blame^] | 12 | /** |
| 13 | * struct clk_ti_reg - TI register declaration |
| 14 | * @offset: offset from the master IP module base address |
| 15 | * @index: index of the master IP module |
| 16 | */ |
| 17 | struct clk_ti_reg { |
| 18 | u16 offset; |
| 19 | u8 index; |
| 20 | }; |
| 21 | |
| 22 | void clk_ti_writel(u32 val, struct clk_ti_reg *reg); |
| 23 | u32 clk_ti_readl(struct clk_ti_reg *reg); |
| 24 | int clk_ti_get_reg_addr(struct udevice *dev, int index, struct clk_ti_reg *reg); |
Dario Binacchi | d284157 | 2020-12-30 00:06:35 +0100 | [diff] [blame] | 25 | |
| 26 | #endif /* #ifndef _CLK_TI_H */ |