Commit Graph

402116 Commits

Author SHA1 Message Date
blb
b5b11e0960 rk3128 & rk3036: add the power led support of box-rk88
Signed-off-by: Bai Longbiao <blb@rock-chips.com>
2014-11-27 20:46:18 +08:00
lintao
3aa5e0ae7a Revert "mmc: add rto for infinit sending timeout loop"
This reverts commit 426495888a.
2014-11-27 20:04:34 +08:00
Mark Yao
492bb08384 kernel logo: default disable CONFIG_LOGO
because most projects use uboot logo display at kenel, so default
disable kernel logo.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2014-11-27 16:36:54 +08:00
lintao
4ac86774c9 mmc: auto-pin when pm call for udbg
If mux data lines with uart, drivers auto work around
pcl setting for CARD_PRESENT state

Signed-off-by: lintao <lintao@rock-chips.com>
2014-11-27 15:32:13 +08:00
lintao
426495888a mmc: add rto for infinit sending timeout loop
dw_mci write cmd index to CMD register to trigger sending cmd by BIU.
However, if device fall into panic holding cmd/data line to low level cause BIU
cannnot send out cmd forever. So no cmd_done_int will come. AND, cmd response timeout
only valid after cmd been sent. Nothing to break this loop, we need a s/w recovery from
STATE_SENDING_CMD to STATE_IDLE, and the pending one reported as -ETIMEOUT, let caller
decide howto again.

Reported-by: roger.hu <hwg@rock-chips.com>
Signed-off-by: lintao <lintao@rock-chips.com>
Reviewed-and-tested-by: roger.hu <hwg@rock-chips.com>
2014-11-27 15:25:47 +08:00
Simon Xue
630463c333 rockchip: iommu: update iommu driver
1.Audi vpu_combo contain hevc and vpu,it need to switch
  when hevc on or vpu on,but there was a issue could cause
  hevc or vpu failed,so current vpu driver disable/enable
  iommu each frame to avoid failed,for these,a lot of log
  produced,so change dev_info to dev_dbg when iommu attach/deattach

2.AudiB has fixed the vop read problem,we use soc_is_rk3126 or
  soc_is_rk3128 instead of cpu_is_rk312x to identify Audi
2014-11-27 09:47:39 +08:00
Jaegeuk Kim
090748a40e f2fs: support xattr security labels
This patch adds the support of security labels for f2fs, which will be used
by Linus Security Models (LSMs).

Quote from http://en.wikipedia.org/wiki/Linux_Security_Modules:
"Linux Security Modules (LSM) is a framework that allows the Linux kernel to
support a variety of computer security models while avoiding favoritism toward
any single security implementation. The framework is licensed under the terms of
the GNU General Public License and is standard part of the Linux kernel since
Linux 2.6. AppArmor, SELinux, Smack and TOMOYO Linux are the currently accepted
modules in the official kernel.".

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
(cherry picked from commit 8ae8f1627f)
2014-11-26 18:42:33 +08:00
Jaegeuk Kim
48ec812dcc f2fs: update inode page after creation
I found a bug when testing power-off-recovery as follows.

[Bug Scenario]
1. create a file
2. fsync the file
3. reboot w/o any sync
4. try to recover the file
 - found its fsync mark
 - found its dentry mark
   : try to recover its dentry
    - get its file name
    - get its parent inode number
     : here we got zero value

The reason why we get the wrong parent inode number is that we didn't
synchronize the inode page with its newly created inode information perfectly.

Especially, previous f2fs stores fi->i_pino and writes it to the cached
node page in a wrong order, which incurs the zero-valued i_pino during the
recovery.

So, this patch modifies the creation flow to fix the synchronization order of
inode page with its inode.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
(cherry picked from commit 44a83ff6a8)
2014-11-26 18:42:26 +08:00
Jaegeuk Kim
44cd996db3 f2fs: change get_new_data_page to pass a locked node page
This patch is for passing a locked node page to get_dnode_of_data.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
(cherry picked from commit 64aa7ed98d)
2014-11-26 18:42:03 +08:00
ljf
2f7cb42735 rk3036,rk312x. merge the hevc and vpu workqueue according to audi vpu_combo feature 2014-11-26 17:52:19 +08:00
dkl
8291ffea4b clk: rk3126b: add support and fix clk_pll_set_rate_3036_apll 2014-11-26 17:08:45 +08:00
Mark Yao
f98465a8da rk-fb: display kernel logo if define CONFIG_LOGO
if define CONFIG_LOGO macro, display kernel logo,
else display logo from uboot.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2014-11-25 14:27:43 +08:00
hjc
8fb2012aaa rk312x lcdc: fix fb_par->state error. 2014-11-25 11:44:25 +08:00
许盛飞
eb28b49bcc test-power: add testpower dts-config
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2014-11-24 12:00:21 +08:00
lyz
2bb9a8534a usb: dwc_otg: fix problems of commit 058d627
1.
schedule_delayed_work(&pcd->check_id_work,msecs_to_jiffies(HZ))
should be schedule_delayed_work(&pcd->check_id_work,HZ)

2.fix coding-style to pass checkpatch.pl

3.set otg controler working on foece host/device mode to avoid
mode_missmatch_interrupts
2014-11-21 19:18:34 +08:00
zyk
e61707d66a rk3126 adc battery: change charge time 2014-11-21 14:56:45 +08:00
Huang, Tao
08b84034cc ARM: rockchip: rk3126b: add initial support 2014-11-21 14:01:21 +08:00
zyk
e5c10971fa rk312x adc battery: save capacity increment from uboot 2014-11-21 11:52:34 +08:00
zyk
1865ddaf3c rk3126-86v dts: add adc battery status for uboot 2014-11-21 11:45:34 +08:00
zyk
501c4c7d9a rk312x adc,author xhc:save old capacity on android 2014-11-21 09:38:47 +08:00
lyz
058d627c10 usb: dwc-otg: using delayed-work to detect id change event instead of id_change intrrupt 2014-11-20 20:23:56 +08:00
hhb
161b114d42 DMA pl330: pl330_get_desc try more to get desc 2014-11-19 15:26:15 +08:00
gwl
8ba4c03c54 Wifi: fix rtl usb wifi resume issue. 2014-11-19 10:57:19 +08:00
smj
3414c7adcd rk3128 : codec : fix the pop sound when codec power on at first 2014-11-18 19:46:06 +08:00
张晴
bc52f1110f rk3288:pmic:ricoh619:slove fuel gauge error when sleep wakeup for a long time 2014-11-18 16:10:52 +08:00
Zheng Yang
c4a062eff7 rk3036 lcdc:
If same layer is closed twice, atv_layer_cnt may be
        set to zero, so vop go to standy. Now win0、win1、hwc
        is mapped to atv_layer_cnt bit[0-2]. When open/close
        layer, set coresponding atv_layer_cnt bit to one/zero.
2014-11-18 11:07:02 +08:00
chenyifu
c529f8681b rk mipi: fixed the bug of getting mipi cmds in mipi screen dts file.
The driver supports 32 parameters of each mipi cmds
         when initialization the mipi screen.
         But the users may send a cmds longer the 32 parameters sometimes,
         and it will result in that the array out of range.
2014-11-18 10:56:14 +08:00
chenyifu
ce207ae224 rk mipi: fixed the bug of send generic short packet in rk32_mipi_dsi.c
DTYPE_GEN_SWRITE_2P:
	 	Generic Short WRITE Packet with 2 parameters(one command
		and one parameter). But the users may send the packet more
		than 2 parameters.

	DTYPE_GEN_SWRITE_1P:
		Generic Short WRITE Packet with 1 parameters(one command
		without parameter).
	DTYPE_GEN_SWRITE_0P:
		Generic Short WRITE Packet with 0 parameters(nop packet
		without command and parameter).
2014-11-18 10:11:03 +08:00
chenyifu
470eda6f9a rk mipi: fixed the bug of set_bits in rk32_mipi_dsi.c. 2014-11-18 09:08:03 +08:00
lyz
8c9ec46177 usb-uart: fix complie error 2014-11-17 17:01:45 +08:00
郭毅
89b6245b0b Revert "hwmon: rockchip_tsadc: dynamically control pclk"
This reverts commit da8f8281e9.
2014-11-17 15:53:08 +08:00
Zheng Yang
9e443f2f34 rk3036/3128 hdmi:
Take following sequence to avoid picture flash when swiching resolution:
	1. Send AV_MUTE GCP packet.
	2. Power off hdmi phy.
	3. Sleep 2 second to wait TV process no TMDS signal.
	4. Configure video and audio registers.
	5. Power on HDMI phy.
	6. Send CLEAR_MUTE GCP packet.
2014-11-17 14:30:09 +08:00
lintao
92469f0f90 mmc: capture dpm notify and avoid conflict scan flow
Signed-off-by: lintao <lintao@rock-chips.com>
2014-11-17 11:36:45 +08:00
dkl
81ba1a5515 rockchip: clk: add rk3188_plus type pll enable/disable
Add rk3188_plus type pll enable/disable ops. Disable unused plls
when display is off in rk3288.
2014-11-17 10:43:20 +08:00
Mark Yao
374968b424 rk_fb: wait extend lcdc vsync before release fence
before release fence, we should make sure extend lcdc config take
effect. if not, maybe GPU would access the buffer which hdmi using,
and cause tearing.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2014-11-17 09:41:54 +08:00
li yun zhi
5bb9bfc097 rk312x: usb-uart: disable usb-uart when cpu suspend 2014-11-14 11:02:14 +08:00
lyz
bc1de1203e usb: ehci-rockchip: fix bugs:
1. Remove ehci_port_power() in ehci-rockchip, since commit
c73cee7 the ehci_port_power() function no longer needed,
ehci hub driver taking care of power supply.
2. Fix 64-bit address pointer warnning.
3. Register rk-rhci driver by ehci_init_driver() for reducing
useless code.
4. Fix kernrl crash caused by null pointer dereference ,
When 'echo 0 > ehci_power' usb_remove_hcd() run twice. Set rk
ehci->host_enabled 0 to stop connect_detect thread.
2014-11-14 11:02:14 +08:00
lyz
18b8b4564e usb: implement power control by 'buspower' attribute
This node is used for usb controller test application to enum usb
devices plugin and disconnect.
2014-11-14 11:02:14 +08:00
hjc
5b0845df8f rk312x lcdc: fix compile warning.
Signed-off-by: xzj<xzj@rock-chips.com>
2014-11-14 09:51:07 +08:00
hjc
28343c3edd rk312x lcdc: if bcsh is disable and rgb output, close yuv2rgb and rgb2yuv.
Signed-off-by: xzj<xzj@rock-chips.com>
2014-11-13 18:22:59 +08:00
gwl
628f780dd9 BT: fix the issue of bt cannot wake up host. 2014-11-13 14:57:18 +08:00
张晴
037217d6f2 rk32:pmic:ricoh619:not currect 99% to 100% when no charger;slove soc to 0% when resume;modify usb type detect 2014-11-12 17:42:44 +08:00
cl
6140ec6529 efuse: clear compile warning
Signed-off-by: cl <cl@rock-chips.com>
2014-11-11 18:11:50 +08:00
cl
cb383f703f efuse: add rk312x_efuse_readregs()
Signed-off-by: cl <cl@rock-chips.com>
2014-11-11 18:02:04 +08:00
hhb
8e9913738f pl330: change NR_DEFAULT_DESC from 16 to 32 2014-11-11 17:31:47 +08:00
zyc
52761cd335 camsys_drv: v0.0x19.0 2014-11-11 15:05:24 +08:00
Zheng Yang
c833549837 fb: box: if win data format is yuv420/yuv420_A, set win state is 1. 2014-11-11 14:21:28 +08:00
zwl
0562e72158 rk fb:
fix rk3036 get fb addr error when resume

Signed-off-by: xzj<xzj@rock-chips.com>
Signed-off-by: zwl<zwl@rock-chips.com>
2014-11-11 09:33:02 +08:00
zyc
5c2e792bff camsys_drv: v0.0x18.0 camsys_head: v0.0xa.0 2014-11-10 11:45:56 +08:00
许盛飞
680e2073b7 pwm: add min-duty = 0
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2014-11-10 09:26:03 +08:00