diff options
| author | Tom Rini <[email protected]> | 2025-06-11 09:47:10 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-06-11 12:00:36 -0600 |
| commit | 4b5cb576116663813768ddeb46523d1aa717133e (patch) | |
| tree | 7df3998044bae529e9812b8f1861a650d2d6359e /include/linux | |
| parent | 9e50cf80d0ec5d6856a5efa5b42b8b70ed1d17ed (diff) | |
| parent | 7ab0ee3a59c01ca164a5b71e0c4c90555da5e806 (diff) | |
Merge tag 'u-boot-stm32-20250611' of https://source.denx.de/u-boot/custodians/u-boot-stm into next
CI: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/26607
- Add clock and reset drivers support for STM32MP25
- Add STM32H747-Discovery board support
- Add tamp_nvram driver
- Add SPL support and clock tree init to STM32MP13 RCC driver
- Add STM32MP13xx ram support
- Add support for STM32 Image V2.0 for STM32MP13xx
- Fix SYSRAM size on STM32MP13xx
- Fix DBGMCU macro on STM32MP13xx
- Auto-detect ROM API table on STM32MP15xx
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/clk-provider.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 267757939e0..2d754fa4287 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -15,10 +15,17 @@ struct udevice; +/* update clock ID for the dev = clock provider, compatible with CLK_AUTO_ID */ +static inline void dev_clk_dm(const struct udevice *dev, ulong id, struct clk *clk) +{ + if (!IS_ERR(clk)) + clk->id = CLK_ID(dev, id); +} + static inline void clk_dm(ulong id, struct clk *clk) { if (!IS_ERR(clk)) - clk->id = id; + clk->id = CLK_ID(clk->dev, id); } /* |
