Commit Graph

397577 Commits

Author SHA1 Message Date
黄涛
0dce12aaaa pwm-backlight: set default devname as rk28_bl, to make Android happy 2014-02-25 18:52:31 +08:00
黄涛
0f04961394 ARM: rockchip: rk3188-tb fix backlight setting for Android 2014-02-25 18:52:30 +08:00
wlf
a401d431a2 USB: fix bug in dwc_otg_pcd_remove 2014-02-25 18:05:27 +08:00
wlf
5455026028 USB: set hcd->has_tt = 1 to support parent hub TT 2014-02-25 17:58:46 +08:00
dkl
028a9e3f0e saradc: rockchip: fix some codes about clk 2014-02-25 17:41:59 +08:00
wlf
1243114851 USB: set bcdDevice default value 3.0 2014-02-25 17:37:56 +08:00
CMY
6181384db8 rk: ion: modify the ION_IOC_XXX name easy to understand 2014-02-25 17:26:01 +08:00
qjb
5a940870c8 rk3188 i2s dts : set i2s drive default 8ma 2014-02-25 17:22:13 +08:00
黄涛
3f85046bc0 ARM: rockchip: rk3188-tb backlight use new enable-gpios property 2014-02-25 17:16:56 +08:00
黄涛
a399795c66 pwm-backlight: Remove unused variable
I forgot to remove this during earlier cleanup patches and only checked
various builds for errors, not warnings.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2014-02-25 17:08:52 +08:00
Huayi Li
bceff9432e pwm_backlight: avoid short blank screen while doing hibernation
Use SIMPLE_DEV_PM_OPS macro will initialize the member "freeze"
and "thaw" of pwm_backlight_pm_ops as below,
	.freeze = suspend_fn,
	.thaw = resume_fn,
then during the process of making hibernation snapshot, screen
will be blank at the moment of freezing, and then light at the
moment of thawing.
this is not the right user experience for suspending to disk.

so this patch drops freeze and thaw callback, make the LCD is
always lighting before the final shutdown.

Signed-off-by: Huayi Li <huayi.li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2014-02-25 17:01:00 +08:00
Thierry Reding
685f4a4b71 pwm-backlight: Fix brightness adjustment
Split adjustment of the brightness (by changing the PWM duty cycle) from
the power on sequence. This fixes an issue where the brightness can no
longer be updated once the backlight has been enabled.

Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Conflicts:
	drivers/video/backlight/pwm_bl.c
2014-02-25 17:00:32 +08:00
Mike Dunn
c7efdbbd10 pwm-backlight: Allow for non-increasing brightness levels
Currently the driver assumes that the values specified in the
brightness-levels device tree property increase as they are parsed from
left to right.  But boards that invert the signal between the PWM output
and the backlight will need to specify decreasing brightness-levels.
This patch removes the assumption that the last element of the array is
the maximum value, and instead searches the array for the maximum value
and uses that in the duty cycle calculation.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:57:54 +08:00
Thierry Reding
f419470e45 pwm-backlight: Use new enable_gpio field
Make use of the new enable_gpio field and allow it to be set from DT as
well. Now that all legacy users of platform data have been converted to
initialize this field to an invalid value, it is safe to use the field
from the driver.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:57:37 +08:00
Thierry Reding
4e9f3c94d9 pwm-backlight: Add optional enable GPIO
To support a wider variety of backlight setups, introduce an optional
enable GPIO. Legacy users of the platform data already have a means of
supporting GPIOs by using the .init(), .exit() and .notify() hooks. DT
users however cannot use those, so an alternative method is required.

In order to ease the introduction of the optional enable GPIO, make it
available in the platform data first, so that existing users can be
converted. Once that has happened a second patch will add code to make
use of it in the driver.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:57:25 +08:00
Thierry Reding
2aaec8ff6e pwm-backlight: Track enable state
Follow up patches will add support for more complex means of powering
the backlight on and off such as using a regulator. To prevent calls to
the regulator API from becoming unbalanced, keep track of the enabled
state internally.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:57:13 +08:00
Thierry Reding
497240639a pwm-backlight: Refactor backlight power on/off
In preparation for adding an optional regulator and enable GPIO to the
driver, split the power on and power off sequences into separate
functions to reduce code duplication at the multiple call sites.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:56:58 +08:00
Thierry Reding
2412f1e6e1 pwm-backlight: Improve readability
Add more blank lines to increase readability. While at it, remove a
trailing blank line at the end of the file.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-02-25 16:56:46 +08:00
黄涛
27e4aea386 pwm-backlight: reset to unpstream version 2014-02-25 16:55:47 +08:00
qjb
1c0576079a i2s : add i2s clr reg check 2014-02-25 15:48:01 +08:00
CMY
4255b3e268 rk: ion: support shared buffer between processes without Binder 2014-02-25 15:32:13 +08:00
xbw
d5bd891f59 SDMMC:
continuse with the commit-9401f2e4feea8c884418f3c5821e83aee7b313b0 .
Delete those code which will never be used in the future.
2014-02-25 13:16:10 +08:00
xbw
9401f2e4fe SDMMC: Delete those code which will never be used in the future. 2014-02-25 13:09:26 +08:00
xbw
a8d6f1b1a0 SDMMC: select SDcard module configuration in kernel-3.10 project 2014-02-25 12:59:48 +08:00
xbw
d3ddf88f30 continue with the privous Commit. Complete submission SDMMC driver in kernel-3.10.Currently,Only the sdcard can be used. 2014-02-25 12:43:01 +08:00
xbw
3afdc6aaef SDMMC: Complete submission SDMMC driver in kernel-3.10.Currently,Only the sdcard can be used. 2014-02-25 12:41:17 +08:00
xbw
5cbd50029c Merge branch 'develop-3.10' of ssh://10.10.10.29/rk/kernel into develop-3.10 2014-02-25 12:35:25 +08:00
xbw
9913355ce3 SDMMC:
revert the modify in file dw_mmc.c,Keep it to its original version.
2014-02-25 12:34:50 +08:00
yxj
0ad0a29a89 add dts for rk3188 LR097 2014-02-25 09:26:46 +08:00
yxj
fcecc3d09c rk fb:add more screen property 2014-02-25 09:26:46 +08:00
yxj
486bc247fb port edp anx6345 to linux 3.10 2014-02-25 09:26:46 +08:00
yxj
5d91bd6092 rk32 edp: base version 2014-02-25 09:26:45 +08:00
qjb
3033f0d12a audio pcm kernel 3.10 : support 2014-02-24 18:00:14 +08:00
CMY
c78b636f10 rk: ion: fixed bug for ION_IOC_GET_PHYS 2014-02-24 17:53:08 +08:00
dkl
08225f45ae clk: rk: add aclk_lcdc init, fix dclk_lcdc/i2s clk ops
1. Init aclk_lcdc 300M.
2. Fix dclk_lcdc clk ops to set even div only.
3. Repeatly write i2s clk reg, to fix rk3188 problem.
2014-02-24 15:05:33 +08:00
CMY
f601ea7f11 rk: ion: add system heap 2014-02-24 11:31:49 +08:00
xbw
3510c255c3 SDMMC: add the sdmmc driver to kernel_3.10 2014-02-22 16:03:46 +08:00
zwl
0f8c115278 1.hdmi: fix cat66121 driver run error 2. rkfb: fix some code error 2014-02-21 17:35:04 +08:00
dkl
dcd6f049aa clk: rk: fix clk dts info analysis and clk register
1. Fix the way to get info from rk clk dts.
2. Fix rk clk register.
3. Draw out rk_clk_dump_info func.
4. Add more debug.
2014-02-21 17:09:10 +08:00
CMY
a8cb0a0942 rk: ion: change heap id 2014-02-21 15:41:11 +08:00
黄涛
d27cb6f4a5 rk: proc: fix slub warning when call setup_irq
BUG: sleeping function called from invalid context at mm/slub.c:926
in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/3
INFO: lockdep is turned off.
irq event stamp: 45900
hardirqs last  enabled at (45899): [<c009fe18>] rcu_preempt_note_context_switch+0x174/0x18c
hardirqs last disabled at (45900): [<c0605a64>] _raw_spin_lock_irq+0x18/0x50
softirqs last  enabled at (45744): [<c002c424>] irq_enter+0x50/0x78
softirqs last disabled at (45743): [<c002c418>] irq_enter+0x44/0x78
CPU: 3 PID: 0 Comm: swapper/3 Tainted: G           O 3.10.0 #405
[<c0013fe8>] (unwind_backtrace+0x0/0xe0) from [<c0011930>] (show_stack+0x10/0x14)
[<c0011930>] (show_stack+0x10/0x14) from [<c00fa3dc>] (__kmalloc+0x70/0x228)
[<c00fa3dc>] (__kmalloc+0x70/0x228) from [<c0148d2c>] (__proc_create+0x94/0xf0)
[<c0148d2c>] (__proc_create+0x94/0xf0) from [<c0149000>] (proc_mkdir_data+0x30/0x74)
[<c0149000>] (proc_mkdir_data+0x30/0x74) from [<c009babc>] (register_handler_proc+0xe8/0x114)
[<c009babc>] (register_handler_proc+0xe8/0x114) from [<c00982b0>] (__setup_irq+0x334/0x3fc)
[<c00982b0>] (__setup_irq+0x334/0x3fc) from [<c0098558>] (setup_irq+0x58/0x80)
[<c0098558>] (setup_irq+0x58/0x80) from [<c05ef51c>] (rk_timer_init_clockevent+0x98/0xcc)
[<c05ef51c>] (rk_timer_init_clockevent+0x98/0xcc) from [<c05ed0dc>] (percpu_timer_setup+0x54/0xa8)
[<c05ed0dc>] (percpu_timer_setup+0x54/0xa8) from [<c05ed4d8>] (secondary_start_kernel+0x128/0x160)
[<c05ed4d8>] (secondary_start_kernel+0x128/0x160) from [<600081bc>] (0x600081bc)
2014-02-20 20:07:14 +08:00
黄涛
48cac12f26 ts: rk29_i2c_goodix: fix resume with enable wrong irq 2014-02-20 20:07:14 +08:00
wdc
2b617362c7 keys: depend on rockchip adc config 2014-02-20 19:49:55 +08:00
qjb
26a75b730e Audio codec rt5631: add support 2014-02-20 18:29:18 +08:00
qjb
498fab0f01 Audio codec: add i2c scl_rate,default 100k. 2014-02-20 18:03:10 +08:00
wdc
05920f81d2 saradc: rm drivers/iio/adc/rk_adc.c 2014-02-20 17:34:36 +08:00
wdc
7b3d49ba7b saradc filename changed: rk_adc.c => rockchip_adc.c 2014-02-20 17:32:44 +08:00
黄涛
8d7cf6f006 ARM: rockchip: support cpu hotplug and basic PM 2014-02-20 16:12:16 +08:00
黄涛
59a7266118 ARM: rockchip: rk3188-cpufreq only avaliable on rk3188 2014-02-20 16:12:15 +08:00
wdc
c666c1459d linux3.10: support saradc key driver 2014-02-20 14:33:50 +08:00