• Jianqun's avatar
    clk: rockchip: rk3288: i2s_frac adds flag to set parent's rate · fc69ed70
    Jianqun authored
    The relation of i2s nodes as follows:
              i2s_src               0           0            594000000  0
                 i2s_frac           0           0            11289600   0
                    i2s_pre         0           0            11289600   0
                       sclk_i2s0    0           0            11289600   0
                       i2s0_clkout  0           0            11289600   0
                          hclk_i2s0 1           1            99000000   0
    
    sclk_i2s0 is the master clock, when to set rate of sclk_i2s0, should
    allow to set its parent's rate, by add flag CLK_SET_RATE_PARENT for
    "i2s_frac", "i2s_pre", "i2s0_clkout" and "sclk_i2s0".
    
    Tested on rk3288 board using max98090, with command "aplay <music.wav>"
    
    Change-Id: I12faad082566532b65a7de8c0a6845e1c17870e6
    Signed-off-by: default avatarJianqun <jay.xu@rock-chips.com>
    Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
    fc69ed70
clk-rk3288.c 35.2 KB