Age | Commit message (Collapse) | Author |
|
omap_hwmod_lookup() is not meant to be used in the interrupt disabled
context. Calling this creates a problem as there is mutex_lock which might_sleep.
Removed the usage of this function in the interrupt disabled context.
Signed-off-by: Hema HK <hemahk@ti.com>
|
|
The internal phy is default put in operation mode which generates the 60MHz clock to musb.
this will block the core retention incase of not enabling the usb.
Powerdown the phy when there is no usb enabled.
Signed-off-by: Hema HK <hemahk@ti.com>
|
|
Clearing bit 22 in the PL310 Auxiliary Control register (shared
attribute override enable) has the side effect of transforming Normal
Shared Non-cacheable reads into Cacheable no-allocate reads.
Coherent DMA buffers in Linux always have a Cacheable alias via the
kernel linear mapping and the processor can speculatively load cache
lines into the PL310 controller. With bit 22 cleared, Non-cacheable
reads would unexpectedly hit such cache lines leading to buffer
corruption
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
|
|
Different versions of twl6030 which can be used on various OMAP4430
based SDP's have different interpretation of vsel values.
Hence dynamically populate the vsel values based on the twl6030
version rather than hardcoding.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
|
|
When ABE power domain goes to retention, the contents of MCBSP is lost.
The value of SYSCONFIG register in MCBSP is set to SMARTIDLE and ENWAKEUP by
the hwmod framework. But once the ABE power domain goes to retention, the
contents of MCBSP register is lost and set to reset values (NOIDLE and DISABLE
WAKEUP).
This patch creates two API's to save and restore the contents of MCBSP
SYSCONFIG register. Save API is called in probe to save the content of
SYSCONFIG register and restore API is called in request after
pm_runtime_get_sync. Also omap_mcbsp_read() is modified to update the cache
when reading from the register.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Shubhrajyoti D <shubhrajyoti@ti.com>
|
|
ipu_pm api to set the bandwidth constraint for L3 bus
New api is:
ipu_pm_module_set_bandwidth(rsrc,
target_rsrc,
bw);
bw is received in KiB/s and converted into Hz
Add support to set performance and latency cstrs to
fdif.
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
|
|
target_level was being printed uninitialized in case of an error.
moving the unlock label after printing target_level fix the warning
and issue.
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
|
|
The musb_notifier_call function declaration was under CONFIG_PM check
and the use was done unconditionally. Declared it outside the CONFIG_PM
as this function will be used for non-pm build also.
Removed the warnings.
Added the dummy musb_context_save_restore function in case of non CONFIG_USB_MUSB_SOC.
Signed-off-by: Hema HK <hemahk@ti.com>
|
|
changes. Disable the nop transciever call from the panda boardfile Enabled the OTG stack by default in omap_4430sdp_defconfig. Registered the notification for VBUS and IDGND events from TWL6030 OTG transciever. Handle the VBUS events(configure the control module register to set the session valid, VBUS valid and session end bits. Configure the control module IDGND bit to inform mentor controller about the change in IDGND. Wait for the mentor to be ready as A device or Bdevice based on the IDGND input,call the TWL6030 api to set the VBUS on/off.
During port suspend enable the SUSPENDM to suspend the phy which will cut the
60MHz clock. This will allow the core domain transitioning to retention when
device is supended.
With this changes if the USB device is connected with micro converter
(ID will be grounded)
The the device will be enumerated as hosy.
If the micro cable is connected to host, it is enumerated as device.
Cleaned up the powerdown code as the phy powerdown will be handled based on
the connect/disconnect events.
Signed-off-by: Hema HK <hemahk@ti.com>
|
|
Disable the nop transciever call from the omap4sdp boardfile
Enabled the twl6030usb under twl6030.
Registered as child for TWL6030.
Added the twl6030 usb tranciever option in the Kconfig
Signed-off-by: Hema HK <hemahk@ti.com>
|
|
Signed-off-by: Mythri P K <mythripk@ti.com>
|
|
Some devices (like McPDM on omap4) might have external dependecies
to be met before the device can be resumed /enabled.
Hence only increment the usecount (as is done by the dpm frameowrk)
and not really try to resume the device.
Reported-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
|
|
This is required to build WLAN driver properly.
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
|
|
This patch suppresses spurious info prints in the voltage layer.
Signed-off-by: Thara Gopinath <thara@ti.com>
|
|
Smartreflex needs to be disabled before AUTO RET for various
voltage domains can be enabled.
Hence do this in idle patch for all 3 VDD's. This is not very
optimal for IVA as it can transition to RET evein outside of the
cpuidle on MPU.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
|
|
Since dsp/tesla today is not handled by syslink, making
it come out of reset at hwmod init leaves it active and
gates CHIP retention.
Hence do not reset dsp during hwmod init. This patch can
later be reverted once syslink does handle dsp/tesla and
takes care of putting it to sleep once its not in use.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
|
|
arch/arm/mach-omap2/board-4430sdp.c:1029: warning: function declaration
isn't a prototype
arch/arm/mach-omap2/hsmmc.c: In function 'omap2_hsmmc_init':
arch/arm/mach-omap2/hsmmc.c:295: warning: assignment from incompatible
pointer type
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
|
|
Add the common proc args structure to store the
status of the api in order to match userspace
side.
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
|
|
Each core sys/app were requesting gpt3/4, respectively,
as bios timer source clock. This patch is disabling the use
of those timers as bios timer source since now the internal
M3 timers are set for this purpose. Anyway the mechanism to
set any timer as bios timer source was kept.
If a gptimer is set as bios timer source changes in Ducati side
are needed.
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
|
|
The list of fd handles most be protected while traversing
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
|
|
In case omap_hwmod_lookup returns NULL, don't proceed further for this
instance and continue with next device.
Reported by: Rajendra Nayak
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
|
|
iommu_notify_event function is called from interrupt context, and this
function is using internally blocking_notifier_call_chain call that could
sleep.
The fix is changing blocking_notifier to raw_notifier and let the callers
of the iommu_notify_event handle the protection.
iommu_notify_event is used for 2 purposes. One is for MMU FAULT notification
to the device handler where the devh sets the error state to Fault and prevents
the broadcasting of any iommu close notifications. This shouldn't be blocking.
Second, it is used to broadcast the notifications of the Process ID that closed
the iommu handle to remote processor. This could be blocking.
Reported by Hari Nagalla
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Hari Nagalla <hnagalla@ti.com>
|
|
This patch configures VC on OMAP4 to enable Device
RET support.
The vc_config structure is updated to support additional
VDD on omap4. This structure needs cleanup to use an
ARRAY based on no of VDD's supported on platform.
The prescale and count settings are conservative and needs
a relook to optimize.
They are also assumed to be independent of PMIC, if found
otherwise they need to find a place in the vc_config struct
as well.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
|
|
Add sysfs entries to control battery end of charging voltage, battery current,
input current limit, watchdog, vbus min, termination current which will be
used by thermal manager
Add sysfs entries to read low level fuel gauge accumulator, FG counter, bsi
Add support to modify monitoring interval
Add support to modify time interval for current averaging
Mask VAC fault interrupt to prevent wakeup from suspend with AC charging
Signed-off-by: Balaji T K <balajitk@ti.com>
|
|
The gating of pad_clks and slimbus_ck is controlled by the PRCM, but
since the clock source is external, this is the SW responsability
to gate / un-gate it when the mcpdm of slimbus clock need to be used.
Add SW control to enable / disable this gating in the pad_clks_ck
clock node and slimbus_clk.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
|
|
Added pre-decimation support for DISPC layers to reduce clock
requirements due to downscaling. Downscaling will automatically
predecimate if there are not enough clock cycles to downscale
using the FIR filters, or if GFX plane needs to be decimated.
Decimation ranges are controllable separately in the x and y
directions via sysfs controls:
/sys/devices/platform/omapdss/overlay*/[xy]_decim
Signed-off-by: Lajos Molnar <molnar@ti.com>
Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
|
|
Signed-off-by: Mythri P K <mythripk@ti.com>
|
|
Signed-off-by: Mythri P K <mythripk@ti.com>
|
|
Signed-off-by: Mythri P K <mythripk@ti.com>
|
|
Signed-off-by: Mythri P K <mythripk@ti.com>
|
|
Kill this compile warning:
CC arch/arm/plat-omap/cpu-omap.o
arch/arm/plat-omap/cpu-omap.c:47: warning: "CONFIG_ARCH_OMAP3" is not defined
Signed-off-by: Silesh C V <silesh@ti.com>
|
|
The EHCI and OHCI drivers uses Run time pm APIs now.
This change enables the global suspend and resume of EHCI and OHCI.
Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
|
|
receive by default
RCCR and XCCR register values are modified to disable transfer and receive
in the case of "cancelling the transmission". But these values are maintained
even after disabling the clock and enabling the clock. This prevents the
following test cases executed to disable data transfer.
This fix resets the XDISABLE bit and RDSIABLE bit in XCCR and RCCR register
by default.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
|
|
arch/arm/mach-omap2/board-n8x0.c: In function 'n8x0_mmc_init':
arch/arm/mach-omap2/board-n8x0.c:546: warning: passing argument 1 of
'omap2_init_mmc' from incompatible pointer type
arch/arm/plat-omap/include/plat/mmc.h:258: note: expected 'struct
omap_mmc_platform_data *' but argument is of type 'struct
omap_mmc_platform_data **'
Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
|
|
This patch adds L3 interconnect error handling for OMAP4. For now
it is intended to be a debug only patch.
To enable L3 errors:
System Type --->
[ ] Enable L3 error logging
Some examples to create L3 errors:
./readmem 0x4bf0a00C : Standard error with GPMC
./readmem 0x480ba000 : Custom error with L4 PER2 domain
./readmem 0x4b00a000 : Standard error with source SHA1
Signed-off-by: Sricharan <r.sricharan@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
|
|
Fix this build warning:
CC arch/arm/mach-omap2/board-omap4panda.o
arch/arm/mach-omap2/board-omap4panda.c:512: warning: function declaration isn't a prototype
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Panduranga <x0125717@ti.com>
|
|
Fix this build error when CONFIG_OMAP2_DSS_HDMI is not set.
CC arch/arm/mach-omap2/board-omap4panda.o
arch/arm/mach-omap2/board-omap4panda.c:166: error: 'sdp4430_hdmi_audio_device' undeclared here (not in a function)
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
|
|
Add a defconfig for the OMAP4 pandaboard. This is based on
the existing omap_4430sdp_defconfig.
- Enable EHCI as built-in. Disable OHCI.
- Build-in drivers for the SMSC95xx ethernet controller
- Build-in support for USB-storage, and USB-HID
- Increase OMAP2_VRAM_SIZE to 16MB (also runtime configurable)
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Nishant Kamat <nskamat@ti.com>
Cc: Sebastien Jan <s-jan@ti.com>
|
|
Update the 4430SDP defconfig:
- Enable TIWLAN_SDIO by default
- Enable USB core
- Build EHCI and OHCI as modules
- Build mass-storage, usbmon, cdc-acm, usbtest as modules
- Enable MUSB debugging
- Disable SERIAL_8250 driver as this is no longer needed
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Nishant Kamat <nskamat@ti.com>
|
|
Run the existing omap_4430sdp_defconfig through `make savedefconfig`.
No functional changes - the resulting .config file is exactly
the same as before.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
|
|
omap_4430sdp_defconfig,omap3_defconfig )
The patch solves below warnings.
arch/arm/mach-omap2/omap_hwmod_2430_data.c:423: warning: 'i2c_dev_attr' defined but not used
arch/arm/mach-omap2/prcm.c:123: warning: 'prcm_context' defined but not used
arch/arm/plat-omap/omap-pm.c: In function 'omap_pm_set_min_bus_tput':
arch/arm/plat-omap/omap-pm.c:249: warning: 'target_level' may be used uninitialized in this function
Tested on: 3430SDP and 4430SDP.
Signed-off-by: Avinash.H.M.<avinashhm@ti.com>
|
|
Now apps can wait for remote proc START and STOP events
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
|
|
Use dma calls for cache flushing under a configurable flag.
Use this option until Multimedia integration issues are sorted out.
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
|
|
In cases where a module(hwmod) does not become accesible on enabling
the main clocks (can happen if there are external clocks needed
for the module to become accesible), make sure the clocks are not
left enabled.
This ensures that when the requisite external depenedencies are met
a omap_hwmod_enable and omap_hwmod_idle/shutdown would rightly enable
and disable clocks using clk framework. Leaving the clocks enabled in
the error case causes additional usecounting at the clock framework
level leaving the clock enabled forever.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
|
|
This patch would fix the compilation warning:
arch/arm/mach-omap2/devices.c: In function 'omap_display_init':
arch/arm/mach-omap2/devices.c:891: warning: ISO C90 forbids mixed declarations and code
Signed-off-by: Mayuresh Janorkar <mayur@ti.com>
CC: Anand Gadiyar <gadiyar@ti.com>
|
|
This patch enables ondemand governor in omap_4430sdp_defconfig.
Signed-off-by: Thara Gopinath <thara@ti.com>
|
|
The patch "OMAP: DSS: Add display board file for zoom boards" was not merged
completely, resulting in compilation errors with omap3_defconfig.
The zoom_display_init() declaration was missing from file:
arch/arm/mach-omap2/include/mach/board-zoom.h
Signed-off-by: Samreen <samreen@ti.com>
|
|
Fix bug in error message string referencing
Signed-off-by: Paul Hunt <hunt@ti.com>
Add platform data for DSP resource and fix
attributes for MPU and L3 interconnect.
Signed-off-by: Paul Hunt <hunt@ti.com>
Provide internal APIs for performance and
latency constraint frameworks to use to assert
these constraints into the system power management.
Signed-off-by: Paul Hunt <hunt@ti.com>
MPU and CORE freq/lat cstrs
Add special handling for MPU and CORE frequency and
latency constraints.
To specify a constraint to MPU or CORE the api needs
to be called passing the following to the api:
- IPUPM_SELF
- IPUPM_MPU
- IPUPM_CORE
Signed-off-by: Paul Hunt <hunt@ti.com>
DVFS support in ipu_pm
Calling the dvfs apis per resource.
Included:
- ipu[perf|lat]
- iss[perf|lat]
- ivahd[perf|lat]
- L3 bus[lat]
- mpu[perf|lat]
Pending:
- fdif
- dsp
Note: Latency calls are working but hasnt been tested.
Perf/rate calls are working.
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
(cherry picked from commit 3c1cdb45bb67d11eda14420a7b8eaacff0c24173)
|
|
Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
|
|
Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: Samreen <samreen@ti.com>
|