summaryrefslogtreecommitdiff
path: root/drivers/clk/airoha
AgeCommit message (Collapse)Author
2026-07-17clk: airoha: fix off-by-one in clock ID boundary checkWayen Yan
The boundary checks in airoha_clk_enable(), airoha_clk_get_rate(), and airoha_clk_set_rate() use "id > data->num_clocks" which allows id equal to num_clocks to pass. Since data->descs[] has exactly num_clocks entries (indices 0 to num_clocks-1), id=num_clocks results in an out-of-bounds array access. This is currently not triggered because the device tree clock IDs are within bounds, but the check should be defensive. Fix by changing the comparison from ">" to ">=". Fixes: d0b81afb5ec9 ("clk: airoha: Add support for Airoha AN7581 SoC clock") Signed-off-by: Wayen Yan <[email protected]>
2025-11-07clk: airoha: add support for airoha en7523 SoC familyMikhail Kshevetskiy
This adds clock driver for airoha en7523/en7529/en7562 SoCs. The code is based on corresponding linux driver. Signed-off-by: Mikhail Kshevetskiy <[email protected]>
2025-11-07clk: airoha: use CHIP_SCU regmap helperMikhail Kshevetskiy
Use common helper to get CHIP_SCU registers. Signed-off-by: Mikhail Kshevetskiy <[email protected]>
2025-04-01reset: airoha: Add driver for controlling reset line of AN7581Christian Marangi
Add driver for controlling the reset lines of AN7581. This is a detached version of the clock controller driver present in Linux only used to control reset lines. Driver gets loaded with the bind of the clock driver and doesn't require a compatible. This is needed as they share the same registers. Signed-off-by: Christian Marangi <[email protected]>
2025-04-01clk: airoha: Add support for Airoha AN7581 SoC clockChristian Marangi
Add support for Airoha AN7581 SoC clock driver. This mainly needed for eMMC support to correctly get the current clock applied. Based on the Linux clk-en7523.c but majorly reworked for U-Boot that doesn't require CCF subsystem. Major modification, support for set_rate, realtime get_rate and split for reset part to a different driver. Signed-off-by: Christian Marangi <[email protected]>