If external device sends data continuously, then uart is
always busy, and baud rate can't be set. It is useful
to reset uart and set loop back mode to make sure it is
idle.
Change-Id: I87286711870ff685ea29e36e61c97d45be5a6d08
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
To reduce the uart interrupts, which may cause:
serial8250: too much work for irq xx
Change-Id: I89e0d990677e4cffae431e60521b3e16e8381f05
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
The UART CPR may be 0 of some rockchip soc,
but it supports fifo and AFC, fifo entry is 32 default.
Change-Id: I44f420c556f703c2848c38dc8449546274ef887d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
convert from rockchip_defconfig to rockchip_gki.config by this script:
make gki_defconfig
cp .config gki.config
scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig arch/arm64/configs/rockchip_defconfig
make olddefconfig
scripts/diffconfig -m gki.config .config | sed -e "s/ is not set/=n/" -e "s/# //" > d.config
sed -e "s/ is not set/=n/" -e "s/# CONFIG_/CONFIG_/" -e "/#.*/d" -e "/^$/d" gki.config > g.config
> r.config
for i in $(cat d.config); do
c=${i%%=*};
v=${i##*=};
if grep -q "$c=n" g.config; then
if [ "$v" == "y" -o "$v" == "m" ]; then
echo $c=m >> r.config;
fi
elif ! grep -q "$c=" g.config; then
if [ "$v" == "n" ]; then
echo "# $c is not set" >> r.config;
elif [ "$v" == "y" ]; then
echo $c=m >> r.config;
else
echo $c=$v >> r.config;
fi
fi
done
sed -i 's/CONFIG_ARCH_ROCKCHIP=m/CONFIG_ARCH_ROCKCHIP=y/' r.config
scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig r.config
make olddefconfig 2>&1 | grep invalid | sed "s/.*symbol value 'm' invalid for /CONFIG_/" > nm.config
> r.config
for i in $(cat d.config); do
c=${i%%=*};
v=${i##*=};
if grep -q "$c=n" g.config; then
if ! grep -q "$c$" nm.config; then
if [ "$v" == "y" ]; then
echo $c=m >> r.config;
fi
fi
elif ! grep -q "$c=" g.config; then
if [ "$v" == "n" ]; then
echo "# $c is not set" >> r.config;
elif [ "$v" == "y" ]; then
if grep -q "$c$" nm.config; then
echo $c=y >> r.config;
else
echo $c=m >> r.config;
fi
else
echo $c=$v >> r.config;
fi
fi
done
sed -i 's/CONFIG_ARCH_ROCKCHIP=m/CONFIG_ARCH_ROCKCHIP=y/' r.config
scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig r.config
scripts/config -d CONFIG_BRIDGE_NETFILTER
scripts/config -d CONFIG_BRIDGE_NF_EBTABLES
scripts/config -d CONFIG_USB_MON
scripts/config -e CONFIG_ION
scripts/config -e CONFIG_ION_SYSTEM_HEAP
scripts/config -e CONFIG_SW_SYNC
make olddefconfig
make savedefconfig
scripts/diffconfig -m arch/arm64/configs/gki_defconfig defconfig > arch/arm64/configs/rockchip_gki.config
echo "# CONFIG_USB_DUMMY_HCD is not set" >> arch/arm64/configs/rockchip_gki.config
Test: make gki_defconfig rockchip_gki.config
Status: mounted/console/adb/tp ok
TODO: check configs
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifecf0a0cd836cbb1510704f9d120715ff7b01b35
'struct dwc3_ep at core.h:704:1' changed (indirectly):
type size changed from 1792 to 1856 (in bits)
there are data member changes:
type 'struct usb_ep' of 'dwc3_ep::endpoint' changed:
type size changed from 576 to 640 (in bits)
1 data member insertion:
'u8 transfer_type', at offset 576 (in bits) at gadget.h:246:1
93 impacted interfaces
21 ('list_head cancelled_list' .. 'u64 android_kabi_reserved2') offsets changed (by +64 bits)
2 impacted interfaces
Fixes: bcf7606d61 ("usb: gadget: add transfer_type in struct usb_ep for rockchip")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If7b276a054a18e6f49e59def6a4edf5ce4f3b694
Make sure this bool config do not affected by gki_defconfig.
Fixes: 9ec5db66aa ("clk: add COMMON_CLK_PROCFS to support clk debug")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Idda0c054110c8587a8b1649cf65f045242b680d7
Make sure this bool config do not affected by gki_defconfig.
Fixes: 44f5b21367 ("fiq_debugger: print log by console thread")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ied79a8b68580bacc4ec27cd98d38400e48de58ba
Make sure this bool config do not affected by gki_defconfig.
Fixes: 2943395673 ("rk: kbuild: Introduce CONFIG_DTC_SYMBOLS")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I202378445d901e1bef20161483edc957b23d9fa1
As the frequency can't be changed in isp and dulaview statuses,
the target frequency should be the bigger one, both in isp status
or in dulaview status.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id9182d591f615304f24ccba5816424a876046dc3
Fixes the following warning:
drivers/devfreq/rockchip_dmc.c:2914
rockchip_dmcfreq_register_cooling_device() warn: passing zero to 'PTR_ERR'
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia8b0811d0e27394e420b862305917314189f94be
Add support for rk3568 and init opp-table with rockchip_init_opp_table()
so that rockchip_bus can support pvtm and leakage.
Change-Id: Ief17dba8264906f987d4dac93b2e7344c98bc8fa
Signed-off-by: Liang Chen <cl@rock-chips.com>
This patch adds NoC (Network on Chip) Probe driver which provides
the primitive values to get the performance data. For example, RK3399
has multiple NoC probes to monitor traffic statistics for analyzing
the transaction flow.
Change-Id: I66f6708f0d244488ca08f0f1f1cb36b19c7a2d0a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This adds the necessary data for handling dfi on the rk3328.
Change-Id: Id870f78dad3ddd6cb5771674a4e8905322f9e8ef
Signed-off-by: CanYang He <hcy@rock-chips.com>
after modify, rockchip_dfi_ops can apply to other platform use such
version ddr monitor. regardless of channel count, only one channel
of rk3288,rk3399,rk3328 can work. and regardless of monitor clk,
some platform like rk3328 monitor clk is always on.
Change-Id: Ia1c02a89116546ded385c5a6a3e36d020d66b7f3
Signed-off-by: CanYang He <hcy@rock-chips.com>
This adds the necessary data for handling dfi on the rk3128.
Access the dfi via registers provided by GRF (general register
files) module.
Change-Id: Ife9e9987224088434e878102b7d1c3b132e761ad
Signed-off-by: Liang Chen <cl@rock-chips.com>
This adds the necessary data for handling dfi on the rk3288.
Access the dfi via registers provided by GRF (general register
files) module.
Change-Id: Ic7241af3c20a269ab362055dea04d260e01c50de
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
This adds the necessary data for handling dfi on the rk3368.
Access the dfi via registers provided by GRF (general register
files) module.
Change-Id: I96c2b4dcd34d90731b749ebdbe6922f01559d8e6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>