Commit Graph

1058825 Commits

Author SHA1 Message Date
Wyon Bi
94e5981901 drm/rockchip: analogix_dp: Add support for external bridge
The current output code only supports connection to drm panels.
Add code to support drm bridge, to support connections to
external connectors.

Change-Id: I775244b7183692f07b74123fa43c8bb958525087
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:28:26 +08:00
Wyon Bi
d177813589 drm/rockchip: analogix_dp: Accept drm_of_find_panel_or_bridge failure
Not having an endpoint bound in DT should not cause a failure here,
there are fallbacks. So explicitly accept a missing endpoint.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iea7e2456de05b76cf6d94232ab9bb75425cfffc0
2021-07-05 15:28:20 +08:00
Wyon Bi
f963ba7784 drm/bridge: analogix_dp: Add optional LCD panel self test
Many TCON devices include an embedded LCD panel self-test mode.
This mode is designed to help system integrators identify
the root cause of abnormal display operation, without the use of
complicated debug tools.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I19770c7488d43e2486c5fde5cc0a5b345e5be0eb
2021-07-05 15:28:13 +08:00
Wyon Bi
5d2f3f959e drm/bridge: analogix_dp: Compliant with eDP receiver enhanced frame capability
On an eDP connection, the eDP sink must operate only in Enhanced Framing
Mode. The Source must send only Enhanced Framing on the main link, and
must only write a '0' to DPCD 00101h: LANE_COUNT_SET Bit 7:
ENHANCED_FRAME_EN bit.

Independent of method used, DP1.2-compliant eDP Receivers shall indicate
any eDP protocol differentiation method they support through the
Receiver Capability Field of DPCD (DPCD:0000Dh).

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I38e30426924bed531047a2d41b812d697d9f9838
2021-07-05 15:28:05 +08:00
Wyon Bi
9622f2d0f1 drm/bridge: analogix_dp: disable PSR feature by default
Panel Self Refresh (PSR), originally introduced in eDP v1.3, is an
optional feature for Source and Sink devices.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I39c357d7caefc087241407a7d6b452e47e16eb9a
2021-07-05 15:27:59 +08:00
Wyon Bi
0d0f8a70ae drm/rockchip: analogix_dp: Add audio support
Change-Id: Ib611037f497a0758bd2b6a312155562a719fe15f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:27:53 +08:00
Wyon Bi
ada06fcdb5 drm/bridge: analogix_dp: Add bankwidth check
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ia2f2e53cd0b16ca6401e53f949b8746f3be15dfc
2021-07-05 15:27:47 +08:00
Wyon Bi
c7530c70e4 drm/bridge: analogix_dp: Fix enhanced framing capability in fast training
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ib192b52e2421d558c4c7fd5e6683bbaf99a43d5c
2021-07-05 15:27:42 +08:00
Wyon Bi
6f131cd6df drm/bridge: analogix_dp: Add support for panel EDID
Change-Id: I7caba18fb979ad2b8f419c58f989b27d3e756ebf
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:27:35 +08:00
Wyon Bi
8c15e0b8c5 drm/bridge: analogix_dp: Fix hpd handling for GPIO
Change-Id: I0d62201095ab82f5ed0ddcfd53abaef6089a2e9d
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:27:29 +08:00
zain wang
ec64749b4e FROMLIST: drm/bridge: analogix_dp: Don't return -EBUSY when msg->size is 0 in aux transaction
The analogix_dp_transfer() will return -EBUSY if num_transferred is zero.
But sometimes we will send a bare address packet to start the transaction,
like drm_dp_i2c_xfer() show:
	......
	/* Send a bare address packet to start the transaction.
	 * Zero sized messages specify an address only (bare
	 * address) transaction.
	 */
	msg.buffer = NULL;
	msg.size = 0;
	err = drm_dp_i2c_do_msg(aux, &msg);
	......

In this case, the msg->size is zero, so the num_transferred will be zero too.
We can't return -EBUSY here, let's we return num_transferred if num_transferred
equals msg->size.

BUG=chrome-os-partner:57501
TEST="gooftool probe --comps display_panel"

Change-Id: Ie09f26b2c31e2406d21233afd8677337de5e77f2
Signed-off-by: zain wang <wzz@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9569045/)
Reviewed-on: https://chromium-review.googlesource.com/414674
Commit-Ready: Caesar Wang <wxt@rock-chips.com>
Tested-by: 征增 王 <wzz@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
2021-07-05 15:27:23 +08:00
Wyon Bi
0173eec295 drm/rockchip: analogix_dp: Add support for rk3568
This patch adds support for Analogix eDP TX IP used on RK3568 SoC.

Change-Id: Ieb89906cba5bc569ed8c476fecd00f6035a7f582
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:26:37 +08:00
Wyon Bi
6d45fa9b4d drm/bridge: analogix_dp: Move PLL lock check to analogix_dp_set_link_bandwidth()
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I7c094f84d7aeb2a9e8b8343c634bb8a01ab8e5dd
2021-07-05 15:05:18 +08:00
Wyon Bi
d9e410b03c drm/bridge: analogix_dp: Simplify analogix_dp_{set/get}_lane_link_training helpers
Change-Id: I53231fba491c7e10fbdfdbaf0c74c2ca57eaf76e
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:05:09 +08:00
Wyon Bi
5639c343b0 drm/bridge: analogix_dp: Don't handle adjust request if clock recovery is already ok
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I44aa6678285607c838cb8c27dc566349a17d59c5
2021-07-05 15:04:58 +08:00
Wyon Bi
e17b120e85 drm/bridge: analogix_dp: Add runtime PM callback to handle clock
Ensure the pclk is enabled when register access occurs.

Change-Id: Id108a04aed8424725dcc02dec9fe46bfc724c09b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:04:47 +08:00
Wyon Bi
33f5d1439f drm/bridge: analogix_dp: Workaround async issue between pclk clock and 24m clock
Background:
- EDP software register bank is on the EDP 24m clock domain;
- CPU access EDP software register bank, need to go through EDP APB
  read/write bus and EDP internal read/write bus;
- EDP APB read/write bus is on the EDP pclk clock domain;
- EDP internal read/write bus is on the EDP 24m clock domain;
- Asynchronous logic circuit is added between APB read/write bus and
  Internal read/write bus;

Issue:
There is a bug on the Asynchronous logic circuit between APB read/write
bus and Internal read/write bus; This bug will be random to cause the
following wrong control/address signals sequence happen;
- For write, maybe wrong register address is wrote in;
- For read, maybe wrong register address is read out;

Workaround:
- For CPU write EDP register operation, write any register need
following three steps,
1): Read EDP_BASE+0x00 dummy register firstly, latch the dummy
register address on Reg_Address bus, to avoid next step write to
wrong register to cause function register overrun;
2): 1st time to write the EDP register you want to operate,
to latch the real write address on Reg_Address bus;
3): 2nd time to write the EDP register you want to operate,
to make sure the data is write on the real write address;
- For CPU read EDP register operation, read any register need following
two steps,
1): 1st time to read the EDP register you want to operate, to latch
the real read address on Reg_Address bus;
2): 2nd time to read the EDP register you want to operate, to make
sure the data is read out from the real read address;

Change-Id: I4a87d3883efe94d32ccf8809edb5b9d869670d2d
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 15:02:27 +08:00
Wyon Bi
a6e872aae1 drm/bridge: analogix_dp: set IRQ_NOAUTOEN to the irq flag
The interrupt is requested before the device is powered on and
it's value in some cases cannot be reliable. It happens on some
devices that an interrupt is generated as soon as requested
before having the chance to disable the irq.

Change-Id: I889c069239d005ab0a3fb4eb36123608ec81d9ab
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 14:57:04 +08:00
Wyon Bi
ac306bb254 drm/bridge: analogix_dp: support video BIST generation
The video BIST function of the DP_TX generates arbitrary video formats
internally according to the specified format configuration and selection.
These BIST video formats simplify DP_TX debugging.

Change-Id: Ia019c8f40fdd4ebea3e5250be8e2c15540481a6c
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-05 14:55:19 +08:00
Lee Jones
b6ca87397d UPSTREAM: gpu: drm: bridge: analogix: analogix_dp_reg: Remove unused function 'analogix_dp_write_byte_to_dpcd'
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:571:5: warning: no previous prototype for ‘analogix_dp_write_byte_to_dpcd’ [-Wmissing-prototypes]

Change-Id: I94acd1f0b0f9170258411d5edb439e5b4391b3c5
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Jonas Karlman <jonas@kwiboo.se>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Jason Yan <yanaijie@huawei.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-13-lee.jones@linaro.org
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 2f62f4990d)
2021-07-05 14:40:25 +08:00
Jason Yan
838c8db05f UPSTREAM: drm/bridge: analogix_dp: make analogix_dp_start_aux_transaction() static
This eliminates the following sparse warning:

drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:527:5: warning: symbol
'analogix_dp_start_aux_transaction' was not declared. Should it be
static?

Change-Id: I970dff098b5d652b220f207a5ee9bd28367e7949
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200912033843.143240-1-yanaijie@huawei.com
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 7d3618fdee)
2021-07-05 14:40:07 +08:00
Frank Wang
306637c8e1 usb: gadget: f_uac1: adds support for SS and SSP
This adds UAC1 support of SS and SSP speed.

Change-Id: I896d9e36f05eef9bb3eacfc56ef7d32aa7c89044
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2021-07-05 14:14:49 +08:00
Frank Wang
e360c65d23 usb: gadget: f_uac2: make compatible for windows os
Amend to fix the UAC2 gadget could not be identified on Windows 10 OS.

Change-Id: I992af23ab4ac2740a33621d9c3c47368f5135710
Fixes: 486bd80e78f4 ("UPSTREAM: usb: f_uac2: adds support for SS and SSP")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2021-07-05 14:12:52 +08:00
Pawel Laszczak
c3fa37174e UPSTREAM: usb: f_uac2: adds support for SS and SSP
Patch adds support of SS and SSP speed.

Change-Id: Iea75fa1f76f11dfe61bb4dabfdbc09549ad006ea
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20210310105216.38202-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit f8cb3d556b)
2021-07-05 14:12:52 +08:00
Finley Xiao
1914cd402e soc: rockchip_system_monitor: Replace cpu_up/down() with add/remove_cpu()
Change-Id: I06dc2189ee9199e705af8138b60941bba64d6375
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-05 11:26:25 +08:00
Finley Xiao
fb6a8d62bb cpufreq: dt: Add support to adjust power scale
Change-Id: I2695bdc779dafc69f0b11d157fbc519c88984d57
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-05 11:18:02 +08:00
Finley Xiao
a724f211e7 cpufreq: Add runtime initialised driver for rockchip platforms
The driver reads OTP value from SoC to provide the OPP framework
with required information. This is used to determine the voltage and
frequency value for each OPP of operating-points-v2 table when it is
parsed by the OPP framework.

Change-Id: Iec5a4ff05a4829fdbc3535f94e92759d4238623d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-05 11:03:52 +08:00
Viresh Kumar
c83090bafb UPSTREAM: cpufreq: dt: Don't (ab)use dev_pm_opp_get_opp_table() to create OPP table
Initially, the helper dev_pm_opp_get_opp_table() was supposed to be used
only for the OPP core's internal use (it tries to find an existing OPP
table and if it doesn't find one, then it allocates the OPP table).

Sometime back, the cpufreq-dt driver started using it to make sure all
the relevant resources required by the OPP core are available earlier
during initialization process to properly propagate -EPROBE_DEFER.

It worked but it also abused the API to create an OPP table, which
should be created with the help of other helpers provided by the OPP
core.

The OPP core will be updated in a later commit to limit the scope of
dev_pm_opp_get_opp_table() to only finding an existing OPP table and not
create one. This commit updates the cpufreq-dt driver before that
happens.

Now the cpufreq-dt driver creates the OPP and cpufreq tables for all the
CPUs from driver's init callback itself.

Change-Id: Icd477646eb0eefeb01266e21064824d1b5ed6b46
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 873c9851eb)
2021-07-05 10:24:23 +08:00
Finley Xiao
7f0e1711ed soc: rockchip: opp_select: Export rockchip_nvmem_cell_read_u8/u16()
Change-Id: I1c231afce31da9f42cd92839540d8dcb675778ce
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-03 11:30:16 +08:00
Finley Xiao
01243dd90a soc: rockchip: opp_select: Remove non-essential conditions for getting pvtm
Change-Id: I929046fa5c36f9cbc01e30edaa68f9abdfccdfd6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-03 10:42:42 +08:00
Liang Chen
7628c13e4c soc: rockchip: opp_select: adjust opp-table by pvtm and mbist_vmin
1. support get pvtm from otp.
2. adjust opp-table by mbist_vmit which is get from otp.

Change-Id: Ie3703873880b65b2af03ae474065d541c7f9d605
Signed-off-by: Liang Chen <cl@rock-chips.com>
2021-07-03 10:42:20 +08:00
Wyon Bi
dd03e97b25 drm/panel: simple: Get panel-desc data from DT
Add the ability to parse panel-desc data from the devicetree if it's
not hard-coded data.

Change-Id: I474940282657c9aa03568b9f98916125784d9fcf
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-02 19:55:06 +08:00
Felix Zeng
5ce712564b arm64: dts: rockchip: rk3568: rknpu: Add rknpu cru reset
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ibc546e80e6f82f0e907505a1eec1e9d37231646a
2021-07-02 19:44:07 +08:00
Felix Zeng
aae79df0f6 arm64: dts: rockchip: rk3568: rknpu: Add new rknpu compatible with rk3568 target
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I150aa58dc640cea47d30f89d7fefe500031cd074
2021-07-02 19:44:07 +08:00
Liang Chen
754a02572a arm64: dts: rockchip: rk356x: adjust opp-table for correlation chips
1. limit vmin of cpu/gpu/npu/logic by mbist_vmin.
2. raise vdd_logic when npu run at 1.0GHz or venc run at 400MHz.
3. disable npu@1.0GHz and venc@400MHz by default.
4. reduce vdd_logic for the chips with big leakage.
5. adjust low-temp-adjust-volt table.

Change-Id: If7ce6f010422d20e2dfd643a6894fa7304e6372f
Signed-off-by: Liang Chen <cl@rock-chips.com>
2021-07-02 19:42:24 +08:00
Ding Wei
1d4f962b53 arm64: dts: rockchip: rk3568: rkvenc: remove advanced-rates for safety
Change-Id: Ie1c4a45c084a6bc98359868db54c6a333489cd45
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-07-02 19:42:09 +08:00
Liang Chen
25a9bdac78 arm64: dts: rockchip: rk3568: adjust opp-talbe when low-temp
Change-Id: I21a6394f9c4473ca6d98f46c2d2a9527e2eaabd2
Signed-off-by: Liang Chen <cl@rock-chips.com>
2021-07-02 19:38:44 +08:00
Finley Xiao
9a20200344 nvmem: rockchip-efuse: Fix later provider initialization
Possibly, provider driver initialization is later than
consumer driver. Use function subsys_initcall to initialize
NVMEM provider early to ensure NVMEM consumer doesn't need
to -EPROBE_DEFER.

Change-Id: I817aa44c3b34d2fdf44148e6b9649ceed76d8f1f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-02 19:34:29 +08:00
Finley Xiao
01c1a395d6 nvmem: rockchip-otp: Fix later provider initialization
Possibly, provider driver initialization is later than
consumer driver. Use function subsys_initcall to initialize
NVMEM provider early to ensure NVMEM consumer doesn't need
to -EPROBE_DEFER.

Change-Id: Ibaea188390a54d55eca2aa3585cace7bb8f37bb3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-02 17:25:14 +08:00
Wyon Bi
620cc157a7 clk: rockchip: px30: Add CLK_SET_RATE_PARENT for clk_i2s0_tx_out_pre
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I18e86d31ece992af568fca12c9af2b04f327dd67
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Finley Xiao
969eda0685 clk: rockchip: px30: Add pll name for cpuclk
Change-Id: I4302071cfd29148fb33ba096f5f3bc2aeff1406e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Wyon Bi
45e8903744 clk: rockchip: px30: Add CLK_SET_RATE_PARENT for clk_i2s1_out_pre
Change-Id: Ie01e78ecf49cbbc3101c7ff0fafff11d3428b271
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Sugar Zhang
2b1b3a5b70 clk: rockchip: px30: Export clk id for sclk_i2s0_tx/rx mux
Change-Id: I697d20fb0c69f9dcd76aaf2d18d666db2241360d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Finley Xiao
03fb4f4b0f clk: rockchip: px30: Add support to set parent rate for vopl dclk
Change-Id: I208471f938b1795273c4f33ac35b82d667a2b312
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Finley Xiao
c6edde69b3 clk: rockchip: px30: Let npll only provide clock for vopl and gpu
As npll rate may be changed according to vopl dclk rate on px30.

Change-Id: I4abc042b49ee06436ba5d69dc8adfa9460da37f7
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Finley Xiao
fdd1e215f5 clk: rockchip: px30: Remove npll from gpu parent clock on px30
NPLL should provide clock for vopl dclk on px30, and its rate will be
changed according to vopl dclk rate, so GPU can't use npll as parent
on px30.

Change-Id: Ib2c8c57020405bcd14070dcd7bc71cbfe18230e3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-07-02 17:17:40 +08:00
Simon Xue
f2edd39115 iio: adc: rockchip_saradc: adjust SARADC_MAX_CHANNELS to 8
Change-Id: Ie2f4b8df770255b642257b30ace51f886c3b526b
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-07-02 14:26:10 +08:00
Wyon Bi
fd54e4d301 phy/rockchip: Add driver for Rockchip Naneng eDP Transmitter PHY
DPTPHYT22ULP is designed for chips that perform eDP/DP data
communication while operating at low power consumption.
The main link is a multi-gigabit transmitter macro which
enable speed up to 4.0Gbps data transmitter with optimized
power and die size, also it can be easily fabricated and
implemented in a video system. The AUX channel is a halfduplex,
bidirectional channel consisting of one differential pair,
supporting the bit rate of about 1Mbps.

Macro consists of multi-main link transmitter channels,
AUX channel, one PLL and bias-gen unit. The main link
transmitter performs dedicated P2S, clock generator,
driver with preemphasis and self-test. Each of the channels
can be turned off individually.

Change-Id: Idf58991ff1bdd4557c4cfadf2dc047e95eca7668
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-07-02 14:13:07 +08:00
Tao Huang
346f10249a arm64: rockchip_defconfig: Disable CONFIG_RUNTIME_TESTING_MENU
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ieaa1ed1175b4872e275e7577c91966ffff3d3b0d
2021-07-02 14:12:49 +08:00
Geert Uytterhoeven
e0e8b7d674 UPSTREAM: pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP
The Rockchip GPIO and pin control modules are only present on Rockchip
SoCs.  Hence add a dependency on ARCH_ROCKCHIP, to prevent asking the
user about this driver when configuring a kernel without Rockchip
platform support.

Note that before, the PINCTRL_ROCKCHIP symbol was not visible, and
automatically selected when needed.  By making it tristate and
user-selectable, it became visible for everyone.

Change-Id: Ibaa8fddc0f667711bd6fc82fe1865cf65720c1c3
Fixes: be786ac5a6 ("pinctrl: rockchip: make driver be tristate module")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20210316134059.2377081-1-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit febb4ee23a)
2021-07-02 14:12:29 +08:00