Commit Graph

611017 Commits

Author SHA1 Message Date
Sean Paul
effb787b85 CHROMIUM: drm/rockchip: Enforce cdn_dp_hdcp_key_1x size assumption
struct cdn_dp_hdcp_key_1x is assumed to be evenly divisible by 6, given
its usage and reserved member. Unfortunately, this is neither
documented, nor enforced anywhere. This patch fixes that.

BUG=b:63816472
TEST=Builds

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/657576
Commit-Ready: Sean Paul <seanpaul@google.com>
Tested-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>

Change-Id: I3f683cb9dd48d6e6d104d2e9a1a94c03e34d25dd
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Sean Paul
5d712529cc CHROMIUM: drm/rockchip: Bump HDCP authorization timeout to 3s
500ms is insufficient for my test monitor, bump it up to 3s.

BUG=b:64437717
TEST=HDCP works on ASUS VE258Q

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/657575
Commit-Ready: Sean Paul <seanpaul@google.com>
Tested-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>

Change-Id: Ia2d30046532fb80d224b5dc07494b3c69b7ffe5f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Sean Paul
54237fefb1 CHROMIUM: drm/sysfs: Make content_protection R/W
This makes debugging and stress testing much easier.

BUG=b:63816472
TEST=echo "{Un|D}esired" > /sys/class/drm/card1-DP-1/content_protection

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/657574
Commit-Ready: Sean Paul <seanpaul@google.com>
Tested-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>

Change-Id: I5dc2d836ded2c7f95f9ee4c16d9ac7242707e9f2
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Wyon Bi
1719a7cd5f drm/crtc: Export drm_mode_connector_set_obj_prop
Change-Id: Ie09b8798d7d2951c5e794c7054e85a5c40bc85d7
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Sean Paul
2339295063 CHROMIUM: drm/sysfs: Properly acquire modeset lock when showing content_protection
The modeset locks were not acquired, resulting in a kernel WARNING when
the attribute's show hook was called.

BUG=b:63816472
TEST=`cat /sys/class/drm/card1-DP-1/content_protection` and check logs

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/657573
Commit-Ready: Sean Paul <seanpaul@google.com>
Tested-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>

Change-Id: Ie401acf9f2780e01fd5735da8c922e4bd473eb6f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Sean Paul
e00541fcb2 CHROMIUM: drm: Update Content Protection ABI
The Content Protection properties in 4.4 used v2 of the upstream
patches, but chrome (and upstream) prefer v1. This patch removes the ksv
property and reinstates the ENABLED enum value to the content protection
property.

BUG=b:63816472
TEST=Watch protected content on external display, ensure CP is
	enabled/disabled properly by chrome

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/687800
Commit-Ready: Sean Paul <seanpaul@google.com>
Tested-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>

Change-Id: I38cecce2d15b4d4b1ce95ef0e572a08f1bc97131
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Brian Norris
f65bdbbfcc CHROMIUM: drm/rockchip: cdn-dp: resolve sysfs warning
I've seen this:

  sysfs: cannot create duplicate filename '/devices/platform/fec00000.dp/hdcp_key'

Presumably because component_add() can -EPROBE_DEFER.

At any rate, we shouldn't leave the sysfs file hanging around. Clean it
up on probe failure, and on removal.

BUG=b:36566733
TEST=boot

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/458836
Reviewed-by: Guenter Roeck <groeck@chromium.org>

Change-Id: Ic10f45c0d67cfcc41ab89af108a78f641f424872
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Ziyuan Xu
6f4dea14e1 CHROMIUM: drm/rockchip: cdn-dp: add HDCP 1.4 support
Implement HDCP 1.4 authentication function for DP driver.

First, userspace write HDCP cipher to driver via "hdcp_key" sysfs node,
it contains ksv and device private key. DP connector object has a
"Content Proection" property which it's 'Undesired' default. Userspace
set it to 'Desired' as a HDCP authentication request, and it will be set
to 'Enabled' once HDCP authenticated.

BUG=chrome-os-partner:56883
TEST=WITH HDCP KEY SITUATION:
	1.flash encrypt key to vpd area, and reboot chromebook.
	$ vpd -O; vpd -s hdcp_key_v1_4=something...;dump_vpd_log
	--force;
	2.write key to DP driver.
	$ grep hdcp_key /var/cache/vpd/full-v2.txt | cut -s -d \" -f 4 |
	tr -d "\n" > /sys/devices/platform/fec00000.dp/hdcp_key
	3.set "Content Protection" property to 'Desired'
	$ proptest 36 connector 23 1
	4.if the HDCP 1.4 authenticated, the 'Content Proection' will be
	changed to 'Enabled'

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/403975
Reviewed-by: Sean Paul <seanpaul@chromium.org>

Change-Id: I58f11535dd68d9517a3c7b0b9a61ed9fa6d9a1c0
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Yakir Yang
f302e1e4fd CHROMIUM: drm: Add "Enabled" value back to "Content Protection" property
Although this property value have been deleted from the latest
FROMLIST version (CL:266854), but the chromeos would want driver
to report the property to "Enabled" when hardware HDCP have been
enabled successfully, so let's add this back.

BUG=chrome-os-partner:56883
TEST=None

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/403974
Reviewed-by: Sean Paul <seanpaul@google.com>

Change-Id: Icc52d4a83ac434e898be1190cf934ed8333e78bf
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Sean Paul
244b82e20e FROMLIST: drm: Add Content Protection properties to drm
Add new standard connector properties to track whether content protection
(ex: hdcp) is desired by userspace. There are two properties involved,
"Content Protection" and "Content Protection KSV".

The "Content Protection" property allows userspace to request protection
on a connector. Set "Desired" to enable, "Undesired" to disable.

The "Content Protection KSV" property reflects the current state of
protection. If the KSV is 0, the connection is not protected. Once the
driver has enabled protection, it will update the the value with the KSV
(or similarly unique identifier, if not using HDCP) of the first-hop
device (sink or repeater).

(am from https://patchwork.kernel.org/patch/5439871/)

BUG=chrome-os-partner:56883
TEST=Tested on kevin, ensured the sysfs file showed up, and
     reflected the correct

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/403973
Reviewed-by: Sean Paul <seanpaul@google.com>

Change-Id: I6bef13729f77de6e37d2da5e12fc69f810a2e286
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Ziyuan Xu
6b1bb8ae1e CHROMIUM: drm/rockchip: cdn-dp: add hdcp_key node
Provide the "hdcp_key" debug node in sysfs, so that userspace can pass
the legitimate HDCP key to driver.

For ATF security, we should transmit HDCP key data via smc argument one
by one.

Moreover, driver request one page SRAM space as share memory for HDCP
key transmission.

BUG=chrome-os-partner:56883
TEST=WITH HDCP KEY SITUATION:
	1.flash encrypt key to vpd area, and reboot chromebook.
	$ vpd -O; vpd -s hdcp_key_v1_4=something...; dump_vpd_log
	--force
	2.write key to DP driver.
	$ grep hdcp_key /var/cache/vpd/full-v2.txt | cut -s -d \" -f 4 |
	tr -d "\n" > /sys/devices/platform/fec00000.dp/hdcp_key

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/403972
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Sean Paul <seanpaul@google.com>

Change-Id: I0b97dcf938623685b6938d8a40285fac3b1d5045
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-15 17:28:40 +08:00
Xiaotan Luo
3518fdd3aa arm64: dts: rk3308-evb-v11: add tas5731 sound
Change-Id: Iaae192f89119875885e2bf649365ad8bac0972e8
Signed-off-by: Xiaotan Luo <lxt@rock-chips.com>
2018-08-15 16:57:20 +08:00
Xiaotan Luo
398d1956b7 arm64: rk3308_linux_defconfig: add tas5731
Change-Id: I260673444024ad3d7f250bcb4be0e88106594ba5
Signed-off-by: Xiaotan Luo <lxt@rock-chips.com>
2018-08-15 16:57:20 +08:00
Xiaotan Luo
7cceef1e95 dt-bindings: add for tas5731 amplifiers
Change-Id: I777d3fd99602f4733d343b1b8a582dc44c5eaf77
Signed-off-by: Xiaotan Luo <lxt@rock-chips.com>
2018-08-15 16:57:20 +08:00
Xiaotan Luo
f41a7c121d ASoC: codecs: add tas5731 amplifiers
Change-Id: I3afb278de50bd3087ef230bb72f5ed46bdfd0ec4
Signed-off-by: Xiaotan Luo <lxt@rock-chips.com>
2018-08-15 16:57:20 +08:00
Finley Xiao
f9bb1e6408 video: rockchip: vpu: Implement get_dev_status()
This patch fixes NULL pointer when show load.

Fixes: 5bc582df48 ("video: rockchip: vpu: Add devfreq feature")
Change-Id: Ib0471cc3cd3b402c4207245c7b01283740bb2392
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-08-15 14:16:46 +08:00
Daniel Vetter
c35d130d6c UPSTREAM: drm/sysfs: Nuke TV/DVI property files
This goes all the way back to the original KMS commit aeons ago

commit f453ba0460
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Nov 7 14:05:41 2008 -0800

    DRM: add mode setting support

But it seems to be completely unused. Only i915 and nouveau even
register these properties, and the corresponding DDX don't even look
at them. Also the sysfs files are read-only, so not useful to
configure anything.

I suspect that this was added with the goal to have read-only access
to all properties in sysfs, but we never followed through on that.
Also, that should be done in a more generic fashion.

Since it would be real work to fix up the locking (with atomic we're
now chasing pointers when reading properties) and it seems unused lets
just nuke this all. It's easier. Of course we'll keep the properties
themselves, those are still exposed through the KMS ioctls.

Change-Id: I35a54c6850127287de0c3f82cafb084900d76b97
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459331120-27864-5-git-send-email-daniel.vetter@ffwll.ch
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit aa2e2996b1)
2018-08-15 12:04:00 +08:00
Gustavo A. R. Silva
564447706c UPSTREAM: drm/rockchip: fix NULL check on devm_kzalloc() return value
The right variable to check here is port, not dp.

This issue was detected using Coccinelle and the following semantic patch:

@@
expression x;
identifier fld;
@@

* x = devm_kzalloc(...);
  ... when != x == NULL
  x->fld

Change-Id: Iba535170f6ba6e8b6e3f53e898a79957e753229c
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170706215833.GA25411@embeddedgus
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 6f6e0b217a)
2018-08-15 11:57:56 +08:00
Jeffy Chen
93efecf2b6 UPSTREAM: drm/rockchip: cdn-dp: Don't try to release firmware when not loaded
Change-Id: I4b4c857f31c7dfa5e1c2ba5c9d4d345bb3e6331c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-6-git-send-email-jeffy.chen@rock-chips.com
(cherry picked from commit 54bd16780e)
2018-08-15 11:54:16 +08:00
Chris Zhong
cdf4ce932e BACKPORT: drm/rockchip: cdn-dp: don't configure hardware in mode_set
With atomic modesetting the hardware will be powered off when the
mode_set function is called.  We should configure the hardware in the
enable function.

backport: merge output_mode change from Mark yao efd11cc8fa
("drm/rockchip: Correct vop out_mode configure")

Change-Id: Ic68911e7faa24b2e482448346585e3f7c19da1a6
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit ef1844b7ed)
2018-08-15 11:52:52 +08:00
Dingqiang Lin
b20b2fd589 drivers: rkflash: support setting sfc clk by dts
1.Max sfc sclk frequency 150MHz, io clk 75MHz;
2,Set sclk depends on dts setting.

Change-Id: I52ac3bd1359cef2198806f88887fc8eb0a383eba
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-08-15 11:42:22 +08:00
Dingqiang Lin
6853e9bdab arm64: dts: rockchip: rk3308: set sfc clock frequency by assigned-clocks
Change-Id: I2165b06002ca837db19ccb60b5b9d704c6f1f996
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-08-15 11:41:16 +08:00
Dingqiang Lin
66d47a0f4a dt-bindings: rkflash: add assigned-clock-frequency property for sfc
Change-Id: I5a9f1e0c850b57459b8f3c03668fb97f1ed8a18f
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-08-15 11:39:47 +08:00
Chris Zhong
f6fd6ad123 UPSTREAM: drm/rockchip: cdn-dp: add more log for video config
In order to analyze some video config failed, add some useful
printouts.

Change-Id: Icd16bb1d065b33163b6f0ce0d99c2a63d77cc915
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1488940077-22297-4-git-send-email-zyw@rock-chips.com
(cherry picked from commit 9346ab7d72)
2018-08-15 11:02:31 +08:00
Chris Zhong
e65e389ee1 UPSTREAM: drm/rockchip: cdn-dp: Correct PHY register address
Correct some DP register address for PHY Configuration according to
latest datasheet.

Change-Id: If0f0014930d70a1badadea732148effb5145fbdb
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1488940077-22297-3-git-send-email-zyw@rock-chips.com
(cherry picked from commit 05c00c2f19)
2018-08-15 10:59:06 +08:00
Chris Zhong
8fbf4b8eba UPSTREAM: drm/rockchip: cdn-dp: return error code when clk_get_rate failed
The clk_get_rate return 0 if something goes wrong, so it can never be
less then zero, the ret should be set a error code, otherwise the
cdn_dp_clk_enable will return 0 when it failed at clk_get_rate.
In addition, clk_get_rate() returns an "unsigned long", so use
"unsigned long" instead of "u32" is better.

Change-Id: I0da9a07b5b9fda5f1586e8179013739d47d7ea35
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1488940077-22297-2-git-send-email-zyw@rock-chips.com
(cherry picked from commit a68b5bb670)
2018-08-15 10:50:43 +08:00
Christophe JAILLET
36381d5c7b UPSTREAM: drm/rockchip: cdn-dp: Fix error handling
It is likely that both 'clk_disable_unprepare()' should be called if
'pm_runtime_get_sync()' fails.

Add a new label for that, because 'err_set_rate' is not meaningful in this
case.

Add a missing call to 'pm_runtime_put()'.

Fixes: 1a0f7ed3ab ("drm/rockchip: cdn-dp: add cdn DP support for rk3399")

Change-Id: I30bae900a98fe7159728043aa9321d7d5f9573ec
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170220070815.23096-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit efe0220fc2)
2018-08-15 10:45:13 +08:00
Chris Zhong
f695580c2d UPSTREAM: drm/rockchip: cdn-dp: retry to check sink count
Sometimes the Dock is disconnected, but cdn_dp_encoder_disable is not
triggered by DRM. For example, unplug the Dock in console mode, and
re-plug it again, the cdn_dp_event_work will try to get the sink count
of Dock, since the DP is still active. But the Dock has been powered
down, it need re-power on, and wait for a while until it is ready to
DPCD communication.

Change-Id: I59c17a7ce41d5697b33195894eaf4bb49ac85171
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit 13e0e20694)
2018-08-15 10:28:28 +08:00
Jeffy Chen
cec98b9b4a UPSTREAM: drm/rockchip: cdn-dp: Move mutex_init to probe
We're trying to lock mutex when cdn-dp shutdown, so we need to make
sure the mutex is inited in cdn-dp's probe.

Change-Id: Id414cb9441dbaa245ef9899c7972b080fba44d6b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit be0270e4d1)
2018-08-15 10:23:44 +08:00
Shixiang Zheng
5e10055ea4 video/rockchip: rga2: Increase timeouts number and add error interrupt soft reset
Change-Id: I6436e73901a1b5d885be3d55ef51461564f94f29
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-08-15 09:57:32 +08:00
Dingqiang Lin
a5cf9c0db5 drivers: rkflash: support kernel IDBlock update
1.Write IDBlock to corresponding PBA
2.Update gc and sys code

Change-Id: I486325ab430df1135d6449d654a8143d5ef9788e
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-08-14 14:38:42 +08:00
Zhangbin Tong
6bced2db6d ARM: dts: add new dts file for rk3128h box avb
Change-Id: If2cb3260823b67398451fd1221f165262d104187
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-08-14 14:20:29 +08:00
Zhangbin Tong
bcecf8ede3 arm: dts: rk3128h-box: separate android fireware
Split DT source files to separate out android fireware specific DT
bindings.

Change-Id: I106afeff0485fa8346986693fb227e2c6e4913c2
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-08-14 14:20:19 +08:00
Finley Xiao
badb3e30ad PM / devfreq: rockchip_dmc: Add support to get multiple events data
There are multiple devfreq events and they may be used simultaneously.

Change-Id: I6f4c8754d3bcf5c20215a0689eb843a8f617b7a6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-08-13 20:13:57 +08:00
Finley Xiao
6e33c42767 PM / devfreq: rockchip_dmc: Optimize function rockchip_dmcfreq_probe()
Make the function rockchip_dmcfreq_probe() clearer.

Change-Id: Ia752b57000be6fb8135a2576e4892fd489130461
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-08-13 20:11:30 +08:00
Lin Jinhan
77d6953f0d media: soc_camera: ov9750 support as-master inexistence
as-master = <1>: will set ov9750 as master mode
as-master = <0>: will set ov9750 as slave mode
as-master inexistence: will set ov9750 as normal mode

Change-Id: Ibea5769be6c126b9365ed9333ac931d20ca20f2f
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2018-08-13 19:57:06 +08:00
David Wu
7e8ad67e3a pinctrl: rockchip: Disable GPIO_INTEN bit while gpio irq type setting
If the gpio IRQ type changes, it is possible to accidentally trigger
an interrupt, such as when the input is high, changed from level to
rise edge. For now, the best way to do this is to disable the INTEN
bit first, then configure the type to stagger this period of time.

Change-Id: I71351b9ed6f7920958c7451c2e51ab5f699875d1
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-08-13 19:53:50 +08:00
Jianqun Xu
cd916760f0 arm64: dts: rockchip: add emmc & sdmmc support for rk1808
Change-Id: I20c67ff735794798a8acb845eb2ff74a3edb0568
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-08-13 16:15:51 +08:00
Jianqun Xu
a81f09f7ae arm64: dts: rockchip: add cpu1 and xin24m for rk1808
RK1808 SoCs support 2*A35, so add cpu1 node to support.
And add xin24m.

Change-Id: Iebac460c8eb55362e7093f2906f4041a69e581dc
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-08-13 16:15:26 +08:00
Putin Lee
ca1e3ee69e video/rockchip: rga: Fixup erroneous judgment conditions for scale limit
Change-Id: I9d61e4851d38f8e029ed14ee05699d5dc8b4531e
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
2018-08-13 14:53:41 +08:00
Andy Yan
0de0bdec81 arm: rk3308_linux_aarch32[_debug]_defconfig: support for LZ4 compressed squashfs
Change-Id: I27709370aa565d5d0622b5b5b1437247ba8dc3db
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-08-13 14:26:55 +08:00
Weiguo Hu
77b4c8b36a net: wireless: rockchip_wlan: ssv6051 solve panic occasionally in ssv6xxx_late_resume
Change-Id: I0318f3fb2e86f8f4258c5e951d904407a87b88d2
Signed-off-by: Weiguo Hu <hwg@rock-chips.com>
2018-08-11 10:01:23 +08:00
Zhangbin Tong
5809f81cd7 ARM: rockchip_defconfig: Enable CONFIG_DM_VERITY_AVB
This is needed to enable the AVB specific dm-verity error handler.

Change-Id: Ic367b266d0e39232a6303eb59c82b9b69fc1b9cc
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-08-10 16:33:06 +08:00
Bian Jin chen
281d9dfff3 arm64: rockchip_defconfig: Enable CONFIG_DM_VERITY_AVB for avb
This is needed to enable the AVB specific dm-verity error handler.

Change-Id: I331ba1e6f459ec51ff8584cf1471ad05dd90f6db
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2018-08-10 16:33:06 +08:00
Sun ChuanHu
bffc008323 ARM: dts: rockchip: rk3308-voice-module-amic-mainboard-v10-aarch32 support blueetooth alsa card
Change-Id: I7910c76366edf40bc808f71d35a66402ce328ff7
Signed-off-by: Sun ChuanHu <aaron.sun@rock-chips.com>
2018-08-10 15:03:47 +08:00
Hu Kejun
358289d657 media: rk-isp10: update to v0.2.1
Change-Id: Ia0656d830bf5dd0b9e89af108d469bfd17f8e64d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-08-10 15:02:12 +08:00
Hu Kejun
ac3fe15f64 media: rk-isp10: fix the issue that setting of isp0 mipi affect txrx dphy.
Change-Id: I0c4a859caa42f1c5f9fd2ed51b2b8f92e84badd6
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-08-10 15:00:52 +08:00
Hu Kejun
9828198d5f media: rk-isp10: add isp reset function
Change-Id: Icb0e9ee27c4ae4329c0a1b9f19923f4b42be6405
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-08-10 15:00:52 +08:00
Wyon Bi
bfe130d64a drm/panel: simple: handle small delay durations more precisely
Since msleep is based on jiffies the panel could take longer
than expected. So use msleep for values greater than 20 msec
otherwise usleep_range.

Change-Id: Ib03c6e381b44a31dd57aeaaa3a88a459578de313
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-08-10 14:53:00 +08:00
Andy Yan
beacf69d2e arm: rk3308_linux_aarch32[_debug]_defconfig: enable zram support
Zram allows Linux to make more efficient use of RAM, since
the system can then hold more pages of memory in the compressed
swap than if the same amount of RAM had been used as application
memory or disk cache. This is particularly effective on machines
that do not have much ram space.

Enable:
echo 16M > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon /dev/zram0

More detial: Documentation/blockdev/zram.txt

Change-Id: I23954dbc7df79d4faac02cf7f393dbfc37858ee6
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-08-10 14:51:18 +08:00