From 80d21b102fa09a8e09dbca1e6131da5f20939da3 Mon Sep 17 00:00:00 2001 From: Jon Lin Date: Mon, 20 May 2024 09:11:19 +0800 Subject: [PATCH] tool: pcie_idb_config: Support Gen3x1 Change-Id: I72970b3bcb5abec358fe7124e5939e7524640de0 Signed-off-by: Jon Lin --- tools/pcie_idb_config.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/pcie_idb_config.sh b/tools/pcie_idb_config.sh index adad7670..d7f62985 100755 --- a/tools/pcie_idb_config.sh +++ b/tools/pcie_idb_config.sh @@ -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