From patchwork Fri May 20 08:26:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1973 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2BE933F039 for ; Fri, 20 May 2022 10:26:33 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id bc17-20020a056402205100b0042aa0e072d3sf5209744edb.17 for ; Fri, 20 May 2022 01:26:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653035193; cv=pass; d=google.com; s=arc-20160816; b=RcxYiaDCw55ijdtTwli2p+BsSJO/Ci/6ueUE5DWBgRQqxMvsCCALu0UZEmYFwhcrzc /4h2/RBOUBu6kbIN7x+nzcOHNr6ETGuJdw+z9lirMdL7KIA3u/GQYSr2PpqCQeVxrefh j4gy7oxSvW6hVj1kKX2xkv1CHTn2tD1h30g5AljTd4vI7nc+/Ym9gKu55SP9BqgCx6FT sW0pSUOVFaiqxzcXBhKpxqS0F0fqTtqL4eMBaHk4ENqiy1VAkSDQGrpxtSi6WY8397N2 q3Opj+xDt3p9HLdoQtuQYer/sYYg88QLQpc+6zJdZb3TN3o2XALztnwW5DtCwaZDJkfB 04yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=my0dhoGXTUKBrCrGOy8DvhVtVzSaJAyI21o2Dj3Ynto=; b=lAPqnScutyJ0qp2ulujQt2pYL/MT1lz88qzkaPxR8SH7464hcv0dCMSngnK1Nbwogt 37pCNpxCRZ+qMRPPLQWkmf/YRpsNfZCOVn/Aw4zZJ8MMogtXbZx8okK3uhXKZL6Q3i9k YIjcoV2Sw9ijtg2RULUZxSjCMTAxb5dBImDD5sf8SFJDmomRI8Dqs+0YxUZrVvxKLj91 VNoWpDZNLT7WCrzjppoyqXY3xCUTrNSXoi7eAOj9uVg3KLKRvYfrtAT6yzVSq0vs37B0 cA9bxBOs2CzpP2JTaRQNRNzlmCI59HmXuu74f2CZedBp9NwbDDpFJCTbZyeGVY7iDMuM eBdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZSvI+hD+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=my0dhoGXTUKBrCrGOy8DvhVtVzSaJAyI21o2Dj3Ynto=; b=YAgMBslU/0Pv2t+WDI9CmeGXd0mS1udggw7ENlntSme1qkIYp/UPPTvjgVjL0OGvXd /tBwm+wKRai1jCtBkitN1GpTe1knePCu1dCWICqOx8dkYdWrANyPyGZJK5l7i7KEO3de 3FROJjRsDYxnDt8RW2VWrSg1LNFvCL2HV1G/Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=my0dhoGXTUKBrCrGOy8DvhVtVzSaJAyI21o2Dj3Ynto=; b=e4bItjJohEzt7HD087zRHmG8Dp9cmUvjKt871aESNa1NyPc0mCNi/Wf30BMm26YEQV qkYzO4pPOEjugxL1C+HNI88JhBqxXBnDy1IfJGi4HnMOguCNBzoUBcvxLC8VOY74Rwxl K17O43Qh5hYKNunY3xm7Z9Z0QDXCYkj0YuaeqNY5C4ddAq5gHIodzDbCNBKBFi/luA7i E3S8AD3NfoZ3dj3MVX2RFcBXwLU0XFZqSC96QyGqr+GdEvlOQI54q0vrBGVXzuYjZjbI gs+T80fod8w2o79RL1RG/h3h7LB1OQnls7LtktRcBXq196+QVG7hRrw1ks4DNoK8+3/I wVUQ== X-Gm-Message-State: AOAM531bRCoyLY0TmhmBcqSaDBVe/oNK4LK6h9iNRTAtXhNFofcOl44b xWT8w7p/ufPdDNGgAuskDIf+Tj7T X-Google-Smtp-Source: ABdhPJzWMDhOpwMbQOXbHhL4yew9xuKpyFbkeTiQVeCkL3cniaEZjQ77ABkyleE/Pzw/Hl+gRtI36A== X-Received: by 2002:a17:906:2a19:b0:6fa:7525:45d8 with SMTP id j25-20020a1709062a1900b006fa752545d8mr7503345eje.768.1653035193003; Fri, 20 May 2022 01:26:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:3f8a:b0:6f4:31e5:5c0 with SMTP id hr10-20020a1709073f8a00b006f431e505c0ls2775598ejc.4.gmail; Fri, 20 May 2022 01:26:32 -0700 (PDT) X-Received: by 2002:a17:906:49d4:b0:6d6:e5ec:9a23 with SMTP id w20-20020a17090649d400b006d6e5ec9a23mr7882637ejv.79.1653035191837; Fri, 20 May 2022 01:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653035191; cv=none; d=google.com; s=arc-20160816; b=X36y9Yr+i3Edmvr+6GwwKYewsis3Cn5uA1HY4IJt1EMPvsVrsTw/lmaITPIfmKAUMN KSviZ9eTbk/jS/oJHfEGSZb4Ash3g+F08eIh7REVF8i+9K5ZgmUbUC6xpmToU2i2HlQR I69xsu71vL51453Ha++p1Tnsljo2ZIO1YD/p2XjBQMgwpN1alTRzq/K49/PAWqLmyHhf sHgCn2FQZyUKh9TsyyMfYHCARYq7xcezp24/jcB/AW7hthFt/l57lV4sHxAIhVM48BSw YBZy/qu0R79kz2eu77+ejIsKvfITYwJXpSX3HKK+T0C56cv3+Vz6I56g4AqKQDwZb7N7 HsCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=DWFu2hVi+Im/U/9fV2ScyJ6C1u+OP24Sc1wsMKGi6Yk=; b=WufoNnm0tPfgmlVjRGzDu1kFAfeGIpWc8nidRvIq7kcytDHjgTSnXRtOePidWW+Sm7 2/OEnlzSWUOUHx4wdVuhd4DrXqE5l3GavblRvp/jE2okORlU7jP3bVKfFvtn11CcL4RC DadMZf5dvsbOtU7i3z0BO3pYK6kJxJteeLta02rE8kL8ljbxMn99+Qd2TJbXaH6JVgRG cbYQph80bQdOLodvGC63pKeHj4uTjzpCq2cX5aUWX0CxrlHBqBaKJnpn/0fW+5UhNTwy myaE1BiNx+OqHz+eFmFyREIRQsqxvYCS/e/4tEXlA24VGBECLWwkyItteyjg6ka+P4Is p20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZSvI+hD+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id v20-20020aa7cd54000000b0042ac483fd6fsor4516358edw.68.2022.05.20.01.26.31 for (Google Transport Security); Fri, 20 May 2022 01:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:849:b0:427:edfe:1b7e with SMTP id b9-20020a056402084900b00427edfe1b7emr9557260edz.355.1653035191478; Fri, 20 May 2022 01:26:31 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id el9-20020a170907284900b006f3ef214e55sm2896544ejc.187.2022.05.20.01.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 01:26:31 -0700 (PDT) From: Tommaso Merciai To: Cc: linux-amarula@amarulasolutions.com, Tommaso Merciai , Fabio Estevam Subject: [PATCH 7/8] imx8mm_evk: Add Serial Download Protocol support Date: Fri, 20 May 2022 10:26:22 +0200 Message-Id: <20220520082623.1788887-8-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> References: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZSvI+hD+; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Serial Download Protocol support as it is a useful method to load flash.bin and u-boot.itb via 'uuu' and use "ums 0 mmc 2" to flash the eMMC. Signed-off-by: Fabio Estevam Signed-off-by: Tommaso Merciai --- configs/imx8mm_evk_defconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index ec3206bd64..f0e2831205 100644 --- a/configs/imx8mm_evk_defconfig +++ b/configs/imx8mm_evk_defconfig @@ -87,3 +87,24 @@ CONFIG_SYSRESET_PSCI=y CONFIG_SYSRESET_WATCHDOG=y CONFIG_DM_THERMAL=y CONFIG_IMX_WATCHDOG=y +CONFIG_SPL_USB_HOST=y +CONFIG_SPL_USB_HOST_SUPPORT=y +CONFIG_SPL_USB_GADGET=y +CONFIG_SPL_USB_SDP_SUPPORT=y +CONFIG_CMD_USB=y +CONFIG_CMD_USB_SDP=y +CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_POWER_DOMAIN=y +CONFIG_IMX8M_POWER_DOMAIN=y +CONFIG_USB=y +CONFIG_DM_USB=y +# CONFIG_SPL_DM_USB is not set +CONFIG_USB_EHCI_HCD=y +CONFIG_MXC_USB_OTG_HACTIVE=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_MANUFACTURER="FSL" +CONFIG_USB_GADGET_VENDOR_NUM=0x0525 +CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 +CONFIG_CI_UDC=y +CONFIG_USB_GADGET_DOWNLOAD=y +CONFIG_SDP_LOADADDR=0x40400000 \ No newline at end of file