tool: pcie_idb_config: Support Gen3x1

Change-Id: I72970b3bcb5abec358fe7124e5939e7524640de0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2024-05-20 09:11:19 +08:00
parent 22132fc070
commit 80d21b102f

View File

@@ -64,8 +64,8 @@ if [[ $soc == RK3588 ]]; then
exit
fi
if [[ $lanes != 4 && $lanes != 2 ]]; then
echo "input param lanes=$lanes invalid, support 4/2"
if [[ $lanes != 4 && $lanes != 2 && $lanes != 1 ]]; then
echo "input param lanes=$lanes invalid, support 4/2/1"
usage
exit
fi
@@ -105,11 +105,20 @@ else
fi
if [[ $lanes == 4 ]]; then
code1=43
if [[ $soc == RK3588 ]]; then
code0=04
fi
elif [[ $lanes == 2 ]]; then
code1=23
if [[ $soc == RK3588 ]]; then
code0=01
fi
elif [[ $lanes == 1 ]]; then
code1=13
if [[ $soc == RK3588 ]]; then
code0=03
fi
fi
if [[ $baundary == 1500000 ]]; then