- Dec 10, 2015
-
-
Tony Lindgren authored
We have never had dm814x booting properly with mainline kernel using the legacy platform data based booting. Current minimal support is device tree only. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Sep 17, 2015
-
-
Dave Gerlach authored
Add omap2_clk_enable_autoidle_all to am43xx_init_late otherwise the call to omap2_clk_disable_autoidle_all in am43xx_init_early may cause some clocks to always stay active and prevent low power mode transitions. Signed-off-by:
Dave Gerlach <d-gerlach@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Jul 25, 2015
-
-
Russell King authored
This reverts commit 606da482. We actually need this code for proper behaviour of OMAP4, and it needs fixing a different way other than just removing the code. Disabling code which is necessary in the hopes of persuing multiplatform kernels is a stupid approach. Acked-by:
Tony Lindgren <tony@atomide.com> Acked-by:
Richard Woodruff <r-woodruff2@ti.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Jul 24, 2015
-
-
Tony Lindgren authored
Let's add minimal set of dm814x hwmods to have a bootable system. Cc: Matthijs van Duin <matthijsvanduin@gmail.com> Cc: Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Jul 16, 2015
-
-
Tony Lindgren authored
Let's add a minimal clocks for dm814x to get it booted. This is mostly a placeholder and relies on the PLLs being on from the bootloader. Note that the divider clocks work the same way as on dm816x and am335x. Cc: Matthijs van Duin <matthijsvanduin@gmail.com> Cc: Mike Turquette <mturquette@linaro.org> Cc: Paul Walmsley <paul@pwsan.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Tero Kristo <t-kristo@ti.com> Acked-by:
Stephen Boyd <sboyd@codeaurora.org> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
For now, let's just add the ones shared with dm816x. The dm814x specific ones can be added as they are tested. Cc: Matthijs van Duin <matthijsvanduin@gmail.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Nishanth Menon authored
DRA7 uses OMAP5 IO table at the moment. This is purely spurious since the OMAP5 and DRA7 register maps are different in many aspects. AM57xx/DRA7 TRM Reference: http://www.ti.com/lit/ug/spruhz6/spruhz6.pdf NOTE: Most of the drivers are already doing ioremap, so, there should'nt be any functional improvement involved here, other than making the initial iotable more accurate. Fixes: a3a9384a ("ARM: DRA7: Reuse io tables and add a new .init_early") Signed-off-by:
Nishanth Menon <nm@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Jun 02, 2015
-
-
Tero Kristo authored
We should avoid exporting data from drivers, instead use an API for registering the clock low level operations. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
This is not needed for anything anymore, so remove it completely. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
- Mar 31, 2015
-
-
Tero Kristo authored
OMAP4, OMAP5 and DRA7 now parse DT entries for control module address spaces, and set up syscon mappings appropriately. Low level IO init is updated to remove the legacy control module mappings for these devices also. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
omap4_ctrl_pad_readl/writel are no longer used by anybody, so remove these. Syscon / pinctrl should be used to access the padconf area instead. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
This gets rid of need for some exported driver APIs, and simplifies the initialization of the CM driver. Done in preparation to make CM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
This gets rid of need for some exported driver APIs, and simplifies the initialization of the PRM driver. Done in preparation to make PRM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
- Mar 27, 2015
-
-
Tero Kristo authored
There is no need to provide the control module base address through a low-level API from the low-level IO init, as this information is available through DT. This patch adds a new API to initialize the control module though, but mostly makes the old API obsolete. The old API can be completely removed once OMAP3 is made DT only. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
There is no need to provide the PRM base address through a low-level API from the low-level IO init, as this information is available through DT. Re-routed the parsing function to be called from the PRM drivers also to simplify the implementation under io.c. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
There is no need to provide the CM base address through a low-level API from the low-level IO init, as this information is available through DT. Re-routed the parsing function to be called from the CM drivers also to simplify the implementation under io.c. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
Splits the clock related provider module inits under their own driver files. Previously this was done for all modules under the common PRM driver. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
- Mar 25, 2015
-
-
Tero Kristo authored
OMAP4 has different ordering of PRM and CM init calls in the early init. Re-oder these accordingly for OMAP4 also. This is needed so that we can do some optimizations in the following patches for the PRCM init. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
There is no need to call this separately from io.c, rather this can be done commonly under the CM driver. Also, this patch makes the API static, as it is no longer used outside the driver file. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
There is no need to call this separately from io.c, rather this can be done commonly under the PRM driver. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
This avoids conflicts in the global namespace, and is more descriptive of the purpose anyway. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
- Mar 16, 2015
-
-
Stefan Hengelein authored
The Kconfig-Option OMAP4_ERRATA_I688 is never visible due to a contradiction in it's dependencies. The option requires ARCH_MULTIPLATFORM to be 'disabled'. However, an enclosing menu requires either ARCH_MULTI_V6 or ARCH_MULTI_V7 to be enabled. These options inherit a dependency from an enclosing menu, that requires ARCH_MULTIPLATFORM to be 'enabled'. This is a contradiction and made this option also unavailable for non-multiplatform configurations. Since there are no selects on OMAP4_ERRATA_I688, which would ignore dependencies, the code related to that option is dead and can be removed. This (logical) defect has been found with the undertaker tool. (https://undertaker.cs.fau.de ) Signed-off-by:
Stefan Hengelein <stefan.hengelein@fau.de> Acked-by:
Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Jan 30, 2015
-
-
Tero Kristo authored
As the clock data is now available for the legacy boot also from the clock driver, use this rather than the data under the mach folder. This allows us to get rid of the old clock data completely. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Acked-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Michael Turquette <mturquette@linaro.org>
-
- Jan 26, 2015
-
-
Tony Lindgren authored
Add minimal hwmod support that works at least on dm8168. This is based on the code in the earlier TI CDP tree, and an earlier patch by Aida Mynzhasova <aida.mynzhasova@skitlab.ru>. I've set up things to work pretty much the same way as for am33xx. We are basically using cm33xx.c with a different set of clocks and clockdomains. This code is based on the TI81XX-LINUX-PSP-04.04.00.02 patches published at: http://downloads.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/TI81XX_04_04/04_04_00_02/index_FDS.html Cc: Aida Mynzhasova <aida.mynzhasova@skitlab.ru> Cc: Brian Hutchinson <b.hutchman@gmail.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Aida Mynzhasova authored
This patch adds required definitions and structures for clockdomain initialization, so omap3xxx_clockdomains_init() was substituted by new ti81xx_clockdomains_init() while early initialization of TI81XX platform. Note that we now need to have 81xx in a separate CONFIG_SOC_TI81XX block instead inside the ifdef block for omap3 to avoid make randconfig build errors. This code is based on the TI81XX-LINUX-PSP-04.04.00.02 patches published at: http://downloads.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/TI81XX_04_04/04_04_00_02/index_FDS.html Cc: Brian Hutchinson <b.hutchman@gmail.com> Cc: Paul Walmsley <paul@pwsan.com> Signed-off-by:
Aida Mynzhasova <aida.mynzhasova@skitlab.ru> [tony@atomide.com: updated to apply, renamed to clockdomains81xx.c, fixed to use am33xx_clkdm_operations, various fixes suggested by Paul Walmsley] Reviewed-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Jan 15, 2015
-
-
Tony Lindgren authored
We cannot use the omap3 pm support on 81xx. Cc: Brian Hutchinson <b.hutchman@gmail.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
Otherwise it will return true for cpu_is_omap34xx() which we don't want for the clocks and hwmod. It's closer to am33xx for the clocks and hwmod than to the omap34xx. We also want to be able to detect 814x and 816x separately as at least the clocks are different with 814x using a apll and 816x using a fapll for the source clocks. Note that we can also remove omap3xxx_clk_init() call as it's wrong and ti81xx are booting in device tree only mode. Cc: Brian Hutchinson <b.hutchman@gmail.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Dec 12, 2014
-
-
Rafael J. Wysocki authored
After commit b2b49ccb (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere in the code under arch/arm/ (the defconfig files will be modified later). Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by:
Nishanth Menon <nm@ti.com> Acked-by:
Sekhar Nori <nsekhar@ti.com> Acked-by:
Santosh Shilimkar <ssantosh@kernel.org>
-
- Oct 27, 2014
-
-
Tero Kristo authored
cminst44xx.h will be removed, thus move the public APIs to cm44xx.h header. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Tested-by:
Nishanth Menon <nm@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tero Kristo authored
Added support for prm_init for AM33xx SoC. This is needed to register SoC specific prm_ll_data for these devices. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Tested-by:
Nishanth Menon <nm@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tero Kristo authored
This is needed for expanding the generic CM driver API to include AM33xx and OMAP4 also. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Tested-by:
Nishanth Menon <nm@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tero Kristo authored
AM43xx will be re-using OMAP4 PRM driver, thus call its init function. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Tested-by:
Nishanth Menon <nm@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Sep 29, 2014
-
-
Tero Kristo authored
Previously, the TI clock driver initialized all the clocks hierarchically under each separate clock provider node. Now, each clock that requires IO access will instead check their parent node to find out which IO range to use. This patch allows the TI clock driver to use a few new features provided by the generic of_clk_init, and also allows registration of clock nodes outside the clock hierarchy (for example, any external clocks.) Signed-off-by:
Tero Kristo <t-kristo@ti.com> Cc: Mike Turquette <mturquette@linaro.org> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com> Cc: Jyri Sarha <jsarha@ti.com> Cc: Stefan Assmann <sassmann@kpanic.de> Acked-by:
Tony Lindgren <tony@atomide.com>
-
- Sep 18, 2014
-
-
Rajendra Nayak authored
In order to handle errata I688, a page of sram was reserved by doing a static iotable map. Now that we use gen_pool to manage sram, we can completely remove all of these static mappings and use gen_pool_alloc() to get the one page of sram space needed to implement errata I688. omap_bus_sync will be NOP until SRAM initialization happens. Suggested-by:
Sekhar Nori <nsekhar@ti.com> Signed-off-by:
Rajendra Nayak <rnayak@ti.com> Signed-off-by:
Dave Gerlach <d-gerlach@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Sep 08, 2014
-
-
Rajendra Nayak authored
With consolidated code, now we can add the required hooks for DRA7 to enable power management. Signed-off-by:
Rajendra Nayak <rnayak@ti.com> [nm@ti.com: minor modifications] Signed-off-by:
Nishanth Menon <nm@ti.com> Reviewed-by:
Kevin Hilman <khilman@linaro.org> Tested-by:
Kevin Hilman <khilman@linaro.org> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Santosh Shilimkar authored
With consolidated code, now we can add the required hooks for OMAP5 to enable power management. Signed-off-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> [nm@ti.com: minor rebase updates] Signed-off-by:
Nishanth Menon <nm@ti.com> Reviewed-by:
Kevin Hilman <khilman@linaro.org> Tested-by:
Kevin Hilman <khilman@linaro.org>
-
- Jul 15, 2014
-
-
Tero Kristo authored
This shall be used to replace the cpu type checks around the clock code. Actual bit values will be introduced in patches later. Signed-off-by:
Tero Kristo <t-kristo@ti.com> Reviewed-by:
Mike Turquette <mturquette@linaro.org> Signed-off-by:
Paul Walmsley <paul@pwsan.com>
-
- Jul 02, 2014
-
-
Tero Kristo authored
This is no longer needed as clock data is provided through DT. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
Tero Kristo authored
Otherwise legacy boot clock data is used. This patch also includes the clock data files to the base dtsi files. Signed-off-by:
Tero Kristo <t-kristo@ti.com>
-
- May 29, 2014
-
-
Sekhar Nori authored
Add support for L2 cache controller (PL310) on AM437x SoC. Signed-off-by:
Sekhar Nori <nsekhar@ti.com> Acked-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-