# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * 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. # * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. # p3737-0000+p3701-0000.conf: configuration for "P3701 + P3737" # (T234 P3710). source "${LDK_DIR}/p3701.conf.common"; # update_flash_args: # Process emc_opt_disable fuse and select right params. update_flash_args() { local emcfuse_bin="${1}"; local emcpredefvalue="${2}" if [ ${EMC_OPT_DISABLE_FUSE_OVERRIDE} -eq 0 ]; then return; fi # EMCFUSE_VALUE can be passed by user emc_opt_disable_fuse="${DEFAULT_EMC_FUSE}"; if [ -n "${emcpredefvalue}" ]; then emc_opt_disable_fuse="${emcpredefvalue}"; elif [ -f "${emcfuse_bin}" ]; then emc_opt_disable_fuse=`xxd -ps "${emcfuse_bin}" | xxd -p -r | grep "OptEmcDisable" | awk '{print $2}' | sed 's/.*\(.\)/\1/'`; fi # OptEmcDisable = 0x0 if [ "${emc_opt_disable_fuse}" = "0" ]; then EMMC_BCT="tegra234-p3701-0000-p3737-0000-TE990M-sdram.dts"; BPFDTB_FILE="tegra234-bpmp-3701-0000-3737-0000.dtb"; WB0SDRAM_BCT="tegra234-p3701-0000-p3737-0000-TE990M-wb0sdram.dts"; # OptEmcDisable = 0xc elif [ "${emc_opt_disable_fuse}" = "c" ]; then EMMC_BCT="tegra234-p3701-0000-p3737-0000-TE970M-sdram.dts"; BPFDTB_FILE="tegra234-f2-bpmp-3701-0000-3737-0000.dtb"; WB0SDRAM_BCT="tegra234-p3701-0000-p3737-0000-TE970M-wb0sdram.dts"; # OptEmcDisable other than above not supported, default OptEmcDisable=0 else EMMC_BCT="tegra234-p3701-0000-p3737-0000-TE990M-sdram.dts"; BPFDTB_FILE="tegra234-bpmp-3701-0000-3737-0000.dtb"; WB0SDRAM_BCT="tegra234-p3701-0000-p3737-0000-TE990M-wb0sdram.dts"; fi if [ "${chip_SKU}" = "00" -o "${chip_SKU}" = "D0" ] && [ "${board_FAB}" = "TS1" -o "${board_FAB}" = "TS2" -o "${board_FAB}" = "TS3" -o "${board_FAB}" = "EB1" -o "${board_FAB}" = "EB2" -o "${board_FAB}" = "EB3" -o "${board_FAB}" = "000" -o "${board_FAB}" = "100" -o "${board_FAB}" = "200" ]; then PINMUX_CONFIG="tegra234-mb1-bct-pinmux-p3701-0000.dtsi"; PMC_CONFIG="tegra234-mb1-bct-padvoltage-p3701-0000.dtsi"; fi } DEFAULT_EMC_FUSE=0 BPFDTB_FILE=tegra234-bpmp-3701-0000-3737-0000.dtb; DTB_FILE=tegra234-p3701-0000-p3737-0000.dtb; TBCDTB_FILE=tegra234-p3701-0000-p3737-0000.dtb; EMMC_CFG=flash_t234_qspi_sdmmc.xml; WB0SDRAM_BCT="tegra234-p3701-0000-p3737-0000-TE990M-wb0sdram.dts"; OVERLAY_DTB_FILE="${OVERLAY_DTB_FILE},tegra234-p3737-camera-dual-imx274-overlay.dtbo,tegra234-p3737-camera-e3331-overlay.dtbo,tegra234-p3737-camera-e3333-overlay.dtbo,tegra234-p3737-camera-imx185-overlay.dtbo,tegra234-p3737-camera-imx390-overlay.dtbo";