-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedge-ai.conf
More file actions
107 lines (94 loc) · 3.98 KB
/
edge-ai.conf
File metadata and controls
107 lines (94 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
source "${LDK_DIR}/p3768-0000-p3767-0000-super.conf"
p3767_super_overlay()
{
set -x
if [ "${board_sku}" = "0000" ] || [ "${board_sku}" = "0002" ]; then
if [ "${board_FAB}" = "TS1" ] || [ "${board_FAB}" = "EB1" ]; then
echo "Error: ${board_FAB} can't be used for super mode";
exit 1;
fi
BPFDTB_FILE="tegra234-bpmp-3767-0000-3768-super.dtb";
DTB_FILE="tegra234-p3768-0000+p3767-0000-nv-super.dtb";
elif [ "${board_sku}" = "0001" ]; then
BPFDTB_FILE="tegra234-bpmp-3767-0001-3768-super.dtb";
DTB_FILE="tegra234-p3768-0000+p3767-0001-nv-super.dtb";
elif [ "${board_sku}" = "0003" ]; then
BPFDTB_FILE="tegra234-bpmp-3767-0003-3768-super.dtb";
DTB_FILE="tegra234-p3768-0000+p3767-0003-nv-super.dtb";
elif [ "${board_sku}" = "0004" ]; then
BPFDTB_FILE="tegra234-bpmp-3767-0004-3768-super.dtb";
DTB_FILE="tegra234-p3768-0000+p3767-0004-nv-super.dtb";
elif [ "${board_sku}" = "0005" ]; then
BPFDTB_FILE="tegra234-bpmp-3767-0003-3768-super.dtb";
DTB_FILE="tegra234-p3768-0000+p3767-0005-nv-super.dtb";
else
echo "Error: module SKU ${board_sku} detected";
exit 1;
fi
TBCDTB_FILE="${DTB_FILE}";
}
p3767_super_maxn_overlay()
{
set -x
if [ "${board_sku}" = "0000" ] || [ "${board_sku}" = "0002" ]; then
if [ "${board_FAB}" = "TS1" ] || [ "${board_FAB}" = "EB1" ]; then
echo "Error: ${board_FAB} can't be used for super maxn";
exit 1;
fi
BPFDTB_FILE="tegra234-bpmp-3767-0000-3768-super-maxn.dtb";
elif [ "${board_sku}" = "0001" ]; then
BPFDTB_FILE="tegra234-bpmp-3767-0001-3768-super-maxn.dtb";
else
echo "Error: module SKU ${board_sku} detected";
# exit 1;
fi
}
update_flash_args()
{
update_flash_args_common
p3767_super_overlay
p3767_super_maxn_overlay
}
if [ "${UPHYLANE}" = "c7x1" ]; then
UPHYLANE_CONFIG="tegra234-mb1-bct-uphylane-si-c7x1.dtsi";
EMMC_CFG="flash_t234_qspi_nvme_c7.xml";
elif [ "${UPHYLANE}" = "c7x2" ]; then
UPHYLANE_CONFIG="tegra234-mb1-bct-uphylane-si-c7x2.dtsi";
EMMC_CFG="flash_t234_qspi_nvme_c7.xml";
fi
MB2_BCT="Orin-edge-ai-mb2-bct-misc-p3767-0000.dts";
PINMUX_CONFIG="Orin-edge-ai-rev1v2-pinmux.dtsi";
PMC_CONFIG="Orin-edge-ai-rev1v2-padvoltage-default.dtsi";
EMMC_CFG="flash_t234_qspi.xml";
TBCDTB_FILE="${DTB_FILE}";
OVERLAY_DTB_FILE+=",tegra234-p3768-0000+p3767-0000-dynamic.dtbo";
OVERLAY_DTB_FILE+=",tegra234-dcb-p3767-0000-hdmi.dtbo";
DCE_OVERLAY_DTB_FILE="tegra234-dcb-p3767-0000-hdmi.dtbo";
ODMDATA="gbe-uphy-config-9,hsstp-lane-map-3,hsio-uphy-config-0";