From patchwork Mon May 23 09:01:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 575400 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:c603:0:0:0:0 with SMTP id jv3csp1207985mab; Mon, 23 May 2022 02:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLeOIM4EB4I1rjMYYxzsDfgT0lpfJyLWcKgwUtQ0elkfKso99W7Mq9qHdc0rLFt7YZVdTn X-Received: by 2002:a92:c247:0:b0:2cf:d2e1:cb13 with SMTP id k7-20020a92c247000000b002cfd2e1cb13mr10867531ilo.16.1653296522927; Mon, 23 May 2022 02:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653296522; cv=none; d=google.com; s=arc-20160816; b=H1NKm8jYVRJcsySdJ6lhOxSCNZWymJgbOKR8jSy6KNoj4xfXYb1xKFRGQG8HtEchvO Z+LH+hu4WC3IhN+ZNSpPgHrohWwTK+SsFJPu3vXZrP8nLEFxP+D69GA9sd0eTFPlLxMg pj9DrU+QRrh5J30XErXK6pBkNqgg6NsjrsAuSuV7I6ZAb/Guf+144gVcDJR5VSQ5r1TI d7bVA+4wOytE/KNUbpsfI4wXv0egrBWtNRognrhVEZV0opQtZ04k25QQ9mZcYlEHDJzm hId69Fdw3dkupI0K1XwcfjEpnoavBbdoYgO6+CrmNJIux4mbageUwNs3GLDpaLAUlQ0Q HTag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IVFp0y8lpNCwiRhP+wm4ku/NzsqEdTnEmDjDCzUc5bo=; b=WRpIvO94sVb24zaabqDeF76hNH8Hw3RO7rnQVm1P0tYqQPhIKV+IlQ/BGo+3yVvuQd RpfUTQwNYWj6iHIldx231KsCCLMDWmZfZBuDh8yYqkz/x0pgQzNFIMBpNDuieR7TpKbq 4Yag1MzXLHiFQmpZkW9kuTm6eRxzeWYVw+S375oFrpzU2FwXqySUjnJ0Rx769AS1Qnk0 xheaXnVi01lW9BOYBjHL0mShg4RbI1vCtYay8PszjbZVaajARfwn8X+ykUH7yoZEXHLF 50oR3a6uzMzij6BALTzq95NWxSHsaa3Fvh4T+m+5Bt6COsQ4VTTxgoh9aUPzXAFiy1co 8QnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZRsuU8eq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ay5-20020a056638410500b0032e9e4acaefsi7547998jab.142.2022.05.23.02.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZRsuU8eq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8C54B84011; Mon, 23 May 2022 11:01:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="ZRsuU8eq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C973383F28; Mon, 23 May 2022 11:01:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2719083F2F for ; Mon, 23 May 2022 11:01:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rui.silva@linaro.org Received: by mail-wr1-x42c.google.com with SMTP id h5so19192255wrb.11 for ; Mon, 23 May 2022 02:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IVFp0y8lpNCwiRhP+wm4ku/NzsqEdTnEmDjDCzUc5bo=; b=ZRsuU8eqysLiwsfA42FNvy7tqXfyRrltNqKdfAZoMqPV3uc3gXrB3laXsZRkpTFnsn tK7bf1yj+lCFzNYpkGWcayhs89VPIEM9O81sPu4CU3Vcfy/BhT6jhMoM7zcacjt9REO4 FJx4hmn8fV4+QEwRVJMW98v1MQrU/SYAeWIx134FfA70DMtnXR2Z/7U3G4dtqCkAk+0w rGnGaQ+2+kwzevlOpJGZcU5U2ln0zCDyMHzqA6mz4Zb16ZKGzqnpKQqj1HGSsdDv8iWV MlznqixG3pIMn/DHJn2cm+og8CnqXldRYup+NiIZR8fANJgbj77oEWXKK8zKsudGPGf+ UXXA== 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:content-transfer-encoding; bh=IVFp0y8lpNCwiRhP+wm4ku/NzsqEdTnEmDjDCzUc5bo=; b=A6+2vJBjgfo+0jILBx9KJivd/Xm7XLqPr1Bd8QNHkyq6v9Ediu7Uy3N89FY56GXlgq /+IylAgOHT2ey/FQcMH2qCvo1iqiKrt7sSae+l7/ptgTL3QHFJ6wHYk3a0uuGKt6sZ2S y5QmCSq0fhUsnOeiaeWfgR3fcCEq4kH8jQxHCVLTwQSsX3nFsW9N0KstCgYpNjSyT3/u pUMCzIALnLvSrWwyreR15MXXXNMW0X6KPtWCGJU+v2YUGf2bQkTx9rWJPjiHtkUkGKlg A2laN02zx/MxgSGkTD/xs9eSPAB4+jugOY/Nqb7clFzpYZOc4Dh2YweFOyugJXzftnkZ USBQ== X-Gm-Message-State: AOAM530Zdq87W0PSEYcu2n4UG4zQYGa+4LVhKJ0dZ9vS/Dw2j0FtZChE 8Ce9d2r3XIJw/wzpiv/s0s+bsM/uVSiX0g== X-Received: by 2002:a05:6000:2ad:b0:20e:796f:cc62 with SMTP id l13-20020a05600002ad00b0020e796fcc62mr12793184wry.200.1653296489459; Mon, 23 May 2022 02:01:29 -0700 (PDT) Received: from arch-thunder.local (a109-49-33-111.cpe.netcabo.pt. [109.49.33.111]) by smtp.gmail.com with ESMTPSA id d24-20020adfa358000000b0020c5253d8casm9880775wrb.22.2022.05.23.02.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:01:29 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Rui Miguel Silva Subject: [PATCH v2 3/3] corstone1000: enable isp1763 usb controller and mmc Date: Mon, 23 May 2022 10:01:19 +0100 Message-Id: <20220523090119.1212016-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523090119.1212016-1-rui.silva@linaro.org> References: <20220523090119.1212016-1-rui.silva@linaro.org> MIME-Version: 1.0 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.5 at phobos.denx.de X-Virus-Status: Clean MPS3 board have a ISP1763 usb controller, enable it to be used for mass storage access for example. Enable the usb command also and for the FVP support for mass storage enable the mmc command. Signed-off-by: Rui Miguel Silva --- configs/corstone1000_defconfig | 3 +++ include/configs/corstone1000.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig index 4f6082770f89..d6c0dc4c5641 100644 --- a/configs/corstone1000_defconfig +++ b/configs/corstone1000_defconfig @@ -23,6 +23,8 @@ CONFIG_CMD_BOOTZ=y # CONFIG_CMD_XIMG is not set CONFIG_CMD_LOADM=y # CONFIG_CMD_LOADS is not set +CONFIG_CMD_MMC=y +CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_NFS is not set CONFIG_CMD_CACHE=y @@ -45,4 +47,5 @@ CONFIG_DM_RTC=y CONFIG_RTC_EMULATION=y CONFIG_DM_SERIAL=y CONFIG_USB=y +CONFIG_USB_ISP1760=y CONFIG_ERRNO_STR=y diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h index 6bc0fc976018..ff327f59483f 100644 --- a/include/configs/corstone1000.h +++ b/include/configs/corstone1000.h @@ -35,7 +35,13 @@ #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ #define CONFIG_SYS_MAXARGS 64 /* max command args */ +#define BOOT_TARGET_DEVICES(func) \ + func(USB, usb, 0) + +#include + #define CONFIG_EXTRA_ENV_SETTINGS \ + BOOTENV \ "usb_pgood_delay=250\0" \ "boot_bank_flag=0x08002000\0" \ "kernel_addr_bank_0=0x083EE000\0" \