30 Nov, 2011
19 commits
-
Make DVFS to try the next available frequency if the higher match
is not available. This will probably be the max available for the device.If we cannot match any thing at all, fail. This modifies the behavior
of device scale to guarenteeing _atleast_ the frequency requested into
_if possible_, the frequency requested.Signed-off-by: Girish S G
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Provide mechanism to know if DVFS is scaling on a specific domain.
This API will allow us to detect transition and take appropriate
measures in idle pathAcked-by: Todd Poynor
Acked-by: Santosh Shilimkar
Signed-off-by: Nishanth Menon
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Ability to show the dependency table helps debug some of the quirky
issues associated with dvfs when multiple device requests are present[nm@ti.com: log beautification, few fixes]
Signed-off-by: Nishanth Menon
Signed-off-by: Todd Poynor
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Let omap_init_opp_table run through all the OPP's instead of
returning on seeing the first invalid one. Skip the invalid ones
and give a fair chance to the rest to get registered,
if they are found to be valid.
For every invalid entry in the OPP table, instead of a pr_warn,
do a WARN so it gets the attention it needs.Signed-off-by: Rajendra Nayak
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Allocating dvfs_info for every device instead of doing it
for every voltage domain causes devices registered using
omap_dvfs_register_device() to disappear.Signed-off-by: Rajendra Nayak
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
dvfs.h is required by omap cpufreq driver that
lives in drivers folder, so move it to plat/
directory. Also move voltage.h, vc.h & vp.h
similarly to have clean header file inclusionsSigned-off-by: Afzal Mohammed
-
Register DVFS entries per opp entry to capture all
scalable domain devices.Signed-off-by: Nishanth Menon
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
With hwmods, ideally, we should have been able to do:
pdm = omap_hwmod_get_pwrdm(oh);
voltdm = pwrdm_get_voltdm(pdm);
clk = clk_get(oh->main_clk);Unfortunately hwmod database is'nt mature enough yet to handle
silicon variance within the same family, e.g. 4430 Vs 4460.
So we explicitly map the domain and clk names within the OPP
entries. This allows us to scale by having a central location for
the registration.IMPORTANT NOTE: we probably will need to fix core and iva clk
setting.Signed-off-by: Nishanth Menon
Signed-off-by: Vishwanath BS
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
This patch introduces helper functions for Device Voltage and Frequency
Scaling (DVFS).
Data structures added:
1. omap_dev_user_list: This structure maintains list of frequency requests per
device basis. When a device needs to be scaled to a particular frequency,
This list is searched to find the maximum request for a given device.
If noone has placed any request, device frequency is obtained from device
opp table.
2. omap_vdd_dev_list: This strcucture stores device list per vdd basis.
Whenever a device is registered with a vdd, it is added to this list.
3. omap_vdd_user_list: User list of devices associated with each voltage domain
instance. The user list is implemented using plist structure with priority
node populated with the voltage values.
4. omap_vdd_dvfs_info: This structure is used to abstract DVFS related
information per VDD basis. It holds pointer to corresponding vdd's
voltagedomain instance and pointer to user list.Following helper functions have been added to operate on above data structures:
1. omap_dvfs_add_vdd_user - function to add a user into omap_vdd_user_list
2. omap_vdd_user_list - function to remove a user from omap_vdd_user_list
3. omap_dvfs_register_device - function to register a device with vdd
4. omap_dvfs_add_freq_request - function to add a frequency request into
omap_dev_user_list
5. omap_dvfs_remove_freq_request - function to remove a frequency request from
omap_dev_user_list
6. omap_dvfs_find_voltage - function to find the opp corresponding to given
voltage
7. omap_device_scale - this is the function that is to be used for scaling
a specific domain. This is exported for drivers such as syslink, dspbridge
to use it while being a module.DVFS layer is initialized and basic data structures are allocated and
initialized as part of this.This patch is based on Vishwa and Thara's previous DVFS implementation, but with
major rework.note: generates "warning: 'omap_dvfs_remove_vdd_user' defined but not used"
this function will be used in future patches[nm@ti.com: misc cleanups including use voltage files from mach-omap2 dir]
[axelhaslam@ti.com: fixed issue with ondemand - required mutex unlock]
[toddpoynor@google.com: Add spinlocking of plists, GFP_ATOMIC]
Signed-off-by: Nishanth Menon
Signed-off-by: Axel Haslam
Signed-off-by: Todd Poynor
Signed-off-by: Vishwanath BS
Cc: Thara Gopinath
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia
[afzal@ti.com: fix warning]
Signed-off-by: Afzal Mohammed -
There could be dependencies between various voltage domains for
maintaining system performance or hardware limitation reasons
like VDD should be at voltage v1 when VDD is at voltage v2.
This patch introduce dependent vdd information structures in the
voltage layer which can be used to populate these dependencies
for a voltage domain.Based on original patch from Thara.
NOTE: OMAP4460 dependency table is not frozen yet, hence not added.
[nm@ti.com: cleanups and squash for OMAP3,4 data]
Signed-off-by: Vishwanath BS
Cc: Thara Gopinath
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Bootloaders should in theory setup a frequency which is enabled in
OPP table. However, there can be mismatches, and we should try
both going lower in addition to the going higher to find
a match if bootloader boots up at a OPP than the kernel thinks it
should be allowed. We also sequence the frequency and voltage settings
properly.Reported-by: Colin Cross
Signed-off-by: Nishanth Menon
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
OPP functions as described in Documentation/power/opp.txt
should be accessed under rcu_locks.Signed-off-by: Nishanth Menon
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
Move OMAP cpufreq driver from arch/arm/mach-omap2 into
drivers/cpufreq, along with a few cleanups:- generalize support for better handling of different SoCs in the OMAP
- use OPP layer instead of OMAP clock internals for frequency table initSigned-off-by: Santosh Shilimkar
[khilman@ti.com: move to drivers]
Signed-off-by: Kevin Hilman
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia -
This reverts commit 23409519e1de496d7d09db37b6dc90937874b5a3.
-
DMA support for MCSPI transfer enabled and removed unwanted flag
dma_not_enabled as DMA feature is enabled in omap2_mcspi.Signed-off-by: Philip, Avinash
-
Updated the size of the kernel partition on SPI flash to 3.5 MB.
Previously used size of 2.5 MB was not sufficient to hold uImage.Signed-off-by: Philip, Avinash
-
SPI clock is switching to 24 MHz on SPI bus 0 from 12 MHZ. 12 MHz done for
unifying the clock frequency between General purpose EVM and Industrial
automation EVM.Signed-off-by: Philip, Avinash
-
GFX/SGX driver has specific requriement for clock naming
convention, due to legacy platform support.
So create an alias for the clock "gfx_fclk" --> "sgx_ck".Signed-off-by: Vaibhav Hiremath
-
PRUSS driver has specific requriement for clock naming
convention, due to legacy platform support.
So create an alias for the clock "icss_uart_gclk" --> "pruss".Signed-off-by: Vaibhav Hiremath
29 Nov, 2011
7 commits
-
Irrespective of cpu-type, aren't ee supposed to do
same thing for any bypass cases (LPBYPASS/FRBYPASS/MNBYPASS),- dpll clock reparenting
- get dpll rateThis patch cleans up the code and removes the
unneccessary cpu check. -
Due to cleanup in clock tree, hwmod data also needs some cleanup.
-
The automated clock tree was completely messed up, so
this patch cleans up whole clock tree and follows the TRM. -
There were some custom API's being introduced for GFX and PRUSS
module clk_enable/disable, in order to bring the module out-of-reset.
Although there are HWMOD hooks available for doing same thing, so
now using generic omap2 clock API's, replacing these custom API's.This will mean, deleting prcm33xx.h and clock33xx.c
28 Nov, 2011
10 commits
-
SPL and U-boot partition provided with write permission in order to
update SPL and U-boot from kernel.Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
1. BCH8 ECC support is enabled.
2. Support for BCH8 error correction using ELM module is added.
3. ECC positions updated for BCH8 in synchronized with U-boot.
4. Corrected GPMC settings for BCH8 ECC scheme.Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
Module support for ELM is added.
Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
Clock details are corrected
Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
Hardware mode data is updated for ELM module
Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
bch error correction (t=4 and t=8) for 512 bytes support added.
Tested in omap-3630 es-1.1 silicon.Need to select the bch-ecc from board file. E.g.
arch/arm/mach-omap2/board-flash.c: board_nand_init()
board_nand_data.ecc_opt = OMAP_ECC_BCH4_CODE_HWThis patch has dependency on -
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg42658.htmlSigned-off-by: Parth Mauria Saxena
Signed-off-by: Sukumar Ghorai
Signed-off-by: Sriramakrishnan A G
Signed-off-by: Abhilash K V
Signed-off-by: Philip, Avinash
Signed-off-by: Hebbar, Gururaja -
Enable TPS65910 regulator
Signed-off-by: Afzal Mohammed
-
This patch enables the TAOS, ambient light sensor of am335x
Also adds the tsl2550, ambient light sensor to default kernel
configuration, am335x_evm_defconfigSigned-off-by: Anil Kumar Ch
-
This patch enables the TI's temperature sensor - 275 of am335x
Also adds the tmp275, temperature sensor to default kernel configuration
am335x_evm_defconfigSigned-off-by: Anil Kumar Ch
-
This patch adds lis33ldlh support to AM335X. lis33ldlh is connected
via I2C to am335x and I2C address is 0x18.Also adds lis33ldlh, accelerometer to default kernel configuration
am335x_evm_defconfigSigned-off-by: Anil Kumar Ch
23 Nov, 2011
2 commits
-
* Fix a wrong gpio pin used for bluetooth enable on the beta evm.
was using gpio0_17 while it should be gpio3_21* Add a 70 msec delay after turning wlan on to allow for all voltages
to settle down before starting sdio activitySigned-off-by: Eyal Reizer
-
This patch is added to route CPSW interrupts through ICSS module.
CPSW CPSW_RX and CPSW_TX interrupts are not directly used from CPSW
and instead they are routed through Timer module. This is done as an
software workaround for enabling interrupt pacing feature. As interrupt
Pacing works on C0_RX_PULSE interrupt connection to A8 INTC, which is
not connected to Cortex A8 interrupt controller directly due to hw issue,
it prevents interrupt pacing to work in AM33xx EVM. Therefore, Timer
capture module is used to pickup these interrupts and routed to A8 INTC.Signed-off-by: Chandan Nath
Signed-off-by: Afzal Mohammed
22 Nov, 2011
2 commits
-
Added PROFIBUS pinmux settings
Signed-off-by: Amit Shah
Signed-off-by: Amit Shah
-
Added AM33XX dependency for UIO_PRUSS driver to build in Kconfig. ICSS memory map base and length were added in am33xx.h Other PRU specific resources like ICSS IRQs for AM33XX, uio_pruss driver register were added to devices.c
Signed-off-by: Amit Shah