Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3417BC433EF for ; Sat, 13 Nov 2021 02:24:51 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C40160E75 for ; Sat, 13 Nov 2021 02:24:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7C40160E75 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F91E830BB; Sat, 13 Nov 2021 03:24:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636770289; bh=/HkcU0zKemGA7x1wVidEFdRagDiLiPYq3gMV9pOruTM=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=g/EhLwd54dElxqxFa1qxMXTxajGOc8w9t3b1YzhNpKp/uey5dRVQMUY0PO49/j06d B7xcDqmxszffV3BnJf0JEIgDLvsPplPcukUlIfEQVAF6dVJLJnuY2XH1HMo55CWTFc EkdRVKjI5xZYlpmYxQLdotYYL3yeFcaDgXM7dAoYJIBMmDybs4D3jtPb0JDihK3vmU KAISllGy2QntPL04xV+mJaxmJBrydvGMug8qbn+oAjb61JOdO6SKhFuSbcVaIeB+GB jO9Ywfhg6xpDXS7ZzXdPEwlSu3UdgwwBNegJ3U18noCGtt7xR/WGhpEXbQ/Jc5B/PC kEyAEA1TAFG0g== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 931A3830B5; Sat, 13 Nov 2021 03:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636770286; bh=/HkcU0zKemGA7x1wVidEFdRagDiLiPYq3gMV9pOruTM=; h=From:To:Cc:Subject:Date:From; b=opuWC66sWEmptXp/v5TI/KG+PI+a/W/7HcwZMZEPW0cQnr4nphnGIfMeV5dWpxbz0 QvPS8K3qdm0APvoUEujZ/LPIqwTead02tr6BkknS1wL5xPbJdEfhX2xcUyY6gXItYK EzuN3E2FzzA3QdtSs0pWwD53+b+1JA1wmyC5ih/Ztkc0TYH5ZF1H2GfXaDs/RUfzmF Ws2OtglZiCxtoFi80vHdcl6dBr7XkYjFDNVHs7Y7qSxg/e5cjT0vqpdPH9obhUmPY0 k5qhcb69fsObtEYKTxkZW4F9etYIs0UbiaoKDK32Y0tGgtNBboiFeATMpJaMvPGJCF RxizL/wrMCuUA== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Patrice Chotard , Patrick Delaunay Subject: [PATCH] ARM: stm32: Increase USB power-good delay on DHSOM Date: Sat, 13 Nov 2021 03:24:44 +0100 Message-Id: <20211113022444.231801-1-marex@denx.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The USB hub on STM32MP1 DHCOM boards needs to wait a bit longer until the USB Vbus is stable. Increase the USB power-good delay to 1 s. This adds default-undefined STM32MP_BOARD_EXTRA_ENV variable into stm32mp15_common.h to reduce duplication in board-specific config files adding custom environment. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- include/configs/stm32mp15_common.h | 3 ++- include/configs/stm32mp15_dh_dhsom.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/stm32mp15_common.h b/include/configs/stm32mp15_common.h index 4e2cabff2e7..be22d3ea7f1 100644 --- a/include/configs/stm32mp15_common.h +++ b/include/configs/stm32mp15_common.h @@ -169,7 +169,8 @@ STM32MP_BOOTCMD \ STM32MP_PARTS_DEFAULT \ BOOTENV \ - STM32MP_EXTRA + STM32MP_EXTRA \ + STM32MP_BOARD_EXTRA_ENV #endif /* ifndef CONFIG_SPL_BUILD */ #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/ diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h index c559cd72da7..bac9e8388a7 100644 --- a/include/configs/stm32mp15_dh_dhsom.h +++ b/include/configs/stm32mp15_dh_dhsom.h @@ -8,6 +8,9 @@ #ifndef __CONFIG_STM32MP15_DH_DHSOM_H__ #define __CONFIG_STM32MP15_DH_DHSOM_H__ +#define STM32MP_BOARD_EXTRA_ENV \ + "usb_pgood_delay=1000\0" + #include #define CONFIG_SPL_TARGET "u-boot.itb" -- 2.33.0