Commit Graph

607288 Commits

Author SHA1 Message Date
Liang Chen
bd5e33aeb5 arm64: dts: rockchip: rk3328: Disable 400MHz and 600MHz for dmc
400MHz and 600MHz aren't supported at present.

This had submitted in commit a8c497e79d
("arm64: dts: rockchip: rk3328: Disable 400MHz and 600MHz for dmc")
but was modified in commit 59af91b563
("arm64: dts: rockchip: auto select opp-table by leakage for rk3328")
by mistake.

Change-Id: I864453d16596798e063a2c3569b260fd1a95c209
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-03-08 09:56:22 +08:00
Finley Xiao
5e4bf4ff0c arm64: dts: rockchip: px30: Enable pvtm
Change-Id: Ib2a0fe5bc2a9e80ea48d35fe526a9efe5df586e7
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-07 20:19:33 +08:00
Finley Xiao
b4c3912dce soc: rockchip: pvtm: Stop calculating cycles first if last status is enabled
Change-Id: I7a2188c9f94d776f5421aa25ac2e6e5f0f3042c8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-07 20:19:25 +08:00
Finley Xiao
c046b46454 soc: rockchip: pvtm: Fix frequency calculate done stutus
Change-Id: I16b0a1bbed3e765093e8cb65bb5524d3b9fa31ec
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-07 20:05:18 +08:00
Zhou weixin
8d7742eb92 arm64: dts: rockchip: rk3326-863-lp3-v10: adjust battery config
Change-Id: I8abb28863b4848ab900dddbd04447c098ffcfb84
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-03-07 17:21:25 +08:00
Finley Xiao
158114da5c clk: rockchip: px30: Make pll_npll critical
Change-Id: I14c44b2a467c58f2285afe6219add2c51e1c66eb
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-07 16:49:18 +08:00
Finley Xiao
8e7a8732e3 clk: rockchip: px30: Make hclk_usb_niu critical
Change-Id: Id54f2d3fe123faf92a323a78390e4d0d84c15d6c
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-07 15:45:57 +08:00
Sandy Huang
d3cc85847c drm/rockchip: px30 vop: fix iommu pagefault when disable win2
In the bandwidth tension environment when close win2, vop will access
the freed memory lead to iommu pagefault. so we add this reset to workaround.

Change-Id: I22b0c0f145d042e3aaf98fb45ffff6304c93963c
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-07 15:17:23 +08:00
Sandy Huang
50b9027229 drm/rockchip: fix some problem on the process
Because when enable uboot logo display, vop_crtc_enable() will not be
called when power on, this will lead to some vop initial like
axi channel and some debug irq will not be enabled. so we move some
config to vop_initial() and call from vop_crtc_loader_protect().

Change-Id: I86f02e2e7d12b78cce17e278baaf6dff93137167
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-07 15:17:23 +08:00
Sandy Huang
9c0c016732 drm/rockchip: vop: add feature for alpha add scale
some version vop unsupport pixel alpha add scale, this case
will lead to display error and post empty.

Change-Id: I32820a14292b46ce61fd30bfccdaa5e4f635de49
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-07 15:17:23 +08:00
Sandy Huang
285f058cfe Revert "drm/rockchip: px30 vop: delete win2"
This reverts commit 424a08f4cb.
Change-Id: I32820a14292b46ce61fd30bfccdaa5e4f635de4b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-07 15:17:23 +08:00
Sandy Huang
5851d77b10 Revert "drm/rockchip: px30 vop: set win2 zorder to 2"
This reverts commit 91b8d990c0.
Change-Id: I32820a14292b46ce61fd30bfccdaa5e4f635de4a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-07 15:17:23 +08:00
xxh
4fff6af1a3 arm: dts: rockchip: RK3229 EVB board for bluetooth
Change-Id: I9903cd96f1a1b52f610dbbd014e3b9409d4ec56d
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2018-03-07 15:16:10 +08:00
David Wu
39ddab2681 pinctrl: rockchip: Add pinctrl support for rk3308
The most pins of rk3308 are 2bits iomux, but the banks's register
width is 0x8.

Change-Id: I3305810b3f75febd6ec7a933b65e3c9d50f003dd
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-03-07 14:19:48 +08:00
David Wu
fd09897f20 PM / AVS: rockchip-io: add io selectors and supplies for rk3308
This adds the necessary data for handling io voltage domains on the rk3308.
As interesting tidbit, the rk3308 contains one iodomain area at grf,

Change-Id: Ife72a284a8926d02ef5df7a422d41924494d0300
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-03-07 14:19:34 +08:00
Shawn Lin
ed8bb5c154 arm64: dts: rockchip: Add MMC node for rk3308.dtsi
Change-Id: I9942f0ceb474d5411242fa79337782c0b15c7aa2
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-03-07 11:18:32 +08:00
Wyon Bi
5d9f7b3e1b arm64: dts: rockchip: Enable SD/SDIO 3.0 for px30-evb lvds board
Change-Id: I5c9006c7ae02fa8fca6025f1efd8ae902c294002
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-03-07 09:27:02 +08:00
Zhen Chen
789d098dd4 MALI: bifrost: rockchip: not to enable clk_gpu when probing
Otherwise, clk_gpu won't be disabled actually in the runtime.

Change-Id: I92787a5e23bfb92f5a79efda92c130832751cc3b
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-03-07 09:19:16 +08:00
Evgeniy Didin
192b050c35 UPSTREAM: mmc: dw_mmc: Fix the DTO/CTO timeout overflow calculation for 32-bit systems
The commit 9d9491a7da ("mmc: dw_mmc: Fix the DTO timeout calculation")
and commit 4c2357f57d ("mmc: dw_mmc: Fix the CTO timeout calculation")
made changes, which cause multiply overflow for 32-bit systems. The
broken
timeout calculations leads to unexpected ETIMEDOUT errors and causes
stacktrace splat (such as below) during normal data exchange with
SD-card.

| Running :  4M-check-reassembly-tcp-cmykw2-rotatew2.out -v0 -w1
| -  Info: Finished target initialization.
| mmcblk0: error -110 transferring data, sector 320544, nr 2048, cmd
| response 0x900, card status 0x0

DIV_ROUND_UP_ULL helps to escape usage of __udivdi3() from libgcc and so
code gets compiled on all 32-bit platforms as opposed to usage of
DIV_ROUND_UP when we may only compile stuff on a very few arches.

Lets cast this multiply to u64 type to prevent the overflow.

Change-Id: I45462bac22f946c5129eab0e0d5b22b3ed7ca19d
Fixes: 9d9491a7da ("mmc: dw_mmc: Fix the DTO timeout calculation")
Fixes: 4c2357f57d ("mmc: dw_mmc: Fix the CTO timeout calculation")
Tested-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Reported-by: Vineet Gupta <Vineet.Gupta1@synopsys.com> # ARC STAR
9001306872 HSDK, sdio: board crashes when copying big files
Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
Cc: <stable@vger.kernel.org> # 4.14
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from c715160225)
2018-03-07 08:46:47 +08:00
Shawn Lin
6246a99df7 Revert "FROMLIST: mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems"
This reverts commit 9c8f6bbf41.

Change-Id: I526d0748a998520ac3e65098c4d4cb4aa9ef4545
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-03-07 08:36:44 +08:00
Shawn Lin
776f510784 Revert "mmc: dw_mmc: Fix the CTO timeout overflow calculation for 32-bit systems"
This reverts commit bc6e99f243.

Change-Id: I8649faa9e16baa0024030f9f58482840c90fb255
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-03-07 08:36:37 +08:00
shika.zhou
1322dd69bb ARM: dts: rockchip: rk3229-evb-android: fix hdmi_sound mclk-fs from 256 to 128
Change-Id: I214ea50044c675067262392c36cdc917cbb2bb02
Signed-off-by: Didong Zhou <shika.zhou@rock-chips.com>
2018-03-06 18:29:39 +08:00
Finley Xiao
81206a0348 arm64: dts: rockchip: rk3308: Add cru node
Change-Id: Ica80020436931a5b146581b26e419f49c0077635
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-06 18:17:49 +08:00
Finley Xiao
539fd81fc6 clk: rockchip: Add clock controller for the RK3308
Add the clock tree definition for the new RK3308 SoC.

Change-Id: I1c0794b290207d28102e8d30cca13bbbf54ccfb8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-06 18:17:49 +08:00
Finley Xiao
229a58abce clk: rockchip: Add dt-binding header for rk3308
Add the dt-bindings header for the rk3308, that gets shared between
the clock controller and the clock references in the dts.

Change-Id: I9c6ea1228417f07603d89f810726e9cdffd2a10a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-06 18:17:49 +08:00
Finley Xiao
44977b50e8 dt-bindings: Add bindings for rk3308 clock controller
Add devicetree bindings for Rockchip cru which found on
Rockchip SoCs.

Change-Id: Ib28b15d3011704a04294672f82d6a8f855da1536
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-06 18:17:49 +08:00
Huang jianzhi
385b64ec76 ARM: dts: rockchip: enable nandc on rk3229-evb-android board
Change-Id: Ibb6af409aa5409eb4d1e0933ef15fa80126ec807
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-03-06 17:36:42 +08:00
Alexander Kochetkov
97eca46d52 clocksource/arm_global_timer: reconfigure clockevents after cpufreq change
After a cpufreq transition, update the clockevent's frequency
by fetching the new clock rate from the clock framework and
reprogram the next clock event.

The clock supplying the arm-global-timer on the rk3188 is coming
from the the cpu clock itself and thus changes its rate everytime
cpufreq adjusts the cpu frequency.

Found by code review, real impact not known. Assume what actual
HZ value will be different from expected on platforms using
arm-global-timer as clockevent.

The patch is port of commit 4fd7f9b128 ("ARM: 7212/1: smp_twd:
reconfigure clockevents after cpufreq change") and
commit 2b25d9f64b ("ARM: 7535/1: Reprogram smp_twd based on
new common clk framework notifiers").

Change-Id: I82552f621e30254b9c48f22fb3ebd2866d4476c8
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-03-06 17:29:54 +08:00
William Wu
7df9f2fba5 usb: quirks: add device quirk for Sonix FaceBlack device
We found that some Sonix usb cameras(e.g. idVendor=0c45,
idProduct=64ab or idProduct=64ac) can't support auto-suspend
well on rockchip platforms(e.g. rk3399).With auto-suspend,
these usb cameras MJPEG will display abnormally on all usb
controllers(DWC2/DWC3/EHCI). So we need to disable auto-
suspend for these special usb cameras.

Change-Id: I08c87cf5c9fa5ebe076b5dd3e873b74c5ec2cb83
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-03-06 17:02:05 +08:00
Sandy Huang
f72adfb770 drm/rockchip: vop: fix out of memory when calc bandwidth
bug log:
[   21.432332] Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#1] PREEMPT SMP
[   21.433228] Modules linked in:
[   21.433530] CPU: 3 PID: 716 Comm: ndroid.settings Not tainted 4.4.83 #121
[   21.434130] Hardware name: Rockchip RK3399 Excavator Board edp (Android) (DT)
[   21.434768] task: ffffffc0cd63e800 task.stack: ffffffc0cd630000
[   21.435304] PC is at kmem_cache_alloc_trace+0xa8/0x204
[   21.435776] LR is at binder_transaction+0x58c/0x1c44
......
[   21.572340] [<ffffff80081ad584>] kmem_cache_alloc_trace+0xa8/0x204
[   21.572890] [<ffffff800893964c>] binder_transaction+0x58c/0x1c44
[   21.573424] [<ffffff800893cd08>] binder_thread_write+0xa44/0x136c
[   21.573968] [<ffffff800893d710>] binder_ioctl_write_read+0xe0/0x314
[   21.574523] [<ffffff800893db14>] binder_ioctl+0x1d0/0x668
[   21.575010] [<ffffff80081c77b8>] do_vfs_ioctl+0x5e4/0x720
[   21.575494] [<ffffff80081c7954>] SyS_ioctl+0x60/0x88
[   21.575936] [<ffffff8008083170>] el0_svc_naked+0x24/0x28

or:

[  549.171031] Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#1] PREEMPT SMP
[  549.171920] Modules linked in:
[  549.172213] CPU: 2 PID: 2575 Comm: surfaceflinger Not tainted 4.4.83 #121
[  549.172810] Hardware name: Rockchip RK3399 Excavator Board edp (Android) (DT)
[  549.173444] task: ffffffc0b851a700 task.stack: ffffffc0b2a40000
[  549.173973] PC is at kmem_cache_alloc_trace+0xa8/0x204
[  549.174437] LR is at drm_flip_work_allocate_task+0x2c/0x4c
[  549.174920] pc : [<ffffff80081ad584>] lr : [<ffffff800848ce04>] pstate: 60400145
......
[  549.285299] [<ffffff80081ad584>] kmem_cache_alloc_trace+0xa8/0x204
[  549.285845] [<ffffff800848ce04>] drm_flip_work_allocate_task+0x2c/0x4c
[  549.286422] [<ffffff800848d020>] drm_flip_work_queue+0x38/0xa4
[  549.286942] [<ffffff80084a7a30>] vop_crtc_atomic_flush+0x1f48/0x2274
[  549.287509] [<ffffff800846add4>] drm_atomic_helper_commit_planes+0x194/0x1bc
[  549.288136] [<ffffff80084a0584>] rockchip_atomic_commit_complete+0x58/0xa0
[  549.288750] [<ffffff80084a0750>] rockchip_drm_atomic_commit+0x184/0x1a4
[  549.289340] [<ffffff800848e678>] drm_atomic_commit+0x64/0x70
[  549.289848] [<ffffff800848f960>] drm_mode_atomic_ioctl+0x4fc/0x604
[  549.290393] [<ffffff8008473368>] drm_ioctl+0x278/0x3f8
[  549.290856] [<ffffff80081c77b8>] do_vfs_ioctl+0x5e4/0x720
[  549.291339] [<ffffff80081c7954>] SyS_ioctl+0x60/0x88
[  549.291778] [<ffffff8008083170>] el0_svc_naked+0x24/0x28

Change-Id: I101c7dfa881611f3ca9225542e767897efe8fc1d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-06 14:08:00 +08:00
Sandy Huang
b42661a086 drm/rockchip: framebuffer should never be freed
In recovery mode, fb will be freed and lead to following error:

[    2.571563] ffffffc03d5f9400: FB ID: 0 (0) fb:0xffffffc03d5f9400, fb->refcount:0
[    2.571694] ------------[ cut here ]------------
[    2.571717] WARNING: at include/linux/kref.h:46
[    2.571738] Modules linked in:
[    2.571763]
[    2.571792] CPU: 0 PID: 169 Comm: recovery Not tainted 4.4.114 #1042
[    2.571815] Hardware name: Rockchip rk3326 863 board (DT)
[    2.571843] task: ffffffc03b078d40 task.stack: ffffffc03b064000
[    2.571877] PC is at drm_framebuffer_reference+0x98/0xc8
[    2.571910] LR is at drm_framebuffer_reference+0x68/0xc8
......
[    2.589269] [<ffffff80084823a8>] drm_framebuffer_reference+0x98/0xc8
[    2.589306] [<ffffff80084831ac>] drm_mode_set_config_internal+0xd4/0x110
[    2.589339] [<ffffff8008488560>] drm_mode_setcrtc+0x448/0x4ec
[    2.589370] [<ffffff8008479830>] drm_ioctl+0x26c/0x3f4
[    2.589404] [<ffffff80081d3884>] do_vfs_ioctl+0x6f0/0x82c
[    2.589438] [<ffffff80081d3a20>] SyS_ioctl+0x60/0x88
[    2.589470] [<ffffff80080832f0>] el0_svc_naked+0x24/0x28

Change-Id: I0706c832b4705bf23147c306e34557a152fb069b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-06 09:25:17 +08:00
Algea Cao
fe5dcc5f85 ARM: dts: rk322x: Support 322x hdmi cec
Change-Id: Ib321551c66127d6684c1502cb9b71944e06fd61e
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-03-05 18:36:01 +08:00
Tao Huang
483d2c91cb pinctrl: remove unused pinctrl-rk
Change-Id: I2420c01b80c56379f926f06d9070817a87a7c0eb
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-05 18:33:30 +08:00
Tao Huang
efe187c0d4 arm64: dts: rockchip: include dt-bindings/pinctrl/rockchip.h for rk3399-tve1205g
we should not use dt-bindings/pinctrl/rk.h

Change-Id: Idb86c360ea005a48fc3e0ed6a824139eb2afa2ff
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-05 18:33:15 +08:00
Meng Dongyang
423ac27a94 arm64: dts: rockchip: px30: modify error of EHCI and OHCI DT
Modify the clock name of EHCI and OHCI controllers, add
property of "status" for OHCI.

Change-Id: I444a906bc26e26989f5f6011de949b816266b9c6
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2018-03-05 18:29:36 +08:00
Tony Xie
1c1653f366 mfd: rk808: remove suspend config for rk817&rk809
rk817&rk809 run in auto mode always.

Change-Id: Iaa0f257445e6b0c3bddccbb722c8e36c7086a759
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-03-05 16:53:13 +08:00
Huicong Xu
45d0d8f11c phy: rockchip: inno-hdmi: fix hdmi can't display after change mode
for rk322x power down post-PLL must to both set rege0[5]=0 and set
pre pll pre-PLL unlock. So power down pre-PLL before post-PLL power
down

Change-Id: If0eb325b10bb6eb117b0a61d5852e9aae9d92ba6
Signed-off-by: Huicong Xu <xhc@rock-chips.com>
2018-03-05 16:50:43 +08:00
Meng Dongyang
2c759dbf17 phy: rockchip-inno-usb2: turn off differential receiver
Turn off differential receiver in suspend mode for RK3328 and
PX30 to save power.

The effect of turn off differential receiver on electricity:
USB20_AVDD_1V8: 0.73mA (turn on)
USB20_AVDD_1V8: 0.03mA (tunn off)

Change-Id: I0650d6d4b712a3692eed2564dda36d41b7956bb9
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2018-03-05 15:32:37 +08:00
Finley Xiao
ece39c304d arm64: dts: rockchip: Assign SCLK_UART1_SRC to USB480M fox px30
Change-Id: Iab1c8af4289cf0767910d6301689ea52a4195067
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-05 14:54:33 +08:00
Finley Xiao
9d6d0e8f7e clk: rockchip: px30: Add clock id and CLK_SET_RATE_NO_REPARENT for uart1
Change-Id: I1115c5cdeca962b3281297eec0c1d56a1fa7d023
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-05 14:54:02 +08:00
Zhaoyifeng
693e23c113 drivers: rk_nand: add dev pm ops
Change-Id: I9b428035b4a38127fdbb2dd8e2cf8a9b65342624
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2018-03-05 14:50:34 +08:00
Wyon Bi
0a40a57a15 phy/rockchip: mipi-dphy: add da_pwrok handling
we can power off the da_pwrok to reduce power consumption.

Change-Id: Ie08af149e74408e57750a186cf16d5adf4b3cfb7
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-03-05 09:38:22 +08:00
Huibin Hong
d312ed3e2b spi/rockchip: add pinctrl state high_speed
Change-Id: I2c81fabab31cf5cc07590f38ae517eccd5fa93f2
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-05 09:37:13 +08:00
Huibin Hong
7e4349ec9d spi: rockchip: set higher io driver when sclk higher than 24MHz
Change-Id: I963c92eab7f7bff0b32e2ac262aa79f0667f39ee
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-05 09:37:13 +08:00
Huibin Hong
787343f9d7 arm64: dts: rockchip: spi pinctrl-1 with 8ma driver strength for px30
Change-Id: I8e8298e5f37e56585815a29fc0bf46f3a31ff334
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-05 09:37:13 +08:00
Sandy Huang
91b8d990c0 drm/rockchip: px30 vop: set win2 zorder to 2
Change-Id: Id0d510ce4f247d14646d51bba4dfa94383ff8e29
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-01 18:27:17 +08:00
Sandy Huang
ddcb4f03b5 drm/rockchip: px30 vop: enable more debug interrupt
Change-Id: Ib9a6835cf4113b84fbd4ef249868a5ba11ec8073
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-01 18:19:36 +08:00
Zheng Yang
955745bc12 drm/bridge: synopsys: dw-hdmi: disable phy in dw_hdmi_bind
If hdmi is enabled in uboot and pluged out when booting kernel,
the hdmi phy is still enabled. It's better to disable it to
match the real status.

Change-Id: Ia1c5ede6499ee277d08c35a85c50e3257305f90f
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-03-01 16:23:55 +08:00
Zheng Yang
b87d97a99c drm/bridge: synopsys: dw-hdmi: update rxsense status in repo_hpd_event
Under following processes, rxsense will be not match the real
signal status.
1. HDMI plug in, irq is triggered.

2. HDMI irq is mute in dw_hdmi_hardirq, bring up dw_hdmi_irq.

3. For HDMI connection is not stable, phy_stat read in
   dw_hdmi_irq may be zero, then hdmi->rxsense will be false.

4. Connection fallback to stable, but dw_hdmi_irq had not
   unmute the irq, irq is not triggered again, and hdmi->rxsense
   keep false.

5. repo_hpd_event inform HDMI is pluggned in, dw_hdmi_bridge_enable
   is called to enable HDMI. For rxsense is flase, bridge is not
   powered up.

When repo_hpd_event is called, we think HDMI connection is stable,
updating rxsense is reliable.

Change-Id: Ie1f52f65b15e9a603dad9200529202053528a390
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-03-01 16:22:43 +08:00
Sandy Huang
f1f22eb38b drm/rockchip: add version control for rockchip drm driver
Add basic version for rockchip DRM driver

Change-Id: I13f9b81a79e4f580aa0ba6cb5b418e2780ee4f5e
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-01 16:04:28 +08:00