The rv1106-evb.config is generated by the following command:
make ARCH=arm rv1106_defconfig
cp .config tmp.config
make ARCH=arm rv1106_defconfig rv1106-evb.config
make ARCH=arm menuconfig
./scripts/diffconfig -m tmp.config .config > arch/arm/configs/rv1106-evb.config
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I707ac7ad593425184169b426c2956c225b2711b6
Configs of sensor should be move to specify board config.
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I2bd41677c9d2661f3b16db3f2cad1f5fc8c36e5f
With a patch to unselect DMA_CMA, the 'reserved-memory' node will not
effect and shows a log at booting up:
[ 0.000000] memblock_reserve: [0x07800000-0x07ffffff] fdt_init_reserved_mem+0x1d1/0x298
[ 0.000000] OF: reserved mem: node linux,cma compatible matching fail
[ 0.000000] memblock_free: [0x07800000-0x07ffffff] fdt_init_reserved_mem+0x203/0x298
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I783a3c9f1fc7d26d5f5db1f297f17caab5627a57
Unselect the DMA_CMA to off the linux default cma area, also remove the
CMA_SIZE_BYTES since it depends on the DMA_CMA.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ic5f1aa4f8143ab3ca49b356a6e018670a1912cbf
Define dma_contiguous_early_fixup weakly since the function may not be
defined by architecture.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id29e0515d24a9801aade00f4d257c80eb4238f6f
The "rk_dma_heap_cma" is a early param to setup a cma crea. Separate it
from the dma heap driver makes driver reasonable more.
This patch only do codingstyle without any fix to driver.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I885082f44fc8aff2d07f403fca0cfe70b16abcbd
Disable PTYS causes "adb shell" fail.
This is a partial revert of commit
e6567a9d42 ("ARM: configs: rv1106: disable PTY and 8250_CONSOLE").
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie969c44277b3ab7c6888f345064f4059d795dc75
When do active cma area, the reserved blocks from cma area will be
insert into system memory, and the pages will be allocated first even
then the system freelist is not empty.
After system borrows pages from cma, the cma will do isolate/migrate
them when the cma alloc happens, that spends much time and sometimes the
pages are pinned result a page busy failure.
This patch adds a CONFIG_CMA_INACTIVE to give a option, allows the cma
area not active and then system can not borrows pages from cma.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Iaaece4abda1ed0250e603e9255a59ebfa5c3a65f
soft reset works on SCLK, which come from external device
when controller work as slave mode.
When SCLK disabled before reset done, the controller stalled
and can not recovery.
Instead, we do global reset for this issue.
Change-Id: If801aa03a01d42386f7cfa6145cd6d0af7a3b041
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The rk_dma_heap_bufferfd_alloc has expand argument 'const char *name'
which is used for debug to oversee all dmabuf.
The dma_buf_set_name is provided and exported by dma-buf, also support
via ioctl of dma-buf. This patch set the name to dmabuf if support for
the CONFIG_DMABUF_RK_HEAPS_DEBUG.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I834a1f2009d5a1c6a6835ea78b3dd1aeec43e31f
Enable the 'cache_sgt_mapping' for rk_cma_heap_buf_ops, to cache the
first mapping made for each attachment. This avoids create mappings for
attachments multiple times.
By the way, cache the sgt can support debugfs to get the buffer
information from scatterlists.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id822e3088af9eab5d88d0172c31191d2fc9d4151
The rk_cma_heap and rk_cma_heap_buffer are only used by rk cma heap
driver, move them into driver.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I98867254dff5d4092008aa70244bbf9e10c394ac
There are three head files named "rk-dma-heap.h", one is the uapi, and
the other two both for drivers.
<drivers/dma-buf/rk_heaps/rk_dma_heap.h> is designed for rk-dma-heap.c
which is located the same directory, always include it by a relative
path - "rk-dma-heap.h".
<include/linux/rk_dma_heap.h> is designed for other kernel module to use
the apis from rk-dma-heap, it only declears the functions which may used
by other modules. And importantly, this file declear "struct rk_dma_heap".
Before this patch, the xx-heap.c under "rk_heaps" directory should keep
mind to include the <linux/rk_dma_heap.h> first to declear rk_dma_heap
struct, then to include the "rk_dma_heap.h" to define other things, such
as debug, structures and declear functions.
This patch makes the <drivers/dma-buf/rk_heaps/rk_dma_heap.h> to include
the <include/linux/rk_dma_heap.h>, after that, the heap drivers only
need to include "rk_dma_heap.h", and the other modules only need to keep
to include <linux/rk_dma_heap.h>.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I9e9aabb3247e02439249872c2483d716a4af07c8
Only rename rk_dma_heap_attachment to rk_cma_heap_attachment, this patch
do nothing fix to driver.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ief67ed2a8c849398c41d82f9a1fdeac697d68b4a
This patch moves the reset property of usb dwc3_0 and dwc3_1
to the dwc3 core node, then it can reset the dwc3 controller
in runtime PM and sleep PM, rather than only reset in sleep
PM. This can help to fix typec phy power on fail with the
following log when do hotplug test with Type-C dongle.
phy phy-ff7c0000.phy.9: phy poweron failed --> -110
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I27c90147591f83e8cacb8147ed49c1c6c9646a46
Default set CONFIG_DMABUF_HEAPS_ROCKCHIP_CMA_ALIGNMENT to '8' to keep
nothing fix with this patch for heap.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ie1d41b001e2414766989de576f96f21069a7508e
This adds the necessary data for handling pvtm on the RV1106.
Change-Id: I72c1cb38141cf246738d3a592cb7c8a9f4192815
Signed-off-by: Liang Chen <cl@rock-chips.com>
1. Fixup fix_width will only be less than 128(0x3f).
2. Add support RGBA2BPP.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8af80a6ca6e26a0b1e2f023427108739fdf27dfa
Support to modify and cache the parameters passed by mpi.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: If6b3b10336280d7d2e6a0195eb38e8f5bad2b024
Camera should declare vicap_clkout/mipi_refclk_out independently,
ensure that the initialized successfully without cif/mipi.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I1dce667774d0aec0ec1ee9361c124d0fead95eb9
This patch make driver able to set the queue depth and keep the default
vaule to be '64'.
Change-Id: I54cd065d6536c170d1615a6f9d7071d479bfeb84
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Add mutex to prevent multi-threaded concurrency from competing.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ia9a0dad65b47168c4588cf64eaa93e0d2566e17e