summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18[media] s5p-jpeg: Allow for wider JPEG subsampling scope for Exynos4x12 encoderJacek Anaszewski1-1/+2
Exynos4x12 supports wider scope of subsampling modes than S5PC210. Adjust corresponding mask accordingly. Change-Id: Ie734ac8a4e4442e91ff5453fbe4be007607513a5 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Ensure correct capture format for Exynos4x12Jacek Anaszewski1-0/+116
Adjust capture format to the Exynos4x12 device limitations, according to the subsampling value parsed from the source JPEG image header. If the capture format was set to YUV with subsampling lower than the one of the source JPEG image the decoding process would not succeed. Change-Id: I12420509e1c9ab887dcf3ab78099917d2bae5ae4 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Retrieve "YCbCr subsampling" field from the jpeg headerJacek Anaszewski1-4/+31
Make s5p_jpeg_parse_hdr function capable of parsing "YCbCr subsampling" field of a jpeg file header. Store the parsed value in the context. The information about source JPEG subsampling is required to make validation of destination format possible, which must be conducted for exynos4x12 device as the decoding process will not succeed if the destination format is set to YUV with subsampling lower than the one of the source JPEG image. With this knowledge the driver can adjust the destination format appropriately. Change-Id: I6327a5037cf06eb05f10caba6a86f4d00e5c029b Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: JPEG codecJacek Anaszewski6-94/+1123
Add hardware API for the exynos4x12 on s5p-jpeg. Change-Id: I1b027a76ec22e3291c599e7d6d5317dcba8b617f Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Split jpeg-hw.h to jpeg-hw-s5p.c and jpeg-hw-s5p.cJacek Anaszewski5-97/+154
Move function definitions from jpeg-hw.h to jpeg-hw-s5p.c, add "s5p" prefix and put function declarations in the jpeg-hw-s5p.h. Change-Id: I7ef4814c8b00afa77de819f6cb248d93c3f7ce1d Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Synchronize cached controls with V4L2 coreJacek Anaszewski1-3/+15
This patch adds proper initialization of the in-driver cached state of JPEG controls with V4L2 core. Change-Id: I29d5fccab898d820aa22194e4f71d28be1240f26 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Fix lack of spin_lock protectionJacek Anaszewski1-1/+10
s5p_jpeg_device_run and s5p_jpeg_runtime_resume callbacks should have spin_lock protection as they alter device registers. Change-Id: I56f19f6314c58e21284562e3e92c08409664aee4 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Fix clock resource managementJacek Anaszewski1-5/+30
Standard suspend/resume path is called after runtime resume of the given device, so suspend/resume callbacks must do all clock management done also by runtime pm to allow for proper power domain shutdown. Moreover, JPEG clock is enabled from probe function but is is not necessary. This patch also moves control of jpeg clock to runtime_pm callbacks. Change-Id: I1292e2514baf3ca1f9af9a8edd3ddcb60f8c5901 Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Rename functions specific to the S5PC210 SoC accordinglyJacek Anaszewski1-24/+34
Change-Id: Iafabd18c9728a83b6876ebec59fab1911f8f3266 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Remove superfluous call to the jpeg_bound_align_image functionJacek Anaszewski1-7/+0
Aligning capture queue image dimensions while enqueuing output queue doesn't make a sense as the S_FMT ioctl might have not been called for the capture queue until that moment, whereas it is required to know capture format as the type of alignment heavily depends on it. Change-Id: I58dd67c5ce088e0ed889515dd53d6f39abc8b80e Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Fix erroneous condition while validating bytesperline valueJacek Anaszewski1-1/+1
The aim of the condition is ensuring that the bytesperline value set by the user space application is proper for the given format and adjusting it if isn't. As the depth value of the format description entry is expressed in bits then the bytesperline value needs to be divided, not multiplied, by that value to get the number of bytes required to store single line of image samples. Change-Id: Ied5ab2df3b4ab89d44178481a9b15c51e4d02085 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Fix output YUV 4:2:0 fourcc for decoderJacek Anaszewski1-1/+1
Output samples during decoding phase for the YUV 4:2:0 format are arranged in the manner compatible with 2-planar NV12, not 3-planar YUV420 fourcc. Change-Id: I4619573b0b4b213b2e5def58a7d9247dc28dcd0e Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18[media] s5p-jpeg: Reorder quantization tablesJacek Anaszewski1-58/+58
Reorder quantization tables so that their elements are arranged in the manner reflecting compression quality level that is in accordance with V4L2 documentation, i.e. the larger value of the V4L2_CID_JPEG_COMPRESSION_QUALITY control the better image quality, and thus lower compression quality. The modification allows also to get rid of reverse logic in the s_ctrl callback while assigning user space value to the ctx->compr_quality variable. Change-Id: I31e00e212e442b4a959b07967e1b96841ab39528 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18Revert "s5p-jpeg: Add support for Exynos4x12"Jacek Anaszewski7-1225/+158
This reverts commit 8e4a944989fd90fba6ceb5e84d4c73667b767bdf. This was rough preliminary commit. Change-Id: I8db16f03e02e95a2922834fb94b02ead2c21a08e Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
2014-11-18[media] s5p-jpeg: Fix encoder and decoder video dev namesSeung-Woo Kim1-4/+4
It is hard to distinguish between decoder and encoder video device because their names are same. So this patch fixes the names. Change-Id: I593ec9a5f2aa3fa460a11e233239bacf65deda6b Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-11-18Revert "media: s5p-jpeg: fix clock management in suspend/resume path"Jacek Anaszewski1-18/+2
This reverts commit 3754f529b2efb8ef65b27e440bb57399179c0e02. Mainline patches solve the problem. Change-Id: I6a7eb9a1bd815131c197c64c7b2c791ba17c4cb2 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
2014-11-18drm/exynos: add has_vtsel flagJoonyoung Shim1-1/+5
The exynos fimd provides video type selection bits from system register but exynos3 series don't has it, so needs has_vtsel flag and we can distinguish whether set video type selection bits. Change-Id: Iacba73e8813454b04551c2617107786f2d59d6ab Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18ARM: tizen_defconfig: update number of minors per block device to allow more ↵Inha Song1-1/+1
than 8 partitions This patch update MMC_BLOCK_MINORS to allow more than 8 partitions per block device. Number of total MMC minors available is 256. Change-Id: Ibd9bd1d2236ced4066d60aa53d11d9f82da21f4e Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-11-18arm: tizen_odroid_defconfig: fix file permission to 644Joonyoung Shim1-0/+0
Please don't change file permission. Change-Id: I256e0fd874e1b0315f801521b83e48dff48793f5 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
2014-11-18drm/exynos: move triggering checkingJoonyoung Shim1-7/+7
It's better to be checking whether triggerring in fimd_trigger function. Also it will return if in triggerring on fimd_te_handler, then it can't execute remain codes. Change-Id: If8dbcbd139908af330ad59b5d4a66435fe0d77c6 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
2014-11-18Revert "drm/exynos: fimd: make a wait_for_vblank event to be handled in same ↵Inki Dae1-9/+0
period" This reverts commit d69e45dccaea2e2da28751e0bdaeae67bba1aa78. Change-Id: I3600f9fc2d29f21c3a0726902f78fcf8d5dcd3d0 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18ARM: tizen_odroid_defconfig: enable option for USB webcamSeung-Woo Kim1-2/+3
This patch enables uvc config to support usb webcams. Change-Id: Id9c672cc3b5e25cb48e09827d25e3543562d016d Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2014-11-18ARM: dts: exynos3250-rinato: Fix wrong voltage when attached TA cableChanwoo Choi1-2/+2
This patch fix wrong voltage value of TA cable to fix charging issue when attached TA cable. Change-Id: I469cccee9f21d711745349c7a4d4c301ae7ff667 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-11-18power: charger-manager: Support to change polling rate in runtime.Jonghwa Lee1-0/+62
Add 'polling_ms' sysfs node to change charger-manager's monitoring rate in runtime. It can set only bigger than 2 jiffies (for 200 HZ system it is 10 msecs.) as it's allowed for minimum poling rate in previous. It resets poller and re-configure polling rate based on new input if next polling time is far enough. Otherwise, it just waits expiration of timer and new polling rate will affects the next scheduling. Change-Id: I6a9a07b96db2554e2ec047224df818dcc4ab1a17 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18arm: dts: exynos3250-rinato: Define polling mode in sleep of charger-manager.Jonghwa Lee1-0/+2
In sleep, enable charger-manager's monitor work only when external power source exists. Change-Id: I5bc5f192926827a0011f278704d3273a9b98f25a Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: charger-manager: Support different polling mode for sleep state.Jonghwa Lee2-6/+22
Add additional polling mode for sleep state to define different mode with normal state. With this change, charger-manager can work differently in normal state or sleep state. e.g, polling aways for normal and polling only when charing for sleep. If there is no defined polling mode for sleep state it just follows the normal state's. In addition to, polling rate is still same in sleep. Change-Id: I787a3abd646bdc0be81dccbafbd635c22c84951c Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18tizen: rinato: enable smack permissive modeBeomho Seo1-3/+5
This patch enable smack and smack permissive mode. Change-Id: I45fe046c135fee48314fef08be9eceb6af0ad667 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-11-18drm/panel: s6e63j0x03: correct lcd power statusInki Dae1-2/+12
This patch makes sure for panel driver to have correct power status. Change-Id: I33e6e64969ab6f2679f5f1f889ccfde27d81c901 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/panel: s6e63j0x03: Fix uninitialized power stateKrzysztof Kozlowski1-0/+7
Fix following DSI panel enable error (booted init=/bin/sh): echo 0 > /sys/devices/platform/exynos-drm/graphics/fb0/blank [ 55.708859] exynos-dsi 11c80000.dsi: PLL input frequency: 24000000 [ 55.709038] exynos-dsi 11c80000.dsi: PLL freq 250000000, (p 3, m 125, s 2) [ 55.709107] exynos-dsi 11c80000.dsi: band 4 [ 55.709929] exynos-dsi 11c80000.dsi: PLL failed to stabilize [ 55.709987] exynos-dsi 11c80000.dsi: failed to configure DSI PLL [ 56.007706] exynos-dsi 11c80000.dsi: timeout waiting for reset [ 56.030676] exynos-dsi 11c80000.dsi: waiting for bus lanes timed out [ 56.030804] exynos-dsi 11c80000.dsi: < xfer df45fda8: tx len 3, done 0, rx len 0, done 0 [ 56.127024] exynos-dsi 11c80000.dsi: xfer timed out: 03 00 f1 5a 5a [ 56.127125] panel_s6e63j0x03 11c80000.dsi.0: failed to dcs write: -110[f1 5a 5a] The panel power state was initialized by devm_kzalloc() to 0 which means FB_BLANK_UNBLANK. Request to unblank frame buffer from sysfs was triggering a call to panel set_brightness(). This lead to starting DSI transfers on disabled DSI/panel (no calls to exynos_dsi_enable, s6e63j0x03_prepare, s6e63j0x03_enable) Change-Id: I146d46c92c96112a6c616daf83edc57c5b889902 Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/panel: s6e63j0x03: add brightness featureInki Dae1-4/+189
Change-Id: I9b4b9060a9c8ef63f969951da4bd1b9cc26fa553 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/panel: add .prepare() and .unprepare() functionsAjay Kumar1-0/+50
Panels often require an initialization sequence that consists of three steps: a) powering up the panel, b) starting transmission of video data and c) enabling the panel (e.g. turn on backlight). This is usually necessary to avoid visual glitches at the beginning of video data transmission. Similarly, the shutdown sequence is typically done in three steps as well: a) disable the panel (e.g. turn off backlight), b) cease video data transmission and c) power down the panel. Currently drivers can only implement .enable() and .disable() functions, which is not enough to implement the above sequences. This commit adds a second pair of functions, .prepare() and .unprepare() to allow more fine-grained control over when the above steps are performed. Change-Id: Id00eec6fd18b9e480975e0c3478a8890cacb79e7 Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> [treding: rewrite changelog, add kerneldoc] Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: make a wait_for_vblank event to be handled in same periodInki Dae1-0/+9
This patch makes sure for a wait_for_vblank event to be handled in same period. For this, it adds a new member, triggerred which means whether trigger request is completed or not since trigger request. So if there is a trigger request, update-request, then this patch makes a wait_for_vblank event to be handled after the trigger request is completed. Change-Id: If1a2491a323b637d20806373e0502b2b0a9ff810 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: handle finish pageflip at irq handlerInki Dae1-4/+2
In case of all modes, i80 and rgb modes, finish page flip request could be handled at irq handler after framedone. This patch is just for cleanup. Change-Id: Idb56e1932fbe7e085be0384eb35b68f699547d18 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: handle wait vsync event at irq handlerInki Dae1-11/+5
in case of all modes, i80 and rgb modes, wait vsync event should be handled at irq handler after framedone. Change-Id: I7dbd38119c5c27a694e3b1c7c160f8205a4b028c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: do not call fimd_trigger in atomic contextInki Dae1-0/+3
spin lock, win_updated_lock, isn't related to fimd_trigger. Change-Id: Ia9dd215a2a4809726c357f9de4104c09ce08dc0c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: move handle vblank position in TE handlerYoungJun Cho1-3/+3
For providing VBLANK information, drm_handle_vblank() should be called properly, but it is blocked by wait_vsync_event condition which is set by manager_ops->wait_for_vblank(). So moves it out from wait_vsync_event routine. Change-Id: Id5fc56f65d582fd90ef261f50b302f12ef890353 Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18ARM: dts: exynos3250-rinato: Add pmureg-phandle node for control XUSBXTI ↵Inha Song1-0/+1
power state using syscon This patch add pmureg-phandle node for control XUSBXTI power state using syscon. Change-Id: I6d3196a55a9c542c3cd411fea9ea7628a9d69d3f Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-11-18ASoC: samsung: Add XUSBXTI power state control function for BT call when ↵Inha Song1-11/+33
sleep state This patch add XUSBXTI power-state control function for BT call when sleep state. When sound codec is enabled and entering sleep mode, XUSBXTI_SYS_PWR_REG must be set to enables for BT call. Change-Id: I5b385aad102e19c38d048609d99736ba13336253 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-11-18ARM: EXYNOS: Remove EXYNOS3_XUSBXTI in PMU configuration registers to ↵Inha Song1-0/+5
control power state using syscon This patch remove EXYNOS3_XUSBXTI_SYS_PWR_REG in PMU configuration registers to control XUSBXTI power state using syscon. Change-Id: I594d316ab08e463f98338a8fac8860933755f1b9 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-11-18arm: dts: exynos3250-rinato: Add 'using-19-bits' flag to max17040 fuelgague.Jonghwa Lee1-0/+1
Follow the commit 'be0065c power: max17040: WA: Add flag 'using_19_bits'~', it adds 'using-19-bits' to max17040 fuelgauge dt node to get correct SoC. Change-Id: I9c2b4d60a2abb0dcb177cb81fbdd4c46d9556aee Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: max17040: WA: Add flag 'using_19_bits' to determine SoC in double.Jonghwa Lee1-0/+17
No information about actual meaning of using 19 bits, it's just copied from vendor's code. However, It is clear that it represents doubled SoC if the chip is marked with 'using 19 bits'. Rinato needs to half the SoC register's value to get correct one. Change-Id: I0d873de3e7671c2494955735364934156ab756d9 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: max17040: Fix data transfering size from 8bits to 16bits.Jonghwa Lee1-17/+19
Even max17040 fuelgauge chip's registers are segmented in size of 8bits (MSB, LSB), it transfers data only in 16bits. So, it should read both of MSB, LSB registers at once. Change-Id: I87150fbf9b14adf65fc9fdf912f963ab591586e3 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18packaging: fix %setup top dir nameStephane Desneux2-2/+2
Change-Id: I21a9d05153a3e80cebdc7901fb3c0e03635417ec Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
2014-11-18arm: dts: exynos3250-rinato: Set charger-manager polling always.Jonghwa Lee1-2/+2
Enable charger-manager's polling mode to always to monitor and notify the battery capcity. Change-Id: If7f26a6ac064c1a860ea098109b3ae9609a123f8 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: charger-manager: Update essential battery information at once.Jonghwa Lee2-189/+139
In current code, charger-manager may attemps to read battery state more than once in a same period. And it already did such when user accesses uevent, it reads battery voltage several times. This patch makes charger-manager to read current battery state including SoC, voltage and temperature at the start of monitoring and re-use it during whole period. Change-Id: Ic69ddb465a75237ded0488cb3eb41f47bb909311 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: charger-manager: Not to start charging directly in cable nofitication.Jonghwa Lee1-10/+2
This patch prevents direct charging control in cable notification. It sets only input current limit according to cable type and yields charging control to be done by cm_monitor() where charging management proceeds. It may loose few ms to enable charging compared to before, even though it's more important that charging is enabled only for safe context. Change-Id: Ic736b9d18829f6d6dab946515dd0fe62fe7b75c4 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: charger-manager: Make chraging decision focused on battery status.Jonghwa Lee2-119/+62
In cm_monitor() where charging management starts, it checks various charging condition sequentially to decide next charging operation. However, as it follows sequential process, cascade if statements, it does some duplicated jobs which is already done in previous stage. It results delay in decision making. And moreover, starting point of charing is spreaded all around, so it makes maintain codes and debugging difficult. Both of problems mentioned above becomes clean if it manages battery charging with focusing battery status not following sequential condition checking. Now, cm_monitor() moves battery state diagram and does optimal operation for current state. As a result, it reduces whole monitoring time almost in half. Change-Id: I1c8cfe57cea6fc8c02a4c0bf7bde6a0d8395b786 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18power: charger-manager: Get external power souce information only from EXTCON.Jonghwa Lee1-14/+13
When charger-manager checks whether external power source is available, it gets information from charger IC driver. However, it's not correct source, charger IC doesn't have responsibilty to give cable connection status. The charger-manager already gets cable information from EXTCON susbsystem, so it can re-use it. Change-Id: I408546beefe63707fcb927db7d92c4005f3848f8 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-11-18ARM: dts: exynos3250-rinato: fix pin control of BT_UART_RTS pinBeomho Seo1-1/+1
This patch fix pinctrl of BT_UART_RTS when sleep state. Change-Id: I6b595e7784dbc769ff7e6fed15e1660132d8e9ff Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-11-18Fix source tarball name for odroid and rinato kernels.Stephane Desneux2-2/+2
Change-Id: I1b14b5f5b19eb8aa1eba11f5fc11c63d4e4a1759 Bug-Tizen: TC-1495 Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>