rockchip: clk: Add rk3368 SARADC clock support
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david.wu@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
committed by
Philipp Tomsich
parent
b375d84135
commit
615514c16d
@@ -89,6 +89,11 @@ enum {
|
||||
MCU_CLK_DIV_SHIFT = 0,
|
||||
MCU_CLK_DIV_MASK = GENMASK(4, 0),
|
||||
|
||||
/* CLKSEL_CON25 */
|
||||
CLK_SARADC_DIV_CON_SHIFT = 8,
|
||||
CLK_SARADC_DIV_CON_MASK = GENMASK(15, 8),
|
||||
CLK_SARADC_DIV_CON_WIDTH = 8,
|
||||
|
||||
/* CLKSEL43_CON */
|
||||
GMAC_MUX_SEL_EXTCLK = BIT(8),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user