Modified adsp driver to support the ION memory framework
for 7x27A and 8x25 targets
Change-Id: I0df75ed3d71575a28fe9f2267117a94c5a224296
Signed-off-by: Saikumar Kondaparthi <saikumar@codeaurora.org>
Add support for ion in MDP PPP drivers for accessing
source images and destination images.
Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Add EXPORT_SYMBOL to specific functions that should be
allowed to be used from within kernel modules.
Change-Id: I666c1f1a18d5af58906cb2185c5cf29d8596013f
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Venus PIL platform driver is used to bring Venus Video subsystem
out of the reset and start executing code. It also supports
shutting down the subsystem to save power when it is not in use.
Change-Id: I6e305efe548524fc71ee2fa2fba05b6b2b783ff7
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
Adds new event type to convey about the resources
requirement.
Change-Id: I7ea67231c247dc983463a02b828c10adc486b60d
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Adds support for Profile and Level support by setting
default values and calling set_property.
Change-Id: Ied289779bca6441c5cfdde7c766c02c14c8bce23
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Adds support for VC-1 decoder by adding the VC-1 Decoder
entry in vdec formats struct.
Change-Id: I4a5a278a93c252f4e3a16eb004d06d72dba6e491
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Seeing spurious PMIC BSV interrupt while otg is in A host mode. Hence
ignore PMIC BSV interrupts in this cases.
CRs-Fixed: 373645
Change-Id: I99c13c22e2485f2a891bfb3dd7870794ca86296b
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This is for compiling in the XHCI driver into msm8974's kernel.
Change-Id: I88a4c140d8b2a6001a823d79c9bc875cf511280e
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Add platform device describing the IOMMU domain layout for
8660. This will register the domains to allow allocation
of iommu virtual address space where appropriate.
Change-Id: Ieac645f647283dcea13ee272a881bd8b7192b1cc
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Per revised design decisions, cpu_is_msm8930() shall only
return true on 8930, and not on the 8627 variant. Modify
the cpu_is_xxx functions to reflect this change, and update
call sites accordingly.
Change-Id: I50b943f80c731717e6cd5d7fffb13aeec0f85a40
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Converting the dma driver to mutexes is a requirement for using the new
clk_prepare and clk_unprepare apis. In order to deal with callers who
run in atomic context, refactor the enqueuing code to run in a
workqueue. Introduce a new spinlock that only protects the command lists
and not the hardware so the enqueue routine can add to the lists in
atomic context.
Change-Id: I4f2ecdb8b6d2a25e6069bf9da61f9cf9d5c9e2b0
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Devices attributes have lockdep keys and so they should exist in
the data section. Failure to do this results in lockdep turning
itself off and warnings such as:
BUG: key eeb0883c not in .data!
Fix this problem in the pm8xxx-adc driver by initializing the
keys with sysfs_attr_init().
Change-Id: Ie42f9a28c343e32ef36ca3570d63a7bb557dfe64
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Update the hdev scan state with Inquiry start/cancel commands in
non-LE case accordingly. And also there was no check to see the
SCAN_BR mode before sending inquiry cancel.Added a check to see
if the scan state is SCAN_BR,then send inquiry cancel
Change-Id: I222f500fc20b991f4c3ec7eb1fc70bf20649f142
Signed-off-by: Bhasker Neti <bneti@codeaurora.org>
CRs-fixed: 359771
Migrate ION changes in LPA driver and decoder utilities
to use new ION API's
Change-Id: Iacc55ef50ef8523db608097b2b9e623605e95c6a
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
Use SR[TXEMT] in addition to ISR[TX_READY] when determining
whether new data can be transmitted to work around a
condition where ISR[TX_READY] may not always give an
accurate indication of the state of the queue.
Change-Id: Ia3a590a485647a005c7c019660f11566208c2667
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
These ops are not referenced by any code. Remove them.
Change-Id: I092b0fbb47d1d95524683b73472c04152c07a63d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
last_expired_ctxt_id was used briefly for per context timestamps and now
can be removed as it is no longer used.
Change-Id: I51d3947fe6da366824d1b947ae3448bee3518477
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Remove the device instantiation from the board file and
add it to the Device Tree.
Change-Id: I7c94e4b2dd0f076523c7d8f49c9196ed9eaa13f7
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
Proprietary chargers pull D+/- to specific voltages between 2.0-3.3V
(VLGC) for identification. The DM voltage may not exceed VLGC due
to pull-down resistor. Hence a proprietary charger is detected as
a Standard downstream port (SDP). Read line state to distinguish
between SDP and proprietary charger. The DP voltage would exceed
VLGC for proprietary chargers.
D- can be greater than VLGC when a low speed device is attached via
Accessory charger adapter (ACA-A). Hence mark the charger as ACA-A
if ID resistance is RID_A and D- > VLGC
CRs-Fixed: 368688
Change-Id: I3497efbe025abf150078a19d69254f75f5df5b2a
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
In case of CAMIF errors, notify the user so that it
can cleanup resources and exit gracefully.
Change-Id: Id6cea63ef47e1bd3881db7f61c6cc3cc3c9343b3
CRs-Fixed: 371688
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
BUG_ON() may be appropriate for critical clock initialization that will
prevent proper booting, but it is not appropriate for functions called
in hotplug notifiers while bringing additional CPUs on line. There, it
is better to just fail the hotplug rather than crashing on purpose.
Fix this by cleaning up the initialization error paths so that functions
called in the hotplug path return errors and cleanly rollback state.
Change-Id: I7b842956ea12ebb94c7c5b05de7a6dddfa298617
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Allow booting with only a subset of the CPUs enabled by default. The
others can potentially be added later with hotplug, at which point
the voltage, bus and clock requests for them will be applied.
Change-Id: Iff0758e6d3c79435c2c144da70079c8d60626224
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
CMA has been enabled unconditionally on all ARMv6+ systems to solve the
long standing issue of double kernel mappings for all dma coherent
buffers. This however created a dependency on CONFIG_EXPERIMENTAL for
the whole ARM architecture what should be really avoided. This patch
removes this dependency and lets one use old, well-tested dma-mapping
implementation also on ARMv6+ systems without the need to use
EXPERIMENTAL stuff.
Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[lauraa: Fixed conflicts in dma-mapping.c]
Change-Id: I17831dd98204dd8598fc469ae93f0ceb2c7c84c3
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
If two SSR drivers register with the same ramdump device pointing
at shared memory sysfs will complain about duplicate sysfs nodes:
WARNING: at fs/sysfs/dir.c:455 sysfs_add_one+0x78/0x98()
sysfs: cannot create duplicate filename
'/devices/virtual/misc/ramdump_smem'
Avoid this case by making the names of the ramdump devices
unique via smem-$subsystem (smem-modem, smem-dsps, etc.).
Change-Id: I6c3d5b0a4a7739a42b14940a141cc0c87168a4e0
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
PIL core code already calls shutdown on all processor during late
init, but we would like to remove that code. Therefore force GSS
into low power mode by explicitly calling the shutdown op during
driver probe. This achieves the same goal without requiring the
PIL core to call shutdown on all processors.
Change-Id: I13f0d2d6544d9e8d7668272e1059b27a1767ea8e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This patch adds support for CMA to dma-mapping subsystem for ARM
architecture. By default a global CMA area is used, but specific devices
are allowed to have their private memory areas if required (they can be
created with dma_declare_contiguous() function during board
initialisation).
Contiguous memory areas reserved for DMA are remapped with 2-level page
tables on boot. Once a buffer is requested, a low memory kernel mapping
is updated to to match requested memory access type.
GFP_ATOMIC allocations are performed from special pool which is created
early during boot. This way remapping page attributes is not needed on
allocation time.
CMA has been enabled unconditionally for ARMv6+ systems.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>
Conflicts:
arch/arm/include/asm/mach/map.h
arch/arm/mm/init.c
arch/arm/mm/mm.h
arch/arm/mm/mmu.c
Change-Id: I85e3b43a9fa1e3c4d33cbc85fff6dee1b815041d
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
If the proxy vote fails for some reason the wake lock will never
be released. Check the return value of the proxy vote and unlock
the wakelock if the proxy vote fails.
Change-Id: I0982896ab722bffed5f1c49247974dc84d5f3942
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Future versions of subsystem_restart() will require calling
subsystem_restart() with a pointer returned from
subsystem_register(). Remove this call for lpass from the modem
driver so that we can ease the transition.
Change-Id: Ib81016fcc221789ae6b886eb60733ea7273c698e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
All 8930 platform boards using the 1.2 SoC have been reworked so that
the sd card detect line's esd circuit is no longer powered by the sd
card's voltage regulator. So this means we can turn the regulator off
to save power without affecting the sd card detect functionality. This
change to the boards will be true for newer versions of the SoC too.
Change-Id: Iab5b87f3d00414668ea71aa6e87bd675a035ab59
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
The CXO is the only crystal source for the MSM on the
8974. Thus as long as the apps processor is awake,
the CXO clock is expected to be on. To be safe, vote
for CXO in the active set in post_init, which is the
earliest point that this vote can be asserted.
Change-Id: Ib38e97d9c44fc60d0ce898a8d600519a327bb66a
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
The bms module is reused in multiple pmics. It is now unnecessary
to check for 8921 versions in the driver. As a result of this change
older 8921 versions are not supported.
CRs-Fixed: 372679
Change-Id: Ie9131d47ed08fa6fa39812c9e60be34cc6280e4c
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
To correctly set rates of local clocks, the frequency
value should be rounded up to the supported values before
calling the API to set rate. This patch adds support for
rounding the rate to the supported values.
Change-Id: Id0cdc14121edfedbffce83834f521d8ce67b82f4
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
For the digital gain to be applied on the codec it is required to write
the digital gain register after the digital portion of the codec is
turned ON. This applies both for RX and TX digital path setup. Fix digital
gain setting sequence for RX and TX paths by rewriting the gain register
once the digital path is turned ON
Change-Id: I7b9c59c1b29b838845d27e406ba0f8a004c868b1
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Add data aggregation support using RNDIS Multi Packet feature
to achieve better UDP Downlink throughput. Max 3 RNDIS Packets
aggregated into one RNDIS Packet with this implementation.
With this change, seeing UDP Downlink throughput increase
from 90 Mbps to above 100 Mbps when using Iperf and sending
data more than 100 Mbps.
CRs-Fixed: 352010
Change-Id: I7c353d21d60002b66c08181fd621f9ab8753cb0f
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
After completing a wakeup, trigger the TX worker to start sending
pending data.
Without the fix, the TX worker will wait until either other activity or
a power-down transmit before sending pending TX data.
Change-Id: Ica90b35d9a3169992db49ff493f783c27a2989da
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
During VPE/VFE initialization, pass the device pointer to
regulator_get() as per the expected usage of the API.
Change-Id: Ide33ff05814e11d5955a8ec7916ef595dceb0f84
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Removed the ACK from the protocol when a sleep request is received when
already in the turning-off state to avoid an extra wakeup just to send
the ACK.
This case happens when both the local and remote sides transition to the
turning-off state and send a sleep request. Both sides will then
receive the sleep request at which point they can immediately transition
to the off side without having to perform a wakeup just to send the ACK.
Change-Id: I3fe4a82da34b68ef51ee9aa0c00507361b0717ed
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Temporarily increase the Application processor inactivity timeout to
prevent a local inactivity timeout while the external modem is booting.
This is necessary to allow releasing a power-collapse ACK change without
breaking SMUX until the external modem changes have also been mainlined.
Once the external modem changes have been mainlined, then this timeout
will be reduced to 250ms to improve power consumption when idle.
Change-Id: Ic9e12c849dd53955c6ff4a1eaff0a2ec761ffa35
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Store the MTU to use the proper MTU requested by remote if the
configuration fails for other options. If the remote does not
send the MTU in the next configuration request,
we need to use that value.
CRs-fixed: 373233
Change-Id: I35d9aa777f237bce5a4194036261128af1a7ada7
Signed-off-by: Mallikarjuna GB <gbmalli@codeaurora.org>
CONFIG_MMC_MSM_CARD_HW_DETECTION is no longer used so this
patch removes it completely from kconfig as well as from
defconfigs.
Change-Id: I8e7220722e0e90296d379105c61787ca54a1afd4
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>