Rockchip platform actually doesn't support prefetchable, make pcie0
and pcie0 consistent with each other.
This also remove the invalid type warning from Firmware when using
kernel DTB.
=> pci e
pci_uclass_pre_probe, bus=0/pcie@2a200000, parent=root_driver
decode_regions: len=28, cells_per_record=7
decode_regions: region 0, pci_addr=20000000, addr=20000000, size=100000, space_code=0
decode_regions: region 0, pci_addr=20100000, addr=20100000, size=100000, space_code=1
- type=1, pos=0
decode_regions: region 1, pci_addr=20200000, addr=20200000, size=e00000, space_code=2
- type=0, pos=1
decode_regions: region 2, pci_addr=900000000, addr=900000000, size=80000000, space_code=3
- type=8, pos=2
pcie@2a200000: PCIe Linking... LTSSM is 0x0
pcie@2a200000: PCIe Linking... LTSSM is 0x0
pcie@2a200000: PCIe Link up, LTSSM is 0x130011
pcie@2a200000: PCIE-0: Link up (Gen2-x1, Bus0)
pcie@2a200000: invalid flags type
Change-Id: I24ed9d105d68d05508697e5db54b3f3909520adc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Use user-defined mcu bypass timing if mcu-bypass-timing
node has been found in dts, otherwise setup the default
timing which can meet the read/write timing requirements
of most mcu panel.
Change-Id: I1225eed1e9dbca5adafd2d674bc9b6c709b2b1dd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The reading function can be used for debugging while trying
to bring up the mcu panel, or reading some specific status
regs during the frame blanking period, and etc.
Change-Id: I29b153a78aa4a0ebb64f3156a37fddc67986bb49
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
For RK3506 and later platforms, it is recommended to sync
mcu bypass timing with dclk rather than hclk on earlier
platforms as IC design. And different platform has its
own recommended mcu bypass timing to meet the needs of
most mcu panels.
Change-Id: I9ce07e63dc7d2a717dbbb31ed13c98b41f25edc8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
If there is no mutex lock between run and active in aidl,
closing the sensor when reporting an event will cause an address exception.
After we added the mutex lock, we found that the reading process
would be blocked probabilistically when waking up from deep sleep,
and activating the sensor at this time would cause a deadlock.
Adding a sync event fixed this issue.
Type: Fix
Redmine ID: 472806
Associated modifications:
https://10.10.10.29/c/android/rk/hardware/rk29/sensor/+/232874
Test: Deep sleep test
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I5275af261be189ef70a30a8b544fcbd0c356ff41
Use hardware link-list instead of soft link-list to make sure
no gap among the scatter-list transfer.
Merge multiple descs [first ... last] into the last desc,
and drop the descs which have been merged into last one.
Now we get the union one rather than a soft SGL.
Obviously, this require much more MCODE buf size, because we
merge multiple descs into a union one. Increase MCODE buf size
if needed.
e.g.
-#define MCODE_BUFF_PER_REQ 256
+#define MCODE_BUFF_PER_REQ 512
or parsed from DT
arm,pl330-mcbufsz-bytes = <512>;
Otherwise, you may see the warning log on the long SGL situation.
dma-pl330 2ab90000.dmac: pl330_submit_req: Try increasing mcbufsz (403/256)
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iea31fc9dba08d36570d4bdbe2c5fcb61f5fed0d4
Used for DSMC which both SRC and DST are increment.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib6deb12458eb9f9b867ecc7739b0428998ed1873
rk_pcie_host_config() takes responsibility to init the registers
needed.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I2a0c995c6b404dbd622fa36c8ebab9dcb83a4146
There is a bug in the old software of quantumdata 980 used
by the hdmi cts. If hdmi responds to plug in too early,
cts hfr1-10 will fail.
Quantumdata 980 software update resolves this bug and
hdmitx does not require additional delay.
Fixes: e7163be259 ("drm/bridge: synopsys: dw-hdmi-qp: Add flt thread for frl cts")
Change-Id: I4b2abbdd4c851a9b510db3e3b8e61e2cebcaf8b4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This patch adds vbus-supply for usb2 otg to support
vbus control in u-boot via kernel dtb.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic1c414bef56e68cea79c0e316824b4d915e8d63e
In order to let combo phy check the mplla_state/mpllb_state.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I22da2ad35a12c1f135dcbb940e235f9cb179c439
Move devm_clk_bulk_get_all into rk_pcie_resource_get()
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I4115faaa1fd84f7c7b521a025c3b9682e920c362
ERROR: modpost: module flexbus_cif uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
ERROR: modpost: module flexbus_cif uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3a512a9b4efc899dc16b61b6cbc867d5cabe70d1
If logo display enabled, the rockchip_tve_encoder_loader_protect()
helps to set the tve enable/disable status and call
pm_runtime_get_sync()/pm_runtime_put(), which allows for
the continuation of the display state from the U-Boot stage.
In addition, fix the check of tve mode setting in .mode_set()
to avoid display flashing, which caused by the off/on switch of dac.
Change-Id: I6f1fcaf05cb6e362ce375e447c566fb5356c5380
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
It doesn't make sense to always enable tve/vdac clks in probing.
The clks dynamic switching can also help to reduce the power
consumption.
Change-Id: Id93b5552d6e984d7a6306508f5ee74b383a0d3c5
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
RK3528/RK3562/RK3576 NV12/NV21/NV15/NV51 format src_h must aligned as 2 line,
otherwise the last line will be error.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2df24bbaa318fb78bb632a6d9d42cbc4ee66656b
rk3506 evb USB flash drive mounting must support one ntfs format
before:
text data bss dec hex filename
4919662 2289888 114376 7323926 6fc116 vmlinux
after:
text data bss dec hex filename
5019134 2302528 114952 7436614 717946 vmlinux
Change-Id: I50fc0313db640e39b2cd46325bf7966357c3198d
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>