clk: mvebu: add mvebu core clocks.
This driver allows to provide DT clocks for core clocks found on Marvell Kirkwood, Dove & 370/XP SoCs. The core clock frequencies and ratios are determined by decoding the Sample-At-Reset registers. Although technically correct, using a divider of 0 will lead to div_by_zero panic. Let's use a ratio of 0/1 instead to fail later with a zero clock. Signed-off-by:Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by:
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by:
Andrew Lunn <andrew@lunn.ch> Tested-by Gregory CLEMENT <gregory.clement@free-electrons.com>
Showing
- Documentation/devicetree/bindings/clock/mvebu-core-clock.txt 47 additions, 0 deletionsDocumentation/devicetree/bindings/clock/mvebu-core-clock.txt
- drivers/clk/Kconfig 2 additions, 0 deletionsdrivers/clk/Kconfig
- drivers/clk/Makefile 1 addition, 0 deletionsdrivers/clk/Makefile
- drivers/clk/mvebu/Kconfig 3 additions, 0 deletionsdrivers/clk/mvebu/Kconfig
- drivers/clk/mvebu/Makefile 1 addition, 0 deletionsdrivers/clk/mvebu/Makefile
- drivers/clk/mvebu/clk-core.c 675 additions, 0 deletionsdrivers/clk/mvebu/clk-core.c
- drivers/clk/mvebu/clk-core.h 18 additions, 0 deletionsdrivers/clk/mvebu/clk-core.h
- drivers/clk/mvebu/clk.c 23 additions, 0 deletionsdrivers/clk/mvebu/clk.c
- include/linux/clk/mvebu.h 22 additions, 0 deletionsinclude/linux/clk/mvebu.h
Loading
Please register or sign in to comment