summaryrefslogtreecommitdiffstats
path: root/drivers/clk
Commit message (Collapse)AuthorAge
* clk: aon: add aon clk providerVishruth Jain2020-03-16
| | | | | | | | | | | | | | | | | PLL_AON clock is controlled by SPE. Add clock provider that can control PLL_AON state using IPC with SPE instead of BPMP. Bug 200409889 Change-Id: I2e88eb3a5971881b6f51c4d1472422203831a33e Signed-off-by: Vishruth Jain <vishruthj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2290986 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* [Handoff] Remove unwanted print.Achal Verma2019-06-20
| | | | | | | | | | | | | | | | | | | Removed print complainig about "tegra-bpmp-emc-clk" node not preset, as this is not required. Bug 2566499 Change-Id: Icdf3c58f8dfd6d3d35c900fc13f13102ef20a7fb Signed-off-by: Achal Verma <achalv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2113497 (cherry picked from commit a0e54732a35495138dde717bc9fd9248e0c2ade1) Reviewed-on: https://git-master.nvidia.com/r/2129316 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* clk: tegra: Add fmon_clamp_rate debugfs nodeAlex Frid2018-06-07
| | | | | | | | | | | | | | | | | Added fmon_clamp_rate debugfs nodes for each clock to test/debug BPMP FMON clamping services. Jira BPMP-2140 Change-Id: Id7d80ecb57fa84f0929a4f3bf79ed0fbb33a33ba Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1740846 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* clk: tegra: enable SET_RATE_NOCACHE for all clocksArun Kannan2018-04-26
| | | | | | | | | | | | | | | | | | | | Enable CLK_SET_RATE_NOCACHE flag so that all clk_set_rate() from client drivers pass through to BPMP. Bug 2051688 Change-Id: I76f37af3676e76155191a1f121f06447916fbe3b Signed-off-by: Arun Kannan <akannan@nvidia.com> (cherry picked from commit 9956be70d74570fb95245f427094f2090d5f5a11) Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1667744 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* l4t: release: compilation failing without"O="Shanmukha Srinivas R2018-04-13
| | | | | | | | | | | | | | | | | | | | The Makefile in nvidia/drivers/clk/tegra needs to add $(srctree)/drivers/clk/tegra into the include path, since it depends on clk headers in that directory: ccflags-y += -I$(srctree)/drivers/clk/tegra Bug 200346808 Change-Id: I34baf4b94ec3f2d0ad025afef3d3409ce5fdbb5f Signed-off-by: Shanmukha Srinivas R <ssrinivasr@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1692648 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* bpmp: fix k4.14 minimal buildBitan Biswas2018-03-12
| | | | | | | | | | | | | | | | | | | | Fix build error in bpmp sources: 1. call to clk bpmp APIs tegra_clk_debugfs_add and tegra_register_pto are made conditional to CONFIG_TEGRA_CLK_DEBUG 2. k4.14 does not define DMA_MEMORY_NOMAP hence use corresponding code only for earlier kernel versions Bug 200385931 Change-Id: I8a0afabfe9c8a5fa744882d772742d0d5f302815 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1672541 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* bpmp: Rename bpmp clk and reset driversPavan Kunapuli2018-03-08
| | | | | | | | | | | | | | | | | | To allow both downstream and upstream bpmp drivers to coexist, rename the downstream bpmp, reset and clk bpmp drivers to nv_bpmp.c, reset-nv-bpmp.c and clk-nv-bpmp.c respectively. Change-Id: I960897bd7d0c935e90599b23bf60951d886afcfe Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com> Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1657957 Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Timo Alho <talho@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* firmware: tegra: add NV_TEGRA_BPMP to buildTimo Alho2018-01-11
| | | | | | | | | | | | | | | | | | | BPMP driver was moved from linux-4.9 repository. Modify Makefiles and Kconfig files to add driver as part of build. Also rename downstream BPMP driver Kconfig to NV_TEGRA_BPMP to differentiate it from upstream driver that is available in recent kernel versions. Also add mention about it in menuconfig options. Bug 200325739 Change-Id: Ide3884b8c8afe8a4d89fa79932381b7cff8edf00 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1635551 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* clk: firmware: tegra: Extend BPMP clk debugfsAlex Frid2018-01-11
| | | | | | | | | | | | | | | Added BPMP clock debugfs extension node to pull into kernel debugfs all clocks that are exposed by BPMP, but not acquired by any driver, and add Tegra clock writable debugfs extensions that are available on non-BPMP Tegra platforms. Change-Id: I4a91684f10bcec4da2e80bf9d0ff625e950f9f85 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1633054 GVS: Gerrit_Virtual_Submit Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* clk: tegra: Expand bpmp clocks printsAlex Frid2018-01-11
| | | | | | | | | | | | | | | | Bug 1804902 Bug 1832505 Change-Id: Icded58883abbd2fd060e255237de585401a39ad1 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1576310 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Tested-by: Peter De Schrijver <pdeschrijver@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com>
* clk: tegra: bpmp: switch to determine rateMustafa Yigit Bilgen2018-01-11
| | | | | | | | | | | | | | This allows honoring min and max rates set in the clock request. Bug 1959611 Change-Id: Ide924d77ec64666263459acc411dfc14f2cb6324 Signed-off-by: Mustafa Yigit Bilgen <mbilgen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1521898 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-by: Sivaram Nair <sivaramn@nvidia.com> GVS: Gerrit_Virtual_Submit
* tegra: linsim removalWilliam Pierce2018-01-11
| | | | | | | | | | | | | Removed multiple tegra_platform_is_linsim if statements because of linsim deprecation. Bug 1903831 Change-Id: Id8dd87c9d4ab633175ef3f697fec5cf33dfc4077 Signed-off-by: William Pierce <wpierce@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1485008 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* clk: tegra: bpmp: add "staged" clk providerSivaram Nair2018-01-11
| | | | | | | | | | | | | | | | | | Add a "staged" clk provider for situtions where only a partial set of clks are supported and we want to let the drivers use what is avaialable. We implement this by first querying the bpmp firmware to see if the asked clk is supported. If yes, we return that clk to the caller. If not, then we create a dummy clk that use it. JIRA BPMP-429 Change-Id: I5a1e4ec01e83d5e01cf2f18c1592f9f0e26a7290 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/1456476 (cherry picked from commit d457f70cc459ac96a554a80e06486857aca3a09e) Reviewed-on: http://git-master/r/1462710 Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com>
* clk: tegra: bpmp: cleaning up few misc thingsSivaram Nair2018-01-11
| | | | | | | | | | | | | | | | | | | | | | - removed the MAX_PARENTS define that was merely duplicating MRQ_CLK_MAX_PARENTS - the global variable clks and max_clk_id are not really required (get these from clk_onecell_data) - CLK_IS_ROOT has become redundant; remove the (now) redundant code around this - simplified clk_bpmp_init() by moving the parent initialization to a separate function - folded few if/else branches by making num_parents unsigned. JIRA BPMP-429 Change-Id: I380b32929b8b60f29b4ec68dd7cfff3e2ab7fb89 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/1456475 (cherry picked from commit 5e674a41fe5b7f7802710fd69ccd163a7da7de6d) Reviewed-on: http://git-master/r/1462709 Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com>
* clk: tegra: allocate fake clks only as neededSivaram Nair2018-01-11
| | | | | | | | | | | | | | | | | | Rather than allocating all fake clks during init, allocate them only when asked. The primary motivation for this change is to be able to substitute fake clks when we wish to use a mix of both "real" clks and fake clksi (i.e use fake clks when we can-not find the corresponding real clks). JIRA BPMP-429 Change-Id: I2e7554bc75731a0cf6c2de3a55b747893df49f8b Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/1456474 (cherry picked from commit 931f1402373d0c66f8d550511c4d45f3a1ecc312) Reviewed-on: http://git-master/r/1462708 Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com>
* clk: tegra: add BPMP clock supportAntti P Miettinen2018-01-11
Add support for BPMP clocks. Bug 1844590 Bug 1832505 Change-Id: I7030c1910be932eb0054bb81813775c8215dfa84 Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Reviewed-on: http://git-master/r/1326947 GVS: Gerrit_Virtual_Submit Reviewed-by: Timo Alho <talho@nvidia.com>