PM8038 MPP3 is not used for USB or HDMI control.
Therefore, remove the erroneous MPP initialization.
CRs-fixed: 376505
Change-Id: I9f3180cca989b1ae4b8065cc7fa62804603a2c99
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
Add the device tree entry and the clock table entries for
the KGSL IOMMU device.
Change-Id: Ib79955ad32a0a3a5e32d8d89f5bb77e3628a955b
Signed-off-by: liu zhong <zhongl@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Update the clk_lookup device mappings so that the TSPP driver
can control TSIF clocks.
Change-Id: If5eb1768e3f922c4c50fc86f39bf5a55fd9ba5aa
Signed-off-by: Joel Nider <jnider@codeaurora.org>
clk_prepare and clk_unprepare are now required to be called before
clk_enable and after clk_disable. Do this for the dma driver.
Additionally, split the msm_dmov_clk_toggle function into two, since we
always know the value of the second argument at compile time.
CRs-Fixed: 366651
Change-Id: I0ed229187f49352cfe59cbbf211f5cdabfe06a9d
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Since the context where unlink will be called is unaware of
validity of hci_conn pointer, fetch the valid hci_conn
before unlink.
CRs-fixed: 370274
Change-Id: I30a35acdf75c9b4787af6629c7b32d2d31b8ad80
Signed-off-by: Mallikarjuna GB <gbmalli@codeaurora.org>
TLMM v3 version has dedicated pads for only SDC1
and SDC2 among all SDC slots as opposed to v2 version.
Change-Id: I73c54f0a2799e6ffca74e5b846ac8339d0af3bb8
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Finer granularity is needed when mapping into the IOMMU's for
rotator and mdp for secure playback. During secure playback
HLOS will only have access to map into one context bank. The
other context bank is secured and programmed by TrustZone.
Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and
DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN
and ROTATOR_DST_DOMAIN.
Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
MVS driver to send correct frame type for EVRC codec.
Add comments in header file to improve readability.
Add new enumeration for g711 codec.
Change-Id: I359729126df29ece9ff3fc8414e73059da9d98e7
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
Since, IOMMU will be enabled by default, check the IOMMU support
from hardware and decide the code path.
Change-Id: I1cea3ff145add2c8ed9e99edecebfb80b1c78760
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
The sensor OV8825 supports internal actuator driver
for autofocus operation. Adding necessary board information
to enable the autofocus driver support
Change-Id: I8d9a19b31d9fec7dafc6e6b9aabb4c930d0b9ac0
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
commit 56dc742d (USB: msm_otg: Rename MHL USB high speed switch
regulator name) renamed MHL USB high speed switch regulator name
from mhl_ext_3p3v to mhl_usb_hs_switch in OTG driver. Update the
same for 8064 board otherwise USB lines are not routed to USB PHY.
Change-Id: I1062cbc1440487881b64334799eaf488700dc102
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Both UDCs compiles now, will be attached to usb gadget layer according to
usb_core_id.
Change-Id: I84d476bf9b031289ba131708c9df29d1c29c760c
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
After the UDC class conversion, there is no reason to
limit the kernel to have only one UDC controller in the system.
Change-Id: I15d1eef19187e772131ae217452dc22e294f4a78
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Set usb_core_id property in the platform data of four devices:
1. usb_core_id = 0 for the HSUSB ci13xxx device
2. usb_core_id = 1 for the HSIC ci13xxx device
3. usb_core_id = 0 for the HSUSB android device
4. usb_core_id = 1 for the HSIC android device (new device added)
Change-Id: I28fd5afeb2a137864868d799cd51d23bd9812be3
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
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>