aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* x86/mrst: Add platform data for Max3110 devicesFeng Tang2010-12-091-0/+11
| | | | | | | | Those info will be used when spi controller driver setup max3110 as a slave device Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* spi/dw_spi: Don't quit when DMA initialisation failsFeng Tang2010-12-091-2/+4
| | | | | | | Even if the dma init failed, we can keep on going with Program IO mode. Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* spi/dw_spi_mid: make dma filter check pass on Medfield platformFeng Tang2010-12-091-2/+7
| | | | | | | | | During requesting a dma channel, the filter function will do a sanity check, current driver only consider the Moorestown case, this add the Medfield case. Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* ssp: checkpatch clean upAlan Cox2010-12-091-55/+107
| | | | | | Just whack the style into place Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_mid_ssp: Fix the header defines to match the file nameAlan Cox2010-12-091-4/+4
| | | | | | Keep to the standard Linux form Signed-off-by: Alan Cox <alan@linux.intel.com>
* This patch adds the I2S SSP common driver that supports I2S audio onLouis LE GALL2010-12-096-1/+2368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intel MID platforms. It is used for sending/receiving I2S audio samples It support new DMA interface of kernel 2.6.37 Below is a simple diagram that explain where is the intel_mid_i2s in software architecture: +-----------+ | | |Pulse Audio| | | | | +-----------+ | | +------------+------------+ | | | | | | +-----------+ +-----------+ | | |Lib cmt | |Alsa Lib |------+ |speech |------+ | | | |data | | | | | | | | +-----------+ | +-----------+ | | | | | | | User ......|............|.........................|................................. | | | Kernel | | | | | | | | | | | | | | | | | | \|/ \|/ \|/ V V V +---------+ ++---------++ ++---------++ | | ||Alsa snd || ||cmt || |Intel SST| ||driver || ||speech || | "MAD" | ||SSP || ||driver || | | ||BT/FM || || || +---------+ ++---------++ ++---------++ | | | | | | | | | | | | \|/ | \|/ V | V +-----------+ | ++---------++ | | | \ ||intel mid|| |LPE Driver | +------------------>||i2s || | | / ||unified || | | ||driver || +-----------+ ++---------++ | | | | Kernel ......|......................................|................................. | | Hardware \|/ \|/ V V +-- --+ +-- --+ | | | | |MSIC | |SSP in I2S | | | |config | | | | | +-- --+ +-- --+ Signed-off-by: Louis LE GALL <louis.le.gall@intel.com>
* Medfield_Current_Monitoring_DriverDurgadoss R2010-12-095-11/+771
| | | | | | | | | | | | | | This is the Intel Medfield Current Monitoring Driver patch. The platform specific data required by the driver are provided by adding necessary code in arch/x86/platform/mrst/mrst.c This driver monitors the platform current usage and handles interrupts when the configured current thresholds are crossed. A detailed documentation for this, has been added in Documentation/hwmon/current_monitor. Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* mrst/vrtc: avoid using cmos rtc opsJacob Pan2010-12-092-1/+14
| | | | | | | | | | If we don't assign Moorestown specific wallclock init and ops function the rtc/persisent clock code will use cmos rtc for access, this will crash Moorestown in that the ioports are not present. Also in vrtc driver, should avoid using cmos access to check UIP status. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* PTI driver cleanup path bug fixJ Freyensee2010-12-091-18/+19
| | | | | | | | | | | | | | | | | | This patch addresses some remove issues in the pti_pci_remove() and _exit() routines in the pti driver that were uncovered in module load and unload stress testing: 1. a double kfree() issue between the _remove() and _exit() routine 2. pci_release_region() in _remove() that was not really releasing the region from the _probe() call, thereby causing a BUSY error on the next load of the driver module. 3. 2. uncovered a corner-case issue in which misc_register() wasn't called in _probe() before an error-cleanup routine was called which was causing an issue in the _exit() routine. 4. A couple unregister_driver() calls added to exit(). Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* The MID I2C driver does not allow auto runtime pm by default. It goes intoAlan Cox2010-12-091-11/+23
| | | | | | | | | | | | | suspend after every access. This is not efficient for continual I2C access. This patch allows auto suspend by default. It add a delay to the suspend which keeps I2C active for at least 500ms after every access. If a device driver accesses I2C frequently, it will not go to suspend and will keep high performance. After a long time idle, it will go to suspend auto. Signed-off-by: Bin Yang <bin.yang@intel.com> [Ported to upstream driver version] Signed-off-by: Alan Cox <alan@linux.intel.com>
* The old solution for i2c xfer timeout was to set timeout value to one secondAlan Cox2010-12-091-4/+27
| | | | | | | | | | | | for all i2c xfers. That's not reasonable for all of the various speed modes and data lengths. This patch sets the xfer_read timeout value based on both bus speed and data length. Signed-off-by: Bin Yang <bin.yang@intel.com> [Ported to the upstream branch and extracted as a helper function] Signed-off-by: Alan Cox <alan@linux.intel.com>
* The error messages printed from mrst_i2c_abort() didn't give slave address info.Catalin Popescu2010-12-091-4/+12
| | | | | | | | | | | | But I2C device driver developers always need this to check which slave device has the problem. This patch enhances the error message format by adding slave address info to each error message. Signed-off-by: Bin Yang <bin.yang@intel.com> [Ported to upstream driver branch and tidied a spot] Signed-off-by: Alan Cox <alan@linux.intel.com>
* This patch provides some documentation on the PTIJ Freyensee2010-12-091-0/+89
| | | | | | | | | system and how to use the pti driver and ldisc drivers in a Linux system. This was suggested in a previous code review to add documentation here instead of Kconfig menus. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
* This patch removes all pr_debug's for n_tracerouter ldisc driver.J Freyensee2010-12-091-9/+0
| | | | | Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* n_tracerouter: checkpatch cleanupJ Freyensee2010-12-091-2/+3
| | | | | | | | this cleans up any coding style issues in n_tracerouter ldisc for future submission to the mainline kernel. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* n_tracesink: pr_debug removal from tracesink_ldiscJ Freyensee2010-12-091-9/+0
| | | | | | This patch removes all pr_debug in the n_tracesink ldisc driver. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
* n_tracesink: checkpatch clean of n_tracesinkJ Freyensee2010-12-091-3/+3
| | | | | | | | This patch cleans up style issues of the n_tracesink ldisc for future upstream submission to mainline kernel. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* pti: module compile optionsJ Freyensee2010-12-091-1/+1
| | | | | | | | This allows the pti driver to be compiled in a module, which is acceptable. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* pti: make get_task_comm usable by GPL modulesJ Freyensee2010-12-091-0/+1
| | | | | | | | | | | This was caught and fixed in a Meego code review and is being fixed here. The recommended way (by Meego reviewers) of getting task information was to use get_task_comm(). However, this broke module compilation of a driver. This is the same fix for this issue submitted and accepted to the Meego kernel. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* pti: checkpatch cleanedJ Freyensee2010-12-091-29/+26
| | | | | | | This patch cleans up the code style-wise in preperation for mainline Linux kernel submission. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
* pti: pr_debug removalJ Freyensee2010-12-091-25/+1
| | | | | | | This patch removes all debugging messages from the pti.c driver. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* pti: channel ID management reworkJ Freyensee2010-12-091-12/+12
| | | | | | | | | | This patch fixes some issues with how channel ID was managed, like: 1. more efficiently utilize the array space keeping track of channel id's 2. simplify the getID() algorithm based on PTI simplification 3. re-manuver the mutex unlock where getID() is used Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Based on comments from Alan Stern, correct the setting of runtime PMHong Liu2010-12-091-7/+12
| | | | | | state in probe() and remove(). Signed-off-by: Hong Liu <hong.liu@intel.com>
* Use dma_slave_config to dynamically set dma channel for each dmaAlan Cox2010-12-092-68/+62
| | | | | | | transaction, also use the dma device's device_prep_slave_sg() callback instead of the device_prep_dma_memcpy(). Signed-off-by: Feng Tang <feng.tang@intel.com>
* x86: mrst: Add vrtc driver which serves as a wall clock deviceFeng Tang2010-12-098-7/+780
| | | | | | | | | | | | | | | Moorestown platform doesn't have a m146818 RTC device like traditional x86 PC, but a firmware emulated virtual RTC device(vrtc), which provides some basic RTC functions like get/set time. vrtc serves as the only wall clock device on Moorestown platform. [ tglx: Changed the exports to _GPL ] Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> LKML-Reference: <20101110172837.3311.40483.stgit@localhost.localdomain> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* commit 1da4b1c6a4dfb5a13d7147a27c1ac53fed09befdFeng Tang2010-12-096-7/+531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | x86/mrst: Add SFI platform device parsing code SFI provides a series of tables. These describe the platform devices present including SPI and I²C devices, as well as various sensors, keypads and other glue as well as interfaces provided via the SCU IPC mechanism (intel_scu_ipc.c) This patch is a merge of the core elements and relevant fixes from the Intel development code by Feng, Alek, myself into a single coherent patch for upstream submission. It provides the needed infrastructure to register I2C, SPI and platform devices described by the tables, as well as handlers for some of the hardware already supported in kernel. The 0.8 firmware also provides GPIO tables. Devices are created at boot time or if they are SCU dependant at the point an SCU is discovered. The existing Linux device mechanisms will then handle the device binding. At an abstract level this is an SFI to Linux device translator. Device/platform specific setup/glue is in this file. This is done so that the drivers for the generic I²C and SPI bus devices remain cross platform as they should. (Updated from RFC version to correct the emc1403 name used by the firmware and a wrongly used #define) Signed-off-by: Alek Du <alek.du@linux.intel.com> LKML-Reference: <20101109112158.20013.6158.stgit@localhost.localdomain> [Clean ups, removal of 0.7 support] Signed-off-by: Feng Tang <feng.tang@linux.intel.com> [Clean ups] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* No functional change, just make the code simpler and cleaner.Feng Tang2010-12-092-27/+11
| | | | Signed-off-by: Feng Tang <feng.tang@intel.com>
* apds9802ps: add runtime PM supportHong Liu2010-12-091-41/+53
| | | | Signed-off-by: Hong Liu <hong.liu@intel.com>
* apds9802ps: code cleanupHong Liu2010-12-091-45/+61
| | | | | | | Use dev_xxx instead of directly using printk, also use mutex to protect concurrent read. Signed-off-by: Hong Liu <hong.liu@intel.com>
* apds9802ps: fix proximity sensor device name for the latest firmwareHong Liu2010-12-091-1/+1
| | | | Signed-off-by: Hong Liu <hong.liu@intel.com>
* intel_scu_ipc_utils: Support for reflashing Medfield firmwareSudha Krishnakumar2010-12-093-11/+383
| | | | | | | | Initial flashing support. This will change before any production release. Signed-off-by: Sudha Krishnakumar <sudha.krishnakumar@intel.com> [Tidied up the bracketing and some oddments] Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_scu_ipc: Utility driver for intel scu ipcSreedhara DS2010-12-094-2/+145
| | | | | | | | | This driver implements ioctl and interfaces with intel scu ipc driver. It is used to access pmic/msic registers from user space and firmware update utility. Signed-off-by: Sreedhara DS <sreedhara.ds@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Putting the device into runtime suspend after resume()/probe() is handledHong Liu2010-12-091-7/+10
| | | | | | | | by the PM core and the device core code. No need to manually add them in each single driver. And correct the runtime state in remove(). Signed-off-by: Hong Liu <hong.liu@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* The goal of this change is to:J Freyensee2010-12-096-207/+131
| | | | | | | | | | | | | | | 1. simplify the n_tracesink and n_tracerouter designs, making them more generic for general Linux tree (Alan Cox deliverable) 2. Still meet customer requirements and needs (customer deliverable for Meego) 3. Push any and all specific PTI implementation to one place, drivers/misc/pti.c This patch is for a code review and feedback and it not expected to pass first time (past experiences ;-)). Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
* sst: add ioctls for post processing algorithm interfaceVinod Koul2010-12-096-21/+213
| | | | | | | | | | | This patch adds two new ioctls to intel_sst_ctrl device. This i/f can be used by application to send algorithm parameters Signed-off-by: Vinod Koul <vinod.koul@intel.com> [This will need further discussion in the context of the final ALSA interface but is fine for staging, ie anyone who relies on it should expect changes Also fixed a missing kmalloc fail check] Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: log error returned by scu ipc read/writeVinod Koul2010-12-091-13/+12
| | | | | | | | scu ipc driver fails sometimes to read/write. This add logs with register addr and ret code when these errors occur. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: Firmware error codes force number valuesVinod Koul2010-12-091-48/+62
| | | | | | | | To avoid mismatch in driver and firmware error codes assign specfic values to each enum. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: Construct fw string name runtimeVinod Koul2010-12-092-7/+7
| | | | | | | | | The firmware name for each platform is appended by PCI id of device. This patch makes use of pci id to construct the string rather than hardcode the string. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: Add runtime PM supportVinod Koul2010-12-096-8/+67
| | | | | | | | This adds runtime PM support for audio driver. This also fixes LPA audio mode for moorestown platform Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: Change the SST driver PCM interfaceVinod Koul2010-12-0910-90/+136
| | | | | | | | The PCM interface in SST driver is cmds only, this patch changes the interface to open, close and cmd interface. This allows SST driver to keep easy track of handles open Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* sst: remove rest of aava bits and aava releated codeVinod Koul2010-12-093-56/+1
| | | | | | | This removes the remaining bit of aava dependent and related bits from driver Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* ce4100: Fixes for 2.6.37-rc2Alan Cox2010-12-092-51/+19
| | | | | | Keep up with the removal of the map functions. Clean up the resman mutex Signed-off-by: Alan Cox <alan@linux.intel.com>
* CE4100 pvr update from IMG moving to version 3082Michael Demeter2010-12-0916-169/+388
| | | | | | (merged the header and type fixes so we get a buildable tree both sides) Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* CE4100 PVR update to build correctly with the changes to DRM.Michael Demeter2010-12-093-17/+16
| | | | | | | This change requires a userspace change due to changes in the shared header file Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* Start the work towards a combined makefile...This allows me to compare real ↵Michael Demeter2010-12-096-366/+167
| | | | | | | | differences. Turned on warnings are errors to prevent warnings from creeping in... Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* Kill off IMG_BYTE, IMG_PBYTE, IMG_HVOID, IMG_PHVOID and IMG_RESULTMichael Demeter2010-12-0913-46/+35
| | | | Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* Completely remove the img_defs header and referencesMichael Demeter2010-12-0924-274/+209
| | | | Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* ice4100: Clean up some video warningsAlan Cox2010-12-099-31/+31
| | | | | | Just to quiet it when building the tree. Signed-off-by: Alan Cox <alan@linux.intel.com>
* Initial add of the sgx535 to the staging treeMichael Demeter2010-12-09118-2/+53600
| | | | Signed-off-by: Michael Demeter <michael.demeter@intel.com>
* spectra: asynchronous initializeYong Wang2010-12-091-4/+9
| | | | | | | | | | The spectra nand driver takes quite some time to initialize because it needs to scan the whole nand disk to find the latest block table. This patch initializes the spectra nand driver asynchronously so that other things in the kernel can initialize in parallel to the scanning operation. Signed-off-by: Yong Wang <yong.y.wang@intel.com>