Commit Graph

615581 Commits

Author SHA1 Message Date
MyungJoo Ham
799eb9bfa2 UPSTREAM: PM / devfreq: correct comment typo.
The function name in the comment was incorrect.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
(cherry picked from commit bafeb42bd8)

Change-Id: Ifd1f0c68c49acec5227a1a803824e72fe5227ac5
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Tobias Jakobi
71d498ce3a UPSTREAM: PM / devfreq: Skip status update on uninitialized previous_freq
In case devfreq->previous_freq is still uninitialized in
devfreq_update_status(), i.e. it has value '0', the lookups in
that function fail, eventually leading to some error message:
[    3.041292] devfreq bus_dmc: Couldn't update frequency transition information.

Just skip the statup update in this situation.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit d0563a039c)

Change-Id: Ie5cb810ec30d816a234c9ad6160be120ee755d4d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Axel Lin
c30b838b6e UPSTREAM: PM / devfreq: Add proper locking around list_del()
Use devfreq_list_lock around list_del() to prevent list corruption.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 0f376c9cd8)

Change-Id: Id81fb28b982a5c6e08c163948365e11aff1d86b9
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Paul Gortmaker
265b567fad UPSTREAM: PM / devfreq: make devfreq explicitly non-modular
The Kconfig currently controlling compilation of this code is:

menuconfig PM_DEVFREQ
      bool "Generic Dynamic Voltage and Frequency Scaling (DVFS) support"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

This code wasn't using module_init, so we don't need to be concerned
with altering the initcall level here.

We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.

We don't replace module.h with init.h since the file already has that.
But we do add export.h since this file does export some symbols.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 417dc4bb6b)

Change-Id: Ia691d91eaee8a04700d9c8e5c9340cc85175cd3a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Lukasz Luba
a24e7b7f89 UPSTREAM: PM / devfreq: fix initialization of current frequency in last status
Some systems need current frequency from last_status for calculation
but it is zeroed during initialization. When the device starts there is
no history, but we can assume that the last frequency was the
same as the initial frequency (which is also used in 'previous_freq').
The log shows the result of this misinterpreted value.
[    2.042847] ... Failed to get voltage for frequency 0: -34

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 8d39fc085d)

Change-Id: I81f1addcd483df1d23f2cde0cf671494a37e64f3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
MyungJoo Ham
13212d4532 UPSTREAM: PM / devfreq: remove double put_device
When device_register() returns with error, it has already
done put_device() on the input device pointer.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 67ffdb529b)

Change-Id: Id1398a975f208f1942d4b1b1503e5255379f41cc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Cai Zhiyong
5f1cab9d14 UPSTREAM: PM / devfreq: fix double call put_device
1295  */
1296 void device_unregister(struct device *dev)
1297 {
1298         pr_debug("device: '%s': %s\n", dev_name(dev), __func__);
1299         device_del(dev);
1300         put_device(dev);
1301 }
1302 EXPORT_SYMBOL_GPL(device_unregister);
1303

device_unregister is called put_device, there is no need to call
put_device(&devfreq->dev) again.

Signed-off-by: Cai Zhiyong <caizhiyong@huawei.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit a5e9b937fa)

Change-Id: I5c835132c5df339ccc54d5c979527f2ab4b10b25
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
MyungJoo Ham
633c4ee859 UPSTREAM: PM / devfreq: fix duplicated kfree on devfreq pointer
device_unregister() calls kfree already.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit ac4b281176)

Change-Id: Id86a63c8c85e40b290f6ad72c3c273da835f6b52
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
MyungJoo Ham
5166a7f5e4 UPSTREAM: PM / devfreq: devm_kzalloc to have dev pointer more precisely
devm_kzalloc of devfreq's statistics data structure has been
using its parent device as the dev allocated for.
If a device's devfreq is disabled in run-time,
such allocated memory won't be freed.

Desginating more precisely with the devfreq device
pointer fixes the issue.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 3e1d7fb0d2)

Change-Id: I657d7d43e6b7e82cce1c57267ee81b0ab45c0965
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
MyungJoo Ham
5809cdffe4 UPSTREAM: PM / devfreq: Do not show statistics if it's not ready.
Before this patch for a device without statistics support,

$ cat trans_stat
    From  :   To
          :   time(ms)
Total transitions : 0
$

After this patch applied for such a device,

$ cat trans_stat
Not Supported.
$

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 34bd322070)

Change-Id: Iae8a0e839cdd9b6d2e1c5c1332d85796b928f535
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Chanwoo Choi
33233041f0 UPSTREAM: PM / devfreq: Modify the indentation of trans_stat sysfs for readability
This patch modifies the indentation of 'trans_stat' sysfs to improve readability.
The 1GHz is 1000,000,000. So it needs the least 10 position to show the GHz unit.

- Before apply this patch,
-sh-3.2# cat trans_stat
   From  :   To
         :50000000100000000133000000200000000400000000   time(ms)
*50000000:       0       0       0       0       7   1817635
 100000000:       4       0       0       0       4      1590
 133000000:       1       4       0       0       7       975
 200000000:       2       2       7       0       1      2655
 400000000:       0       2       5      12       0      1860
Total transition : 58

- After apply this patch,
-sh-3.2# cat trans_stat
     From  :   To
           :  50000000 100000000 133000000 200000000 400000000   time(ms)
*  50000000:         0         0         0         0         7     14405
  100000000:         4         0         0         0         3      2015
  133000000:         2         3         0         0         7      1020
  200000000:         1         2         7         0         0      2970
  400000000:         0         2         5        10         0      1575
Total transition : 53

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit d7df1e4647)

Change-Id: I76a9b61a3b46b43584056d8e5e8ae052c00d5361
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Chanwoo Choi
fda144e56b UPSTREAM: PM / devfreq: Set the freq_table of devfreq device
This patch initialize the freq_table array of each devfreq device by using
the devfreq_set_freq_table(). If freq_table is NULL, the devfreq framework
is not able to support the frequency transtion information through sysfs.

The OPP core uses the integer type for the number of opps in the opp list
and uses the 'unsigned long' type for each frequency. So, this patch
modifies the type of some variable as following:
- the type of freq_table : unsigned int -> unsigned long
- the type of max_state  : unsigned int -> int

- Corrected types, format strings, mutex usages by MyungJoo

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 0ec09ac2ce)

Conflicts:
	drivers/staging/imgtec/rogue/pvr_dvfs_device.c

Change-Id: I245439d5aa572e914ee4821bdcdafec7ebcb5599
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-28 14:53:57 +08:00
Zefa Chen
ae682e5eab dt-bindings: Document add gc2385
Change-Id: Ia1fe62499581614f7598d8b4228456fc3a2190f5
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2019-03-28 14:53:01 +08:00
Jianqun Xu
4bc9aff1c8 pinctrl: rockchip: add calculate slew rate for rk1808
Change-Id: Ia78e6ceda688942b655623d80fe4fe9fc1b349cc
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-03-28 14:37:04 +08:00
Zefa Chen
cff832163b media: i2c: add gc2385 driver
Change-Id: Ieba17be61bba84a8d323e39748d72f6b77ace459
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2019-03-28 11:03:25 +08:00
CanYang He
2415954181 arm64: dts: rockchip: rk3399: VDD_CENTER need fix to 0.9V
some frequency not fix VDD_CENTER to 0.9V, although these frequency not
enable, to prevent these frequency being enable, fix all VDD_CENTER to
0.9V

Change-Id: I711bf091962f1ca1508b2611bfcaf26e37e451fd
Signed-off-by: CanYang He <hcy@rock-chips.com>
2019-03-28 09:53:48 +08:00
Wyon Bi
e759e01c08 drm/rockchip: cdn-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).

Change-Id: Ia57f3242c16e2ace0c13076992c2c14eda9e7ca7
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-03-28 08:55:59 +08:00
Wang Panzhenzhuan
73a2a95945 dt-bindings: Document add ov5648
Change-Id: I659b4142da14bd131da6317d994dea9ab9aa8d98
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-03-27 18:29:49 +08:00
Yifeng Zhao
b5f8e9c057 dt-bindings: mtd: add Rockchip NAND controller V9 documentation
This patch adds the related dts binding document for Rockchip NAND
controller v9.

Change-Id: I783cb1cd957907744812ace2179bb861e7ca4e63
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-03-27 16:17:38 +08:00
Yifeng Zhao
b54f3b5537 drivers: mtd: nand: add rockchip nandc v9 driver
The nand controller V9 driver for RK3326 and RKPX30.

Change-Id: Ife2190218c29f4ed33def72c092e1fe510c838d0
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-03-27 16:17:16 +08:00
Yifeng Zhao
3ed2123e27 dt-bindings: mtd: add Rockchip NAND controller V6 documentation
This patch adds the related dts binding document for Rockchip NAND
controller v6.

Change-Id: Ib2b196d723a29f8aad95f56905a954547bc93e91
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-03-27 16:11:34 +08:00
Yifeng Zhao
2e260a2b72 drivers: mtd: nand : add rockchip nandc v6 driver
Change-Id: Id4c0c9aee52e6cd797cc4272b04597ea69b37d61
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-03-27 15:36:22 +08:00
Jianqun Xu
77404a6a28 arm64: dts: rockchip: rk3308b-evb-v10 modify vccio_flash to 3.3v
The power supply for vccio_flash is depends on GPIO0_A4(pin R3 on SoCs),
if GPIO0_A4 input high, vccio_flash = 1.8v
if GPIO0_A4 input low,  vccio_flash = 3.3v

Reference to rk_board_init() in arch/arm/mach-rockchip/rk3308/rk3308.c,
it has configure vccio3 io-domain, so here needn't to do more.

BUT lack of vccio3 will make regulator summary hard to read, it's better
to configure vccio3 = <&vccio_flash> after double check its voltage.

Change-Id: I5c17cba5ac184b84800df654544cc3f8fe8c2480
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-03-27 15:29:19 +08:00
Caesar Wang
a7b735fd70 arm64: dts: rockchip: pulldown BT irq gpio for rk3399pro-evb-v*-linux.dts
This patch fixes the BT interrupt abnormal with bootup.

Change-Id: If4c5a8792d95cad4339e57219fd7a17dc8bc349f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-03-27 15:22:59 +08:00
Caesar Wang
313c342e9a arm64: dts: rockchip: add hdmi-sound for rk3399pro evb board
This patch support the audio on hdmi display.

Tested on rk3399pro evb v11 board with debian9, as below:
...
[    1.822827] asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok
[    1.873012]   #0: rockchip,hdmi

root@linaro-alip:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchiphdmi [rockchip,hdmi], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: rockchiprk809co [rockchip,rk809-codec], device 0: ff890000.i2s-rk817-hifi rk817-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@linaro-alip:~# aplay -D plughw:0,0 /dev/urandom

The sound is fine on display.

Change-Id: I1a04d44922707e8dba150f2d6b814b19eaea1149
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-03-27 15:22:59 +08:00
Hu Kejun
26a22d5730 media: spi: rk1608: change some message id
To match trunk code of preisp, change some message id.

Change-Id: I08dfc21cc65edefc296901633f3366a5f5241a92
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-27 15:06:30 +08:00
Hu Kejun
fbdc9e72ee media: spi: rk1608: add enum_frame_size function
Change-Id: Ia27c7f36609d686f724a4d004c54d3c3a4278bac
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-27 15:06:30 +08:00
David Wu
73cf9b5fe8 arm64: dts: rockchip: Add spi5 power-domain for rk3399
Change-Id: Id67c805457f4930cea20d8c507700fc21d04d6b0
Signed-off-by: David Wu <david.wu@rock-chips.com>
2019-03-27 11:20:54 +08:00
Nickey Yang
a8b799e15b ARM: dts: rockchip: enable rockchip_suspend for rk3288-linux
Change-Id: I8904510cae68283ba37a1f374c55883f454142d6
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2019-03-27 08:53:09 +08:00
Nickey Yang
fcea069cd4 ARM: rockchip_linux_defconfig: enable ROCKCHIP_SUSPEND_MODE
Change-Id: I4051fc0282b4febbb5b0537e0e34826ace8cf9d8
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2019-03-27 08:52:34 +08:00
Shixiang Zheng
bb9a509def video/rockchip: rga2 add YUV packet format support
Change-Id: I4f096bd1b1edfc90094124ddde25a95862730676
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2019-03-26 19:33:08 +08:00
Zefa Chen
9a090b04da dt-bindings: Document add imx258
Change-Id: I486552192ef43213a673db495b9da2f7e444b16c
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2019-03-26 19:29:54 +08:00
Hu Kejun
84e3920065 media: rockchip: isp1: fix reset on too high isp_clk rate will result in bus dead
Change-Id: I4e99c011a599901dbc1aaba147dcc77df9692fd1
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-26 19:05:59 +08:00
Ziyuan Xu
3091608226 arm64: dts: rockchip: fixup vccio3-supply for ai-va-v10
Power **vccio3** was fixed to VCC_IO that is always supply 3.3v, and
it's used as functions pins for sfc/nandc.

Change-Id: I0f5a60ab944a773c1dd254adf1dbc6af16b35403
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-26 16:32:16 +08:00
Ziyuan Xu
8e4a05cc07 arm64: dts: rockchip: fixup vccio3-supply for evb-v11
Power **vccio3** was fixed to VCC_IO that is always supply 3.3v, and
it's used as functions pins for sfc/nandc.

Change-Id: I928770f34ea30fe5bc6569219385d3dbf59c3db1
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-26 16:32:02 +08:00
Hu Kejun
13652aa11a ARM64: dts: rockchip: new rk3326-evb-lp3-v10-rk1608-linux
Change-Id: I9509d19ce06026252e216a7b839684b1ea16d975
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-03-26 11:44:14 +08:00
Wenlong Zhuang
e95c343dd1 media: spi: add misc device for rk1608
Change-Id: I2aaf703792b0a37aae03fb4fbe875dddfc06cbd6
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-03-26 11:42:55 +08:00
Liang Chen
194cc5db8c arm64: dts: rockchip: fix include search path for rk3326-863-cif-sensor.dtsi
This is because of the commit form upstream: commit 5ffa2aed38
("of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP")

Change-Id: I87d332caf5b3aaf3848b709c276ddb00db1327e0
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-26 10:49:00 +08:00
Shawn Lin
c976543254 BACKPORT: UPSTREAM: mmc: sd: Fix signal voltage when there is no power cycle
Some boards have SD card connectors where the power rail cannot be switched
off by the driver. However there are various circumstances when a card
might be re-initialized, such as after system resume, warm re-boot, or
error handling. However, a UHS card will continue to use 1.8V signaling
unless it is power cycled.

If the card has not been power cycled, it may still be using 1.8V
signaling. According to the SD spec., the Bus Speed Mode (function group 1)
bits 2 to 4 are zero if the card is initialized at 3.3V signal level. Thus
they can be used to determine if the card has already switched to 1.8V
signaling. Detect that situation and try to initialize a UHS-I (1.8V)
transfer mode.

Tested with the following cards:
  Transcend 4GB High Speed
  Kingston 64GB SDR104
  Lexar by Micron HIGH-PERFORMANCE 300x 16GB DDR50
  SanDisk Ultra 8GB DDR50
  Transcend Ultimate 600x 16GB SDR104
  Transcend Premium 300x 64GB SDR104
  Lexar by Micron Professional 1000x 32GB UHS-II SDR104
  SanDisk Extreme Pro 16GB SDR104

Change-Id: Iab33b1020f857ff754f3d00494ecee44c96e02b6
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Zhoujie Wu <zjwu@marvell.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from 6a11fc47f1)
2019-03-26 10:35:15 +08:00
Zefa Chen
44ab3ae0f6 media: i2c: add imx258 driver
Change-Id: I97a6744c8009a2af56dad5c69cb162450101eaa8
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2019-03-26 09:58:19 +08:00
Shixiang Zheng
f881c99144 arm64: dst: rockchip: rk3308: change default lcdc pin output to 4ma
Change-Id: If7c2b693c45b7b6f3b78284db309f440a4301468
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2019-03-25 17:53:39 +08:00
Wang Panzhenzhuan
13c179992d media: i2c: ov5648 match vts and fps strictly
fix cts  CaptureRequestTest#testEdgeModeControl failed
failed log:
Frame duration must be in the range of [33333333, 33333333],
value 33903000 is out of range [32833332, 33833332])

Change-Id: I054e3546736edcdba041c4a37cb9975ed3fa0870
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-03-25 15:03:15 +08:00
Hu Kejun
cdf7fa3eac media: rk-isp10: fix ISP can not get tx1rx1 mipi data in rk3288
Change-Id: Ia509734a0aff0941d3a8dedb44e9ed2eb78eea4f
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-25 08:26:26 +08:00
Shawn Lin
6c49045c29 PCI: rockchip: limit PCIe accessors within 1MB cfg space
PCIe spec requires max cfg space size is 4KB, and the hierarchy
of PCIe tree only support up to 256 devices. So the reserved
cfg space for RC is 1MB per spec.

If any callers access the cfg space out of range, the spec asks
PCIe RC kick back 0xffffffff. However, Rockchip RC will crash
if this happens. So the software should manually check the ECAM
size in PCIe accessors to workaround it.

Change-Id: If4d40add229f9c315eab6d99b290766695208daf
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2019-03-22 17:31:40 +08:00
Shawn Lin
a4ccde21f5 mmc: core: Add mmc_sd_shutdown support for SD as main disk
The ROM code for Rockchip platform never support detecting
SD 3.0 mode, so if the SD card contains system image running
into SD 3.0 mode in kernel, it will fails to reboot.

The problem is SD 3.0 mode is using 1.8V signal and could only
be switched back into 2.0 mode by power cycle. If the customed
board could not switch off its power rail, the ROM code can't
soft reset the SD.

Add mmc_sd_shutdown to workaround this special case and don't
bother normal SD cards used as external disk by checking the
RESTRICT_CARD_TYPE_MMC flag.

Change-Id: I4c3d3111c0bce0ad3cd4f0c6592ff595d7015afe
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2019-03-22 17:26:59 +08:00
Ziyuan Xu
e6ce68b4ee arm64: dts: rockchip: replace cpuinfo device node to rk3399.dtsi
Change-Id: I5776fb36be90bd67b2f2efee17d06f037b7a1665
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-22 11:49:44 +08:00
Ziyuan Xu
d50c0fdafe arm64: rk3326_linux_defconfig: enable pstore feature
Change-Id: I37af5cbdf442280111ab87b4d513450c77d5b350
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-22 09:33:34 +08:00
Ziyuan Xu
06a5e12598 arm64: dts: rockchip: support ramoops device node for rk3326-linux
Change-Id: Idc7f0696cd6ce12b4ad9ff1547b60acc32a4a006
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-22 09:32:48 +08:00
Ziyuan Xu
ee597d107d drivers: rkflash: sfc: use dev_pm_ops instead of legacy callback
Change-Id: Ic9694d9ca0cb94f8b6fab3115f64dfc83dde2ee8
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-21 18:41:01 +08:00
Ziyuan Xu
fa43242189 drivers: rkflash: nandc: use dev_pm_ops instead of legacy callback
If the device has a 'power-domains' property that the power framework
prefer to use dev_pm_ops for suspend&resume. The legacy suspend & resume
callback for nandc driver would not be used.

Anyway, it's better use dev_pm_ops whether 'power-domains' is existent.

Change-Id: I0e2822a44f3f0d458b778636cd84c5ae54505cf5
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-21 18:41:01 +08:00