blob: ea36d065ace2f9bb0cd1d52e8229999355bc7423 [file] [log] [blame]
Dario Binacchid2841572020-12-30 00:06:35 +01001/* 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
11void clk_ti_latch(fdt_addr_t reg, s8 shift);
Dario Binacchi6dfe4262021-05-01 17:05:22 +020012/**
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 */
17struct clk_ti_reg {
18 u16 offset;
19 u8 index;
20};
21
22void clk_ti_writel(u32 val, struct clk_ti_reg *reg);
23u32 clk_ti_readl(struct clk_ti_reg *reg);
24int clk_ti_get_reg_addr(struct udevice *dev, int index, struct clk_ti_reg *reg);
Dario Binacchid2841572020-12-30 00:06:35 +010025
26#endif /* #ifndef _CLK_TI_H */