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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A1CC2F53D7E for ; Mon, 16 Mar 2026 18:10:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DECEB84137; Mon, 16 Mar 2026 19:10:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=psihoexpert.ro Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=psihoexpert.ro header.i=@psihoexpert.ro header.b="BPjYdoxG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 18AC384178; Mon, 16 Mar 2026 19:10:51 +0100 (CET) Received: from mx1.wiredblade.com (mx1.wiredblade.com [72.51.58.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C008C83FF9 for ; Mon, 16 Mar 2026 19:10:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=psihoexpert.ro Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m95d+git@psihoexpert.ro dkim-signature: v=1; a=rsa-sha256; d=psihoexpert.ro; s=dynu; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding:In-Reply-To:References; bh=fTk/Cs/4PffL8yvbhes/PD+oHnJyyW6g4jvsScwK42c=; b=BPjYdoxGcFRBtgpUd/tcCViLb5/hWXWFnXhpVhhOCxzWglHQ9cWxs+WRdCL6xVxucz/lWs2lq+DwCqAOzKkEnw0VNBr0pUPl2VlY+tsJ/PzX0yVs1xGEc2Io4rbQssHlFvPb+wcY03UXeV36ADTkjmKEURb3tbg4K1ExVjm3mIdLuuNMs3NgbHioABLZdZcPgId/XaMEt5yU9fxtxBCPQssgfVbCwwZx/NBIoA3TTxH4whhAe4k3PlKO40 i+XzsXmPolhHTY9Lp3gHrwZsiiZj78sbyPo48WcNJsYcDtloMc9SMmCvoVxpqVg70FqMBbbCaB1Peq65DkdLUbnRBPtg== Received: from TkB (188-24-192-137.rdsnet.ro [188.24.192.137]) by mx1.wiredblade.com with ESMTPSA (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256) ; Mon, 16 Mar 2026 18:10:39 +0000 From: Marius Dinu To: u-boot@lists.denx.de Cc: Quentin Schulz , Marius Dinu Subject: [PATCH v2] usb: dwc2_udc_otg_phy: fix compilation on non-Exynos patforms Date: Mon, 16 Mar 2026 20:15:51 +0200 Message-ID: <20260316181551.2109-1-m95d+git@psihoexpert.ro> X-Mailer: git-send-email 2.52.0 In-Reply-To: <55f2f0aa-669f-4825-9673-419504e89780@cherry.de> References: <55f2f0aa-669f-4825-9673-419504e89780@cherry.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean s5p_cpu_id used in drivers/usb/gadget/dwc2_udc_otg_phy.c is undefined on platforms other than Exynos. Signed-off-by: Marius Dinu --- drivers/usb/gadget/dwc2_udc_otg_phy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c index e0ac5d142b0..c56ff1125bd 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_phy.c +++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c @@ -56,10 +56,12 @@ void otg_phy_init(struct dwc2_udc *dev) else /* C110 GONI */ clrbits_le32(&phy->phypwr, OTG_DISABLE_0 | ANALOG_PWRDOWN | FORCE_SUSPEND_0); +#if defined(CONFIG_ARCH_EXYNOS) || defined(CONFIG_ARCH_S5PC1XX) if (s5p_cpu_id == 0x4412) clrsetbits_le32(&phy->phyclk, EXYNOS4X12_ID_PULLUP0 | EXYNOS4X12_COMMON_ON_N0, EXYNOS4X12_CLK_SEL_24MHZ); /* PLL 24Mhz */ else +#endif clrsetbits_le32(&phy->phyclk, ID_PULLUP0 | COMMON_ON_N0, CLK_SEL_24MHZ); /* PLL 24Mhz */ -- 2.52.0