]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: x86: add "mclk" alias for Baytrail/Cherrytrail
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 20 Feb 2017 20:23:56 +0000 (14:23 -0600)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 19 Apr 2017 16:52:32 +0000 (09:52 -0700)
commit41ee7caf59e1c68d696162523cdf1fa7f717a731
tree8e9d88329c9ed73e61db1bdf8c0b616fa13dbb34
parent8973aa4aecac223548366ca81818309a0f0efa6d
clk: x86: add "mclk" alias for Baytrail/Cherrytrail

Due to timing requirements, TI and Conexant manage the audio
reference clock from their ASoC codec drivers using the "mclk"
string. This patch adds another lookup for the "pmc_plt_clk_3"
clock to avoid Intel-specific tests in those codec drivers and
use code as-is.

To avoid a leak, clk_add_alias() is not used in this patch.
Instead the lookup is created manually as part of the .probe()
step and dropped in the .remove() step.

"pmc_plt_clk_3" is used exclusively for audio on all known
Baytrail/CherryTrail designs and is e.g. routed on the MCLK
(pin 26) of the MinnowBoardMAX Turbot LSE connector.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/x86/clk-pmc-atom.c