mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 14:14:32 +00:00
2dd2f3ea6d
The clock access functions exported by the clk header use the struct clk_ti_reg parameter to get the address of the register. This must also apply to clk_ti_latch(). Changes to TI's clk-mux and clk-divider drivers prevented the patch from generating compile errors. Signed-off-by: Dario Binacchi <dariobin@libero.it>
26 lines
638 B
C
26 lines
638 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* TI clock utilities header
|
|
*
|
|
* Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
|
|
*/
|
|
|
|
#ifndef _CLK_TI_H
|
|
#define _CLK_TI_H
|
|
|
|
/**
|
|
* struct clk_ti_reg - TI register declaration
|
|
* @offset: offset from the master IP module base address
|
|
* @index: index of the master IP module
|
|
*/
|
|
struct clk_ti_reg {
|
|
u16 offset;
|
|
u8 index;
|
|
};
|
|
|
|
void clk_ti_latch(struct clk_ti_reg *reg, s8 shift);
|
|
void clk_ti_writel(u32 val, struct clk_ti_reg *reg);
|
|
u32 clk_ti_readl(struct clk_ti_reg *reg);
|
|
int clk_ti_get_reg_addr(struct udevice *dev, int index, struct clk_ti_reg *reg);
|
|
|
|
#endif /* #ifndef _CLK_TI_H */
|