linux_dsm_epyc7002/drivers/clk/sunxi
Hans de Goede c1ec516030 clk: sunxi: gmac-tx-clk mux is not a CLK_MUX_INDEX_BIT mux
A CLK_MUX_INDEX_BIT mux has one bit per parent, but the sun7i-a20-gmac-clk
has 2 bits selecting between 3 possible parents using values of 0, 1, 2,
which makes it a regular mux which should not have CLK_MUX_INDEX_BIT set in
its flag.

However we do not support parent 1 (an external clock), so use a table to
select parent 0 or 2, which are the 2 parents we support.

Note this has not been causing any issues sofar, because we start with a
parent setting of parent 0, and only ever re-parent to parent 2 (for which
we use an index of 1 as we skip parent 1) and with CLK_MUX_INDEX_BIT set
we write a value of 2 for index 1.

Tested on both a cubietruck (which uses rgmii mode) as well as a cs908
(an a31s board which uses mii mode).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2014-11-23 17:02:57 +01:00
..
clk-a10-hosc.c clk: sunxi: Move the 24M oscillator to a file of its own 2014-06-11 09:58:44 +02:00
clk-a20-gmac.c clk: sunxi: gmac-tx-clk mux is not a CLK_MUX_INDEX_BIT mux 2014-11-23 17:02:57 +01:00
clk-factors.c clk: sunxi: make factors clock mux mask configurable 2014-10-21 21:40:56 +02:00
clk-factors.h clk: sunxi: make factors clock mux mask configurable 2014-10-21 21:40:56 +02:00
clk-mod0.c clk: sunxi: make factors clock mux mask configurable 2014-10-21 21:40:56 +02:00
clk-sun6i-apb0-gates.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun6i-apb0.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun6i-ar100.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun8i-apb0.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun8i-mbus.c clk: sunxi: make factors clock mux mask configurable 2014-10-21 21:40:56 +02:00
clk-sun9i-core.c clk: sunxi: Add support for A80 basic bus clocks 2014-10-21 21:45:48 +02:00
clk-sunxi.c clk: sunxi: Implement A31 PLL6 as a divs clock for 2x output 2014-11-23 17:02:56 +01:00
Makefile clk: sunxi: Add support for A80 basic bus clocks 2014-10-21 21:45:48 +02:00