firefly-linux-kernel-4.4.55.git
10 years agoaudio codec : add support compile all audio codec (omission rt5631)
qjb [Thu, 6 Mar 2014 03:01:23 +0000 (11:01 +0800)]
audio codec : add support compile all audio codec (omission rt5631)

10 years agoaudio codec : add support compile all audio codec
qjb [Thu, 6 Mar 2014 02:57:14 +0000 (10:57 +0800)]
audio codec : add support compile all audio codec

10 years agoAudio: add codec-of-node and cpu-of-node, delete CODEC_NAME_CMP, codec-name, cpu...
陈金泉 [Thu, 6 Mar 2014 02:48:47 +0000 (10:48 +0800)]
Audio: add codec-of-node and cpu-of-node, delete CODEC_NAME_CMP, codec-name, cpu-dai-name

10 years agodel rga disable status
zsq [Wed, 5 Mar 2014 11:51:37 +0000 (19:51 +0800)]
del rga disable status

10 years agodts: add mshc@rk3288.dtsi
lintao [Thu, 6 Mar 2014 00:30:51 +0000 (08:30 +0800)]
dts: add mshc@rk3288.dtsi

10 years agofix sensors include file err
guoyi [Wed, 5 Mar 2014 07:33:25 +0000 (15:33 +0800)]
fix sensors include file err

10 years agoporting sensor-dev to 3.10
guoyi [Wed, 5 Mar 2014 07:32:13 +0000 (15:32 +0800)]
porting sensor-dev to 3.10

10 years agoSDMMC: complete submission for IDMA. With reading and writing to verify IDMA, no...
xbw [Wed, 5 Mar 2014 09:53:16 +0000 (17:53 +0800)]
SDMMC: complete submission for IDMA. With reading and writing to verify IDMA, no exception occurs.

10 years agoSDMMC: define the debug log
xbw [Wed, 5 Mar 2014 09:33:38 +0000 (17:33 +0800)]
SDMMC: define the debug log

10 years agoSDMMC: set the init-clock to 200Khz.
xbw [Wed, 5 Mar 2014 09:31:37 +0000 (17:31 +0800)]
SDMMC: set the init-clock to 200Khz.

10 years agoadd rga support for dma buf
zsq [Wed, 5 Mar 2014 09:43:31 +0000 (17:43 +0800)]
add rga support for dma buf

10 years agofix rga 3288 dts interp error
zsq [Wed, 5 Mar 2014 09:32:07 +0000 (17:32 +0800)]
fix rga 3288 dts interp error

10 years agoupdate i2s spdif dts
qjb [Wed, 5 Mar 2014 09:23:49 +0000 (17:23 +0800)]
update i2s spdif dts

10 years agosound soc-core:codec_name not adapted i2c_name
qjb [Wed, 5 Mar 2014 08:42:52 +0000 (16:42 +0800)]
sound soc-core:codec_name not adapted i2c_name
change i2s id

10 years agoUSB: add gadget_connected and fsg.luns[1] for usb gadget
wlf [Wed, 5 Mar 2014 07:48:45 +0000 (15:48 +0800)]
USB: add gadget_connected and fsg.luns[1] for usb gadget

10 years agokey: add rk_send_wakeup_key function
wdc [Wed, 5 Mar 2014 06:07:16 +0000 (14:07 +0800)]
key: add rk_send_wakeup_key function

10 years agoSDMMC: guarantee stop-abort cmd in data errors
xbw [Wed, 5 Mar 2014 05:55:14 +0000 (13:55 +0800)]
SDMMC: guarantee stop-abort cmd in data errors
In error cases, DTO interrupt may or may not be generated depending
    on remained data. Stop/Abort command ensures DTO generation for that
    situation. Currently if 'stop' field of data is empty, there is no
    stop/abort command. So, it could hang waiting DTO. This change
    reinforces these cases.

10 years agoSDMMC: fix error handling on response error
xbw [Wed, 5 Mar 2014 03:08:13 +0000 (11:08 +0800)]
SDMMC: fix error handling on response error
ven if response error is detected in case data command, data transfer
    is continued. It means that data can live in FIFO. Current handling
    just breaks out the request when seeing the command error. This causes
    kernel panic in dw_mci_read_data_pio() [host->data = NULL]. And also,
    FIFO should be guaranteed to be empty.

    Unable to handle kernel NULL pointer dereference at virtual address 00000018
    <...>
    [<c02af814>] (dw_mci_read_data_pio+0x68/0x198) from [<c02b04b4>] (dw_mci_interrupt+0x374/0x3a0)
    [<c02b04b4>] (dw_mci_interrupt+0x374/0x3a0) from [<c006b094>] (handle_irq_event_percpu+0x50/0x194)
    [<c006b094>] (handle_irq_event_percpu+0x50/0x194) from [<c006b214>] (handle_irq_event+0x3c/0x5c)
    [<c006b214>] (handle_irq_event+0x3c/0x5c) from [<c006de1c>] (handle_fasteoi_irq+0xa4/0x148)
    [<c006de1c>] (handle_fasteoi_irq+0xa4/0x148) from [<c006aa88>] (generic_handle_irq+0x20/0x30)
    [<c006aa88>] (generic_handle_irq+0x20/0x30) from [<c000f154>] (handle_IRQ+0x38/0x90)
    [<c000f154>] (handle_IRQ+0x38/0x90) from [<c00085bc>] (gic_handle_irq+0x34/0x68)
    [<c00085bc>] (gic_handle_irq+0x34/0x68) from [<c0011f40>] (__irq_svc+0x40/0x70)
    Exception stack(0xef0b1c00 to 0xef0b1c48)
    1c00: 000eb0cf ffffffff 00001300 c01a7738 ef295e10 0000000a c04df298 ef0b1dc0
    1c20: ef295ec0 00000000 00000000 00000006 00000000 ef0b1c48 c02b1274 c01a7764
    1c40: 20000113 ffffffff
    [<c0011f40>] (__irq_svc+0x40/0x70) from [<c01a7764>] (__loop_delay+0x0/0xc)
    Code: e1a00005 e0891006 e0662004 e12fff33 (e59a3018)
    ---[ end trace a7043b9ba9aed1db ]---
    Kernel panic - not syncing: Fatal exception in interrupt

10 years agowifi: extend power up waiting time.
gwl [Wed, 5 Mar 2014 02:08:56 +0000 (10:08 +0800)]
wifi: extend power up waiting time.

10 years ago3288: i2c & adc dts update
wdc [Wed, 5 Mar 2014 01:40:47 +0000 (09:40 +0800)]
3288: i2c & adc dts update

10 years agoUSB: add otg irq detect function and chip id detect function
wlf [Wed, 5 Mar 2014 01:40:45 +0000 (09:40 +0800)]
USB: add otg irq detect function and chip id detect function

10 years agoHDMI: add rk3288 hdmi register defined
zwl [Wed, 5 Mar 2014 00:51:21 +0000 (08:51 +0800)]
HDMI: add rk3288 hdmi register defined

10 years agoSDMMC: use slot-gpio to handle cd pin
xbw [Tue, 4 Mar 2014 13:47:48 +0000 (21:47 +0800)]
SDMMC: use slot-gpio to handle cd pin

10 years agofix rga driver crash bug
zsq [Tue, 4 Mar 2014 13:06:53 +0000 (21:06 +0800)]
fix rga driver crash bug

10 years agoSDMMC: adjust the fifoth with block size, amend use of idmac sw reset, fix the transf...
xbw [Tue, 4 Mar 2014 12:48:05 +0000 (20:48 +0800)]
SDMMC: adjust the fifoth with block size, amend use of idmac sw reset, fix the transfer termination in IDMAC mode

10 years agoSDMMC: set the supported max/min frequency
xbw [Tue, 4 Mar 2014 11:35:51 +0000 (19:35 +0800)]
SDMMC: set the supported max/min frequency

10 years agoSDMMC-emmc:add the capability to support hs200 mode
xbw [Tue, 4 Mar 2014 09:47:47 +0000 (17:47 +0800)]
SDMMC-emmc:add the capability to support hs200 mode

10 years agork serial:DMA use new interfaces, and use some interfaces with devm_ prefix
hhb [Tue, 4 Mar 2014 09:25:09 +0000 (17:25 +0800)]
rk serial:DMA use new interfaces, and use some interfaces with devm_ prefix

10 years agoSDMMC: to support tuning scheme for the speed modes HS200 and SDR104
xbw [Tue, 4 Mar 2014 09:17:33 +0000 (17:17 +0800)]
SDMMC: to support tuning scheme for the speed modes HS200 and SDR104

10 years agork: ion: support rk3288 fpga
CMY [Tue, 4 Mar 2014 08:03:55 +0000 (16:03 +0800)]
rk: ion: support rk3288 fpga

10 years agoSDMMC:
xbw [Tue, 4 Mar 2014 07:32:32 +0000 (15:32 +0800)]
SDMMC:
1.Honor requests to set the clock to 0
2.Set timeout to max upon resume

10 years agoUSB: renamed ehci-rk.c -> ehci-rkhsic.c for support HSIC and EHCI
wlf [Tue, 4 Mar 2014 07:30:07 +0000 (15:30 +0800)]
USB: renamed ehci-rk.c -> ehci-rkhsic.c for support HSIC and EHCI

10 years agoMerge branch 'develop-3.10' of ssh://10.10.10.29/rk/kernel into develop-3.10
xbw [Tue, 4 Mar 2014 07:14:42 +0000 (15:14 +0800)]
Merge branch 'develop-3.10' of ssh://10.10.10.29/rk/kernel into develop-3.10

10 years agodma pl330:change SINGLE to BURST
hhb [Tue, 4 Mar 2014 07:14:02 +0000 (15:14 +0800)]
dma pl330:change SINGLE to BURST

10 years agoSDMMC:
xbw [Tue, 4 Mar 2014 07:13:57 +0000 (15:13 +0800)]
SDMMC:
1.Add the ability to set the ciu clock frequency
2.Handle DW_MCI_QUIRK_IDMAC_DTO properly

10 years agowatch dog: prepare driver for kernel3.10
hhb [Tue, 4 Mar 2014 07:05:09 +0000 (15:05 +0800)]
watch dog: prepare driver for kernel3.10

10 years agoMerge branch 'develop-3.10' of ssh://10.10.10.29/rk/kernel into develop-3.10
xbw [Tue, 4 Mar 2014 06:47:55 +0000 (14:47 +0800)]
Merge branch 'develop-3.10' of ssh://10.10.10.29/rk/kernel into develop-3.10

10 years ago1. fix error return code in dw_mci_probe()
xbw [Tue, 4 Mar 2014 06:47:26 +0000 (14:47 +0800)]
1. fix error return code in dw_mci_probe()
2.clear IDSTS register when initialize IDMAC
3.change the macro name from DTO to DRTO

10 years agork3288 dts i2s :add i2s,rk610 ctrl,rk610 codec into dts
qjb [Tue, 4 Mar 2014 06:10:02 +0000 (14:10 +0800)]
rk3288 dts i2s :add i2s,rk610 ctrl,rk610 codec into dts

10 years agowifi: change some function name to be more formal.
gwl [Tue, 4 Mar 2014 03:41:01 +0000 (11:41 +0800)]
wifi: change some function name to be more formal.

10 years agoRevert "SDMMC:"
xbw [Tue, 4 Mar 2014 03:15:43 +0000 (11:15 +0800)]
Revert "SDMMC:"

This reverts commit 62162391804d11365c2c4c5c63467c366fa318dc.

10 years agoHDMI: init rk3288 hdmi driver code
zwl [Tue, 4 Mar 2014 01:53:36 +0000 (09:53 +0800)]
HDMI: init rk3288 hdmi driver code

10 years agowifi: add default wifi configuration to rockchip_defconfig.
gwl [Tue, 4 Mar 2014 01:34:33 +0000 (09:34 +0800)]
wifi: add default wifi configuration to rockchip_defconfig.

10 years agodts : add rk610 core and rk610 codec
qjb [Mon, 3 Mar 2014 09:58:57 +0000 (17:58 +0800)]
dts : add  rk610 core and rk610 codec

10 years agork610 kernel3.10 : add rk610 core and rk610 codec support
qjb [Mon, 3 Mar 2014 09:57:18 +0000 (17:57 +0800)]
rk610 kernel3.10 : add rk610 core and rk610 codec support

10 years agork3288: add i2c, adc in dts
wdc [Mon, 3 Mar 2014 09:40:22 +0000 (17:40 +0800)]
rk3288: add i2c, adc in dts

10 years agoUSB: fix DWC_OTG driver compile error
wlf [Mon, 3 Mar 2014 09:06:51 +0000 (17:06 +0800)]
USB: fix DWC_OTG driver compile error

10 years agopinctrl:add suspend and resume function
luowei [Mon, 3 Mar 2014 07:47:40 +0000 (15:47 +0800)]
pinctrl:add suspend and resume function

10 years agoUSB: support DWC_OTG Driver Version3.10 and used by default
wlf [Mon, 3 Mar 2014 06:48:06 +0000 (14:48 +0800)]
USB: support DWC_OTG Driver Version3.10 and used by default

10 years agoclk: rk: fix rk3188 hsic clocks
dkl [Mon, 3 Mar 2014 02:30:46 +0000 (10:30 +0800)]
clk: rk: fix rk3188 hsic clocks

10 years agowifi: modify rfkill_wlan_driver match table's name.
gwl [Mon, 3 Mar 2014 01:27:24 +0000 (09:27 +0800)]
wifi: modify rfkill_wlan_driver match table's name.

10 years agoclose rga driver for temp
zsq [Mon, 3 Mar 2014 01:21:48 +0000 (09:21 +0800)]
close rga driver for temp

10 years agoadd rga 3288 dts/modify rga2 driver
zsq [Sat, 1 Mar 2014 08:39:31 +0000 (16:39 +0800)]
add rga 3288 dts/modify rga2 driver

10 years agoadd rk3188 rga dst / add rga2 drivers
zsq [Sat, 1 Mar 2014 08:17:04 +0000 (16:17 +0800)]
add rk3188 rga dst / add rga2 drivers

10 years agodvfs : move dvfs.h to include/linux/rockchip/
陈亮 [Fri, 28 Feb 2014 09:27:21 +0000 (01:27 -0800)]
dvfs : move dvfs.h to include/linux/rockchip/

10 years agork3188:linux3.10: add ddr clk node ops
陈亮 [Fri, 28 Feb 2014 08:40:56 +0000 (00:40 -0800)]
rk3188:linux3.10: add ddr clk node ops

10 years agork3188:linux3.10: add ddr freq support
陈亮 [Fri, 28 Feb 2014 08:38:14 +0000 (00:38 -0800)]
rk3188:linux3.10: add ddr freq support

10 years agork3188:linux3.10: add cpufreq support
陈亮 [Fri, 28 Feb 2014 08:34:45 +0000 (00:34 -0800)]
rk3188:linux3.10: add cpufreq support

10 years agork3188:linux3.10: add dvfs support
陈亮 [Fri, 28 Feb 2014 08:33:02 +0000 (00:33 -0800)]
rk3188:linux3.10: add dvfs support

10 years agoclk: rk: merge some defines about clk and add rk3188 prefix
dkl [Fri, 28 Feb 2014 08:06:54 +0000 (16:06 +0800)]
clk: rk: merge some defines about clk and add rk3188 prefix

10 years agolinux3.10: renamed io_vol_domain to rockchip_io_domain
张晴 [Fri, 28 Feb 2014 02:45:18 +0000 (10:45 +0800)]
linux3.10: renamed io_vol_domain to rockchip_io_domain

10 years agork31:linux3.10:support io domain setting by regulator
张晴 [Fri, 28 Feb 2014 02:30:02 +0000 (10:30 +0800)]
rk31:linux3.10:support io domain setting by regulator

10 years agoARM: rockchip: add rk3288.c, pie support rk3288
黄涛 [Thu, 27 Feb 2014 13:46:31 +0000 (21:46 +0800)]
ARM: rockchip: add rk3288.c, pie support rk3288

10 years agoARM: rockchip: common.h add RK_DEVICE macro
黄涛 [Thu, 27 Feb 2014 12:54:11 +0000 (20:54 +0800)]
ARM: rockchip: common.h add RK_DEVICE macro

10 years agowifi: create a new patch 'drivers/net/wireless/rockchip_wlan' for porting drivers.
gwl [Thu, 27 Feb 2014 09:30:01 +0000 (17:30 +0800)]
wifi: create a new patch 'drivers/net/wireless/rockchip_wlan' for porting drivers.

10 years agoSDMMC:
xbw [Thu, 27 Feb 2014 09:20:54 +0000 (17:20 +0800)]
SDMMC:
1.exclude asynchronous transfer for special request.
2.fix async request mechanism for sequential read scenarios
3.don't start new request when the card is removed
4.support packed write command for eMMC4.5 devices
5.fix the host's claim-release in special request
6.Adding support for sanitize in eMMC 4.5
7.Handle card shutdown from mmc_bus
8.fix null pointer use in mmc_blk_remove_req
9.fix host release issue after discard operation
10.modify the switch voltage.
11.add some profile for sd-sdio3.0

10 years agowifi: remove unused wifi drivers and patch we add before.
gwl [Thu, 27 Feb 2014 09:12:06 +0000 (17:12 +0800)]
wifi: remove unused wifi drivers and patch we add before.

10 years agowifi: remove unused wifi drivers we add before.
gwl [Thu, 27 Feb 2014 09:00:53 +0000 (17:00 +0800)]
wifi: remove unused wifi drivers we add before.

10 years agoRevert "wifi: remove patch drivers/net/wireless"
gwl [Thu, 27 Feb 2014 08:55:10 +0000 (16:55 +0800)]
Revert "wifi: remove patch drivers/net/wireless"

This reverts commit b333a5d509b7cbe78cee0d9a389309f93ab02483.

10 years agoRevert "wifi: renew patch drivers/net/wireless"
gwl [Thu, 27 Feb 2014 08:54:15 +0000 (16:54 +0800)]
Revert "wifi: renew patch drivers/net/wireless"

This reverts commit 51af772efb0e9cb920fab5e13837586802828ddd.

10 years agoadd rk3288 pinctrl dts code
luowei [Thu, 27 Feb 2014 08:34:12 +0000 (16:34 +0800)]
add rk3288 pinctrl dts code

10 years agowifi: enable sdio interface. add wifi resources into dts.
gwl [Thu, 27 Feb 2014 08:31:47 +0000 (16:31 +0800)]
wifi: enable sdio interface. add wifi resources into dts.

10 years agowifi: add wifi power manage driver rfkill-wlan.c.
gwl [Thu, 27 Feb 2014 08:19:40 +0000 (16:19 +0800)]
wifi: add wifi power manage driver rfkill-wlan.c.

10 years agowifi: renew patch drivers/net/wireless
gwl [Thu, 27 Feb 2014 08:08:52 +0000 (16:08 +0800)]
wifi: renew patch drivers/net/wireless

10 years agowifi: remove patch drivers/net/wireless
gwl [Thu, 27 Feb 2014 08:05:00 +0000 (16:05 +0800)]
wifi: remove patch drivers/net/wireless

10 years agopwm-backlight: set pwm-bl default-frequency(25000ns)
许盛飞 [Thu, 27 Feb 2014 04:27:18 +0000 (12:27 +0800)]
pwm-backlight: set pwm-bl default-frequency(25000ns)

10 years agoRevert "pwm-backlight: set pwm-bl default-frequency"
许盛飞 [Thu, 27 Feb 2014 04:17:52 +0000 (12:17 +0800)]
Revert "pwm-backlight: set pwm-bl default-frequency"

This reverts commit 26b0c3a3ec15be28841c946333fdd6d0eb02d8e3.

10 years agopwm-backlight: set pwm-bl default-frequency
许盛飞 [Thu, 27 Feb 2014 03:44:50 +0000 (11:44 +0800)]
pwm-backlight: set pwm-bl default-frequency

10 years agoi2s dts : add clk name
qjb [Wed, 26 Feb 2014 06:45:08 +0000 (14:45 +0800)]
i2s dts : add clk name

10 years agoi2s : add debug interface
qjb [Wed, 26 Feb 2014 03:31:30 +0000 (11:31 +0800)]
i2s : add debug interface

10 years agopwm-backlight: set default devname as rk28_bl, to make Android happy
黄涛 [Tue, 25 Feb 2014 10:50:08 +0000 (18:50 +0800)]
pwm-backlight: set default devname as rk28_bl, to make Android happy

10 years agoARM: rockchip: rk3188-tb fix backlight setting for Android
黄涛 [Tue, 25 Feb 2014 10:44:58 +0000 (18:44 +0800)]
ARM: rockchip: rk3188-tb fix backlight setting for Android

10 years agoUSB: fix bug in dwc_otg_pcd_remove
wlf [Tue, 25 Feb 2014 10:05:27 +0000 (18:05 +0800)]
USB: fix bug in dwc_otg_pcd_remove

10 years agoUSB: set hcd->has_tt = 1 to support parent hub TT
wlf [Tue, 25 Feb 2014 09:58:46 +0000 (17:58 +0800)]
USB: set hcd->has_tt = 1 to support parent hub TT

10 years agosaradc: rockchip: fix some codes about clk
dkl [Tue, 25 Feb 2014 09:41:59 +0000 (17:41 +0800)]
saradc: rockchip: fix some codes about clk

10 years agoUSB: set bcdDevice default value 3.0
wlf [Tue, 25 Feb 2014 09:37:56 +0000 (17:37 +0800)]
USB: set bcdDevice default value 3.0

10 years agork: ion: modify the ION_IOC_XXX name easy to understand
CMY [Tue, 25 Feb 2014 09:23:06 +0000 (17:23 +0800)]
rk: ion: modify the ION_IOC_XXX name easy to understand

10 years agork3188 i2s dts : set i2s drive default 8ma
qjb [Tue, 25 Feb 2014 09:22:13 +0000 (17:22 +0800)]
rk3188 i2s dts : set i2s drive default 8ma

10 years agoARM: rockchip: rk3188-tb backlight use new enable-gpios property
黄涛 [Tue, 25 Feb 2014 09:16:56 +0000 (17:16 +0800)]
ARM: rockchip: rk3188-tb backlight use new enable-gpios property

10 years agopwm-backlight: Remove unused variable
黄涛 [Tue, 25 Feb 2014 09:08:52 +0000 (17:08 +0800)]
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>
10 years agopwm_backlight: avoid short blank screen while doing hibernation
Huayi Li [Wed, 9 Oct 2013 02:33:02 +0000 (10:33 +0800)]
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>
10 years agopwm-backlight: Fix brightness adjustment
Thierry Reding [Fri, 18 Oct 2013 08:46:24 +0000 (10:46 +0200)]
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

10 years agopwm-backlight: Allow for non-increasing brightness levels
Mike Dunn [Sun, 22 Sep 2013 16:59:56 +0000 (09:59 -0700)]
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>
10 years agopwm-backlight: Use new enable_gpio field
Thierry Reding [Fri, 30 Aug 2013 10:32:18 +0000 (12:32 +0200)]
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>
10 years agopwm-backlight: Add optional enable GPIO
Thierry Reding [Fri, 30 Aug 2013 09:51:22 +0000 (11:51 +0200)]
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>
10 years agopwm-backlight: Track enable state
Thierry Reding [Wed, 2 Oct 2013 16:01:02 +0000 (18:01 +0200)]
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>
10 years agopwm-backlight: Refactor backlight power on/off
Thierry Reding [Mon, 7 Oct 2013 09:32:02 +0000 (11:32 +0200)]
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>
10 years agopwm-backlight: Improve readability
Thierry Reding [Mon, 7 Oct 2013 09:30:50 +0000 (11:30 +0200)]
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>
10 years agopwm-backlight: reset to unpstream version
黄涛 [Tue, 25 Feb 2014 08:55:47 +0000 (16:55 +0800)]
pwm-backlight: reset to unpstream version

10 years agoi2s : add i2s clr reg check
qjb [Tue, 25 Feb 2014 07:48:01 +0000 (15:48 +0800)]
i2s : add i2s clr reg check