summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-05-15WORKAROUND: ARM: dts: add clock property on bt device nodedevel/tizenBeomho Seo2-3/+6
WORKAROUND: Temporary workaround for bluetooth enable. This patch add clock property on rfkill_bt device node. And then, add parse function in rfkill-gpio driver. Change-Id: I8928cf73284c5e56f8b5671cdb8485ac39b7f0e7 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-05-15mfd: max77687: Add registration of max77686-clkOlof Johansson1-0/+1
The MAX77686 clock driver has been in-tree for over 6 months, but never actually enabled through the MFD registration before. Add it to the table so the device will probe and configure properly. Change-Id: I3407a2f10245eba8351eb4103916107cbfcc7fcf Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2014-05-15WORKAROUND: net: rfkill-gpio: add low power mode for bluetooth chipBeomho Seo1-0/+110
WORKAROUND: Temporary workaround for bluetooth enable. This patch add LP mode for bluetooth chip. Change-Id: I1badf49085e58cec08704581beb0458ffbeaee64 Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-05-15WORKAROUND: Bluetooth: add hci event notificationBeomho Seo3-0/+20
WORKAROUND: Temporary workaround for bluetooth enable. For specific hci events, operations are needed. So this patch adds event notification and its notifier registration. Change-Id: I6f8fe0b3b90c12d7f4fe35823d25b9fbdcd98d06 Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-05-15serial: samsung: fix maximum baudrateSeung-Woo Kim1-1/+1
To support hs uart, maximum baudrate is fixed to 3Mbps. Change-Id: Idc39e09a8089c61518a3525058ae6647a625c8fb Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-05-15WORKAROUND: net: rfkill-gpio: add host wake and wake pinsBeomho Seo3-0/+106
WORKAROUND: Temporary workaround for bluetooth enable. The wake pin is used for waking up the hw and host wake pin is used for waking up host processor during sleep. Additionally, This patch add reset-gpio property and devm_gpio_request_one function. Change-Id: I3695fce3b5c6162c9bad5fa0721df9bd8df505c7 Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-05-15WORKAROUND: net: rfkill-gpio: fix initial state as blockedSeung-Woo Kim1-0/+4
WORKAROUND: Temporary worgaround for bluetooth enable. Initial state is not set as blocked, so it is always unblocked after booting. This patch fixes initual state of rfkill-gpio as blocked. Change-Id: Ide67763d10e2ef3ea75fe58d917cd725b26e2cab Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-05-15tizen: update tizen_defconfigBeomho Seo1-2/+1
This patch enable RFKILL_GPIO configuration. And then remove OF_EXTON configuration. Change-Id: Iada47a6237bd09af51e2825a8bf62f94c9fc8e90 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-05-15WORKAROUND: ARM: dts: add rfkill-bluetooth device nodeBeomho Seo3-0/+20
WORKAROUND: Temporary workaround for bluetooth enable. This patch add rfkill-bluetooth device node and pinctrl. And then, add line for parse shutdown-gpio. Change-Id: I1263b020f7c939a65a95c7a5b94e379a7a51210f Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-05-15net: rfkill: gpio: add device tree supportChen-Yu Tsai2-1/+50
Change-Id: Ic179fcf929d3555a29addd39024011537ea041fa Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2014-05-15net: rfkill: gpio: fix reversed clock enable stateChen-Yu Tsai1-1/+1
rfkill-gpio has clk_enabled = blocked, which is true when rfkill blocks the device. This results in calling clock enable/disable at the wrong time. Reversing the value fixes this. Change-Id: Id13a2bd8d7314b29753d2cdedca62b27fa9fd1d9 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2014-05-15net: rfkill: gpio: use clk_prepare_enable/clk_disable_unprepareChen-Yu Tsai1-2/+2
rfkill-gpio calls clk_enable() without first calling clk_prepare(), resulting in a warning and no effect. Switch to clk_prepare_enable() and clk_disable_unprepare. Change-Id: I4cb7ed7ff551daab034deb300f6def1c44721fe3 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
2014-05-08net: rfkill: gpio: prepare for DT and ACPI supportHeikki Krogerus1-41/+51
This will add the relevant values like the gpios and the type in rfkill_gpio_platform_data to the rfkill_gpio_data structure. It will allow those values to be easily picked from DT and ACPI tables later. Change-Id: I0851561b648c52be17dbe9a7bb01b0b62ff621a6 Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-05-08net: rfkill: gpio: spinlock-safe GPIO accessHeikki Krogerus1-8/+8
This sets the direction of the gpio once when it's requested, and uses the spinlock-safe gpio_set_state() to change the state. Change-Id: I1e9e9035dc9451d7531d230645d5f1572130a77b Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-05-08net: rfkill: gpio: clean up clock handlingHeikki Krogerus2-28/+9
Use a simple flag to see the state of the clock, and make the clock available even without a name. Also, get rid of HAVE_CLK dependency. Change-Id: Ie113c861a296a57ff32f5a3ee95ef0b9d9fff7e4 Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-05-07net: rfkill: gpio: convert to resource managed allocationHeikki Krogerus1-55/+20
And remove now unneeded resource freeing. Change-Id: Ie6baa61361effe095de95c5ac19cd19f6ddf4475 Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-04-27misc: modem_if: fix section mismatch from tizen_modem.csubmit/tizen/20140429.051321accepted/tizen/mobile/20140702.072257accepted/tizen/common/20140429.090721MyungJoo Ham1-1/+1
A function, modem_probe, had __init while it was used by a struct that is not __init. Change-Id: Ib1571c89b4bfcebc58b2669b669bd4606d1922fa Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2014-04-27arm: exynos4: Support machine specific reboot/poweroff for TRATSJonghwa Lee4-0/+282
Change-Id: I086cf498da1f1fd38410e99cd250b0c4aeda1a09 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-04-27extcon: Move OF helper function to extcon core and change function nameChanwoo Choi8-97/+56
This patch move simply OF helper function to extcon core and change function name as following: - of_extcon_get_extcon_dev() -> extcon_get_edev_by_phandle() Change-Id: I37fd827f945e3d713cfe15607689eab6792007b1 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Felipe Balbi <balbi@ti.com>
2014-04-27extcon: of: Remove unnecessary function call by using the name of device_nodeChanwoo Choi1-11/+3
This patch remove unnecessary function call in of_extcon_get_extcon_dev() by using the name of device_node structure. Change-Id: Ifae59614f355d1ad1beef9aab1c497840f22a727 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-04-25tizen: update tizen_defconfigChanho Park1-2/+8
Enable SEC_COMP and misc updates Change-Id: I80e8011ded0007f88f7bea367c32d414abd47d52 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2014-04-25misc: modem_if: regress to old tizen modem driverChanho Park38-15222/+861
Tizen modem utility and xmm626x modem uses old style modem I/F. I brought the driver from linux-3.0 kernel[1] because the driver should be matched with telephony and modem-util package. Kamil brought the driver from linux-3.4-exynos, but the driver didn't match the current telephony daemon and modem util. Data communication didn't work with the driver. So, I decided to regress to old driver. Tizen Modem Team doesn't have any plan to update latest version of modem package. To maintain consistency of the interface, I picked the driver from linux-3.0 tree. [1] : https://review.tizen.org/gerrit/gitweb?p=kernel%2Flinux-3.0.git;a=summary Change-Id: I6123f4dc149dcc38e1ae339f950f94fdc0c033f9 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2014-04-24phy: exynos4212-usb: Use refcount to power device PHY for HSIC0Tomasz Figa1-0/+10
HSIC0 requires device PHY to be powered up and the driver handles that already, but there is no reference counting of device PHY power state, so unplugging USB cable powers it down, breaking modem IF operation. This patch fixes the issue by adding handling of reference counting of device PHY to HSIC0 power-down/-up. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Change-Id: I14b1825fec3cd9c1b2652b89f275a50c73359ad6
2014-04-24misc: modem_if: Use pinctrl to properly configure pinsTomasz Figa2-7/+24
Configuring an interrupt pin as output/input manually using gpio_direction_*() breaks interrupt settings and must not be done. This patch adds necessary code to enable pull-down for interrupt pin using pinctrl API instead of setting the pin to low output to fix issues with missing modem interrupts. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Change-Id: Ie56d84ace1941cef3199fea99d7eb907bb9b5c03
2014-04-24mfd: max77686: Add suspend/resume callback function for alarm wake-up.Jonghwa Lee1-0/+38
While system is resuming, Max77686's Alarm IRQ should be handled after resuming of i2c controller. It disables IRQ in suspend callback funtion and enables it in resume callback to postpone handling. Change-Id: I69f5af2f8b63748853d0ba8a67f0cbb661e1ffcd Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-04-23media: vb2-dma-contig: add a hack to speed up cache managementMarek Szyprowski1-2/+27
In most cases video processing is done with coherent (non-cachable) userspace mappings. In such case for USERPTR mode cache management can be skipped. This patch introduces code for such optimisation. It is called a hack, because it is not possible in generic way to detect if the given userspace mapping is coherent on not. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-id: I86aa292455371f1b18eb3f6b765234dc04ff937b
2014-04-23arm: dts: trats2: Remove max77686's LDO22 regulator's 'always-on' flag.Jonghwa Lee1-1/+0
In trats2, LDO22 is used to eMMC's source voltage. And it can be controlled by EN22 gpio pin. If LDO22 regulator is set to 'Always On' mode at software reset, device will hang some seconds. Leave it controlled by EN22, then no delay on reboot. Change-Id: I012bb20bffa42e5ba7887863ef29cb2c473430cb Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-04-22ASoC: samsung: Remove obsolete GPIO based DT pinmuxingMark Brown1-62/+4
Since the Samsung platforms have moved to pinctrl for pin muxing and that is handled in the core the old GPIO based muxing code can just be removed. Something similar had been submitted by Thomas Abraham back in March but a resubmission following review never happened. Change-Id: I5a5813d51eeaefbb7e5c54fda05c1361a0798db2 Signed-off-by: Mark Brown <broonie@linaro.org>
2014-04-22Revert "ASoC: samsung: Add pinctrl support to I2S driver"Sylwester Nawrocki1-5/+1
This reverts commit 2b0c7de1eaf0e25c69ed1e4b21675ab97c6a4bdf, which is not needed since pinctrl is handled by the driver core. Change-Id: I0f204f15a39e07083375067fc828cf46bdb78360 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-04-22s5p-mfc: Remove unused variableSylwester Nawrocki1-1/+0
This fixes following compilation warning: drivers/media/platform/s5p-mfc/s5p_mfc_dec.c: In function ‘s5p_mfc_buf_prepare’: drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1045:15: warning: unused variable ‘index’ [-Wunused-variable] Change-Id: Id6c0c264c7169871df116ba6496b2e08e2638844 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-04-21misc: modem_if: initialize gpio_link_enable if invalid gpioChanho Park1-1/+2
This patch fixes invalid gpio value caused by 47c53475 commit. The gpio_link_enable should be initialized to 0 if not provided Change-Id: Ie22a2a60a2b713a3be9f141a5dc5c71d4adeb667 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2014-04-18modem_if: Change hardcoded link enable gpio valueBeomho Seo1-7/+4
Currently, link enable gpio is hardecoded to zero. Zero equal gpa0-0 value. It is value for uart rxd line. If link enable gpio is unused, it is don't have to call gpio request. This patch change to set line enable gpio value optionally, and remove unused variable 'ret'. Change-Id: I4095d57d76362722abd5c5fd92ef529772680d97 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-04-18ARM: dts: exynos4412: remove duplicated mshc device nodeBeomho Seo1-8/+0
MSHC device node are exsited both exynos4412 and exynos4x12 device tree. This patch remove duplicated mshc device node on exynos4412 device tree. Change-Id: Ib247d172006e916bac3489f5d0bf4958814364f5 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-04-18ARM: dts: exynos4412-trats2: remove incorrect device nodesubmit/tizen/20140418.050855Beomho Seo1-32/+0
After the dts cleanup the gpio-keys device nodes were duplicated for trats2. One of them is incorrect. As a result volume up/down key not working. This patch remove duplicated and incorrect gpio-keys device node. Change-Id: I44c9529b25a28d41ea451861727d7aa84211976e Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-04-17ASoC: Samsung: correct code in order to get op_clkChen Zhen1-4/+7
when i2s->op_clk is NULL we should do clk_get() before clk_get_rate() call , rather than calling clk_get_rate() on NULL clk, which will returns 0. Change-Id: Ic82be597d8e4c27dd670d8d56630c3572e8f7d73 Signed-off-by: Chen Zhen <zhen1.chen@samsung.com>
2014-04-16arm: config: tizen: add support for libvirtDariusz Michaluk1-10/+15
libvirt is a toolkit to interact with LXC(Linux kernel containers) current libvirt-lxc driver need some additional kernel features: 1. Control groups (cgroups) CONFIG_CGROUP_DEVICE CONFIG_CPUSETS 2. CFS Scheduler CONFIG_CFS_BANDWIDTH 3. Multiple instances of devpts filesystem CONFIG_DEVPTS_MULTIPLE_INSTANCES 4. Kernel bridging CONFIG_BRIDGE_NETFILTER CONFIG_NETFILTER_XT_TARGET_CHECKSUM CONFIG_STP CONFIG_BRIDGE CONFIG_BRIDGE_IGMP_SNOOPING CONFIG_BRIDGE_VLAN_FILTERING CONFIG_LLC 5. VLAN interface CONFIG_VLAN_8021Q CONFIG_MACVLAN CONFIG_VETH CONFIG_TUN Change-Id: I7c09743d1953b8ddbea99afc8e821c2dd9b826a7 Signed-off-by: Dariusz Michaluk <d.michaluk@samsung.com>
2014-04-15cpuidle:AFTR: Enable STANDBY_WFI0 and STANDBY_WFE0 for cpu0 in AFTR modeLukasz Majewski1-0/+4
Enabling of CORE0 idle state is based on the state of STANDBYWFI/STANDBYWFE internal signal. Change-Id: I43675fa312ce879f3741644057991bdb33f6cd55 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2014-04-15cpuidle:clk:Exynos4412: Enable support for clock down when WFI cpuidle state ↵Lukasz Majewski2-5/+22
is entered This patch adds support for setting ARM cores' clock frequency down when entering WFI/WFE based cpuidle state. On the Trats2 device: performance governor, 1.4 GHz frequency, no extra load, 4 cores enabled: Without core clock down feature: 395 mA With core clock down feature: 337 mA Power consumption reduction around 15% Change-Id: I7bae29b0332a97c7b18ffb79f4b0a5ff3d70b7ce Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2014-04-15cpuidle:exynos:AFTR: Use secure monitor calls to enable entering AFTRLukasz Majewski4-8/+34
Secure monitor calls are necessary to enter the AFTR low power mode on the trats2 device. Without them it is not possible to access certain CP15 registers (e.g. Power Control Register). Change-Id: I8f91acb80acdbd43c86a679d69037be041d76309 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2014-04-11drm/exynos: add dmabuf sync support for kms frameworkInki Dae4-21/+218
Change-Id: I5937869e5fa2ec2a41e864494eac0077ccdbdb51 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-04-11ARM: dts: Add missing aliases entry for i2c-mhl nodeSylwester Nawrocki1-1/+2
This fixes regression introduced in commit 10d282f12d57a467a83a ARM: exynos: dts: cleanup the dts file for trats2 Without an alias the i2c-mhl get dynamically assigned an I2C bus id 0 which is assigned in DT to the I2C0 hardware controller. As a result I2C0 hardware controller fails to initialize which in turn breaks the camera subsystem driver initialization. Change-Id: I92c254cc1d93899b277761b750b0e657c2daad95 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-04-09ARM: odroidx2: update defconfig to enable AudioChen Zhen1-1/+43
This enables the necessary configuration for audio,such as SND_TIMER,SND_PCM,SND_JACK, I2S and so on. Change-Id: I6cb157e28529ba5a3756f5df5ddf19a2d59fe3ca Signed-off-by: Chen Zhen <zhen1.chen@samsung.com>
2014-04-09ARM: dts: odroidx2: add i2s node and sound node for audioChenZhen1-0/+12
In order to config a integrated audio path,it's necessary to define the bus type and codec which we used. Change-Id: I4a65d45b5cec4b81ce1a93deaa614020d6a17ae7 Signed-off-by: Chen Zhen <zhen1.chen@samsung.com>
2014-04-08media: s5p_mfc: fix doublly free issueZhaowei Yuan1-6/+2
When video_register_device() returns failure, vfd will be freed at once and dev->vfl_dec will be freed after label "err_dec_reg", but the two pointers point to the same area, so it was doublly freed here. Since video_device_release() will be called by video_unregister_device() indirectly, we should remove the two other calls after labels err_enc_reg and err_dec_reg. Change-Id: I5ee8f83eeb47443e2f772914127514eab996c347 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2014-04-08ASoC: samsung: add machine driver for odroidx2Chen Zhen3-0/+189
This machine driver primary define the audio path,the supported data format and sample frequency. Change-Id: I2cdb5f6f65b67d0039f234930210f75c1be9fe38 Signed-off-by: Chen Zhen <zhen1.chen@samsung.com>
2014-04-08ASoC: Samsung: Do not queue cyclic buffers multiple timesTomasz Figa2-2/+18
The legacy S3C-DMA API required every period of a cyclic buffer to be queued separately. After conversion of Samsung ASoC to Samsung DMA wrappers somebody made an assumption that the same is needed for DMA engine API, which is not true. In effect, Samsung ASoC DMA code was queuing the whole cyclic buffer multiple times with a shift of one period per iteration, leading to: a) severe memory waste - up to 13x times more DMA transfer descriptors are allocated than needed, b) possible memory corruption, because further cyclic buffers were out of the original buffers, due to the offset. This patch fixes this problem by making the legacy S3C-DMA API use the same semantics as DMA engine (the whole cyclic buffer is enqueued at once) and modifying users of Samsung DMA wrappers in cyclic mode to behave appropriately. Change-Id: Ib9e656c40ef71e2e90af3f008959eeae19ce7d7e Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2014-04-04Enable seccomp in tizen_defconfig arm configurationZofia Abramowska1-1/+2
Enabling seccomp and seccomp filters due to future seccomp related work on platform for limiting access to system for unprivileged applications. Change-Id: Ib067d5510e06d89e539537485fecd63e9bd92c40 Signed-off-by: Zofia Abramowska <z.abramowska@samsung.com>
2014-04-03Removing s3c-rtc status override for exynos4412-trats2.submit/tizen/20140407.043043accepted/tizen/mobile/20140407.043814accepted/tizen/ivi/20140410.192110Marcin Niesluchowski1-4/+0
s3c-rtc is not functioning - initializing its value on every boot. As registering rtc devices is non-deterministic, s3c-rtc may be registered under rtc0 and rtc0 is default device for setting and getting hardware time (hwclock). Another working rtc driver is enabled. Change-Id: I651da859db6ad9b35d422288845c0bebbcf540f5 Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
2014-04-03cpufreq:LAB: Change method of boost state preservingLukasz Majewski1-4/+5
It is not necessary to change the boost state when LAB governor is entered, since LAB will change it according to its own politics. Only enter state is preserved. When leaving the LAB, only when required, work is scheduled to restore boost initial state. Change-Id: I6323f3c0011fe54a33d70c9ad0f9da5360b4a735 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2014-04-03cpufreq:governor: Add serialization to the cpufreq_governor_dbs() functionLukasz Majewski1-2/+12
It is necessary to serialize access to cpufreq_governor_dbs() function, since it can be accessed from different, not protected by any mutex paths like sysfs boost attribute or LAB governor internals. Change-Id: Id7b62db6ca0b7c28f5e8c6286aec312d3d0c971e Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>