memory: tegra124-emc: Make driver modular
authorDmitry Osipenko <digetx@gmail.com>
Mon, 28 Dec 2020 15:49:16 +0000 (18:49 +0300)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 5 Jan 2021 17:00:09 +0000 (18:00 +0100)
commit281462e593483350d8072a118c6e072c550a80fa
treeaedb622d4b8e73213c869eae85999fe03cced566
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
memory: tegra124-emc: Make driver modular

Add modularization support to the Tegra124 EMC driver, which now can be
compiled as a loadable kernel module.

Note that EMC clock must be registered at clk-init time, otherwise PLLM
will be disabled as unused clock at boot time if EMC driver is compiled
as a module. Hence add a prepare/complete callbacks. similarly to what is
done for the Tegra20/30 EMC drivers.

Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20201228154920.18846-2-digetx@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/clk/tegra/Kconfig
drivers/clk/tegra/Makefile
drivers/clk/tegra/clk-tegra124-emc.c
drivers/clk/tegra/clk-tegra124.c
drivers/clk/tegra/clk.h
drivers/memory/tegra/Kconfig
drivers/memory/tegra/tegra124-emc.c
include/linux/clk/tegra.h
include/soc/tegra/emc.h [deleted file]