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 9A7ECC433EF for ; Sat, 18 Dec 2021 14:36:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C5C58304C; Sat, 18 Dec 2021 15:36:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="JZEbNI4d"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="JZEbNI4d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EE4D8304C; Sat, 18 Dec 2021 15:36:33 +0100 (CET) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (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 001B383046 for ; Sat, 18 Dec 2021 15:36:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id AAB754E200E; Sat, 18 Dec 2021 14:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1639838187; bh=fxxB+uHrFWq30pg+MW2azh0x0WeMcfIWQo5j4nAo41E=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=JZEbNI4dtZf2GJ5otk0u9PhFixkbedngCD0rWy/jSwppgNos5LM59GNOiEw8t8mXX bLKpa9qjb9iCnjzTtycXMqrqw2j/ztjnr4sLK34owYNjUxZSKINRfnn50d8cVmHZfS e5bHRCxQKsxMtTUQX2izTk23m/5M0Htv+gDx00Bs= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B2Qok4n43z6l; Sat, 18 Dec 2021 14:36:27 +0000 (UTC) Received: from www.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) by node.akkea.ca (Postfix) with ESMTPSA id 4EC594E200C; Sat, 18 Dec 2021 14:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1639838187; bh=fxxB+uHrFWq30pg+MW2azh0x0WeMcfIWQo5j4nAo41E=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=JZEbNI4dtZf2GJ5otk0u9PhFixkbedngCD0rWy/jSwppgNos5LM59GNOiEw8t8mXX bLKpa9qjb9iCnjzTtycXMqrqw2j/ztjnr4sLK34owYNjUxZSKINRfnn50d8cVmHZfS e5bHRCxQKsxMtTUQX2izTk23m/5M0Htv+gDx00Bs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 18 Dec 2021 06:36:27 -0800 From: Angus Ainslie To: Fabio Estevam Cc: Adam Ford , U-Boot-Denx , "NXP i.MX U-Boot Team" , Stefano Babic , Peng Fan , Marek Vasut , Ye Li , Alice Guo , Patrick Wildt , Simon Glass , Frieder Schrempf , =?UTF-8?Q?Marek_Beh=C3=BAn?= , "Ying-Chun Liu (PaulLiu)" , kernel@puri.sm Subject: Re: [PATCH 2/3] arch: imx8m: imx-regs.h add the USB regs In-Reply-To: References: <20211217152040.324803-1-angus@akkea.ca> <20211217152040.324803-3-angus@akkea.ca> Message-ID: <5728700eb3e8a2b3659219414b055bef@akkea.ca> X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.3.6 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 On 2021-12-17 09:45, Fabio Estevam wrote: > On Fri, Dec 17, 2021 at 2:03 PM Adam Ford wrote: > >> I didn't think Driver model was a requirement for SPL. > > That's my understanding as well. > >> > I had problems getting the dwc3 to initialize properly when using the >> > device model in the SPL. I'm currently just using this in the SPL and >> > the device model in u-boot. >> > >> > I'll take another shot at initializing the dwc3 in the SPL with the DM. >> >> Could we compromise by putting the #define statements in an ifdef to >> only enable them when SPL is being built? > > This looks like a a good idea. Thanks Fabian and Adam, I'll rework with the CONFIG_SPL_BUILD guards in place. Angus