From patchwork Wed May 25 13:22:51 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: 576001 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:c603:0:0:0:0 with SMTP id jv3csp3202923mab; Wed, 25 May 2022 06:23:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHBJCN6h7TReOE5R8RNA15aFFWQfBGVxRPd4azj2CiuQyb6+H6t36bqvET/OtthQPDNMsR X-Received: by 2002:a05:6602:d9:b0:660:c951:3e5 with SMTP id z25-20020a05660200d900b00660c95103e5mr10665637ioe.77.1653485009962; Wed, 25 May 2022 06:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653485009; cv=none; d=google.com; s=arc-20160816; b=pcS5ytJijoy22QaHDMZUZ+Boa8aMZhZbOnP7SELwx2kVNTLFDC3TypXR4he53XZtHp ZWRzAiAHwNKKaJ0AqVGjmp48mAMse7tx2gkAKu9zTPJMAKZx7iqVe33zZqRAA3zuJFdA Ib47UXjKy8eL7PhozRKniIXdoc5fxnbqxkxg+QVjb2QNz6KbufIATRoZutUnILpiWpbd 5KCTtwMugoYJdY+fOJ7tdd3Re9EiCqLznUMQs3SiLJPSlJP2hLFAo1/C0z8QpaOiLgDf uNOvedAe3ZDK/UA6bIKMJjwJgtB6RnHqDXODaZXp8bA9wzpStMqkKFD3YjIdfScYIW0K 7kNg== 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=GhZBrOpGe4qSBez8mPMgEZLFEKg2gbsV20BK3XBMwTnfvMdAbIS1XMCka+kfAQVZ/U 6u8EFWSmGnUoDe7ZLNaeMy+3LorOxIthPfZYpuqhybLVcyJFAvuLGww/zGPTQ+UNSrCo pephhh7mbLfahlJ0Xn8DWpG1dK6dMpPCR4r8esFCXyKFIYPmDmBitqSKwcN3V3KUTOE/ uLK+bspFqKthb8iUpRXhf47Nt4RE2/GCyjCNNfszGN/hQ6LmwQv9ZD+JcAQb404gVqc3 fi8Nf6xE8CDIkZERIEfYE7uFqb2b283l6b/fBJiWxH8QXIPqLnl+IkDNHnX5WZZjXeL1 izZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GvDGvJVO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id f6-20020a056e020b4600b002cc1876375esi21963009ilu.109.2022.05.25.06.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 06:23:29 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GvDGvJVO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 CEC8E842EE; Wed, 25 May 2022 15:23:15 +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="GvDGvJVO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D32A842E9; Wed, 25 May 2022 15:23:11 +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-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 2E28C842EE for ; Wed, 25 May 2022 15:23:07 +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-x436.google.com with SMTP id x12so5864947wrg.2 for ; Wed, 25 May 2022 06:23:07 -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=GvDGvJVO6if4DpJ6fpzLoqpexuM1knlwMCDlbVQjUISx/qJo9if7VhnrGrgCDxBSDx KVgAvRK8rmy1sHjP5RjaePUnDWEcs4MnXfeQlA1jYsn+opFfK+2WaU4R+5mvzsKDao+D 9RKTXi2Kzhh73/DRGuIXlib8iAsl/eM4VnELitHao3oTho0LBYSt73kIfgp/m4t1Z2vu NeGIbGgciGIULiolEm+J69vOJhN5JRfZr4ACXMw8jGZlrOh+WLpPJredQ9SSf02U0c9r 1HnB5/kVJcn+eIx0aebM//xcPke0Jnh+9wtty51GRwvH2aLnGSYafvArzd2bwANWC0gf 1c3w== 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=sjl6QbVc0rriC0XVnBYWKFqcfjBkC+NsPWtlo+1O5hl8SXErmsLRFJlqFkeTgXPPEG 4HBOlPdRG2/FPe6cs2p1yiRIvG57GRfcBJtIO2RFLRYwU72C/Nr9ZepBNJKSZPlDh+h7 pHNizhp7s9eBdG1q6trz2D6vZFhe3rOFIYU6vsslD5KpkgCyawxaHGUbqgBzI96c4bB6 nzREXGNLXW245+COIoL859c0ncBE6AU0ukyTtNy1OZ5xuFAu9oVp2gYcMWpMkvNP2dm7 1WOa3SJgiBC7WigPLJ05LHJfgGlEuHboRVs+f4HFRYSYk7tsF7AMxbTCyQYGtijfiiEp ypfg== X-Gm-Message-State: AOAM533gfgxAzC2qzwkWj7aiPKzL6QDJpUZce44jHuZqfRlzn2ssfNZR 3QGzCjMdAKRx2t8+Jjd+QxJGJUCPAsiLig== X-Received: by 2002:a05:6000:cd:b0:20e:5e59:b4b3 with SMTP id q13-20020a05600000cd00b0020e5e59b4b3mr26778146wrx.519.1653484986792; Wed, 25 May 2022 06:23:06 -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 g18-20020a05600c4ed200b003942a244f38sm1987806wmq.17.2022.05.25.06.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 06:23:06 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Rui Miguel Silva Subject: [PATCH v3 3/3] corstone1000: enable isp1763 usb controller and mmc Date: Wed, 25 May 2022 14:22:51 +0100 Message-Id: <20220525132251.240868-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220525132251.240868-1-rui.silva@linaro.org> References: <20220525132251.240868-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" \