From patchwork Thu May 12 14:20:16 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: 571797 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:66c4:0:0:0:0 with SMTP id x4csp705354mal; Thu, 12 May 2022 07:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/g8W3KzQBzIQyxCIyPABxV9DRKfq84Q/NQ24AC1eiWNf4gBr6Y+n49rHOQJu4SznD7lsQ X-Received: by 2002:a05:6402:26ca:b0:427:c181:b0ed with SMTP id x10-20020a05640226ca00b00427c181b0edmr35699472edd.400.1652365260031; Thu, 12 May 2022 07:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652365260; cv=none; d=google.com; s=arc-20160816; b=x1VcSpXg6QhgE5g4d7aKQRnSs5N5vXsS0urQnLjHPOYQdYc/HO5H7dKp1hlB8vnJZo 0jEcbYRWwOcWnDNCdugQSJnw1zEsxAKWdjvgLY0oRPumZQcqtKlWSwm/Egv0u8LjA3WV Al61xn4kscSlpqOIH0/xDY3Jkb06jV6nekiq16RRVOHWN+hIa6P+zWNXC46ah1EuHAF0 d9txfQ9BpYrT9ZGlp7RshUsF9P5ppPVWl0g4x8aQd33K4KRyVGmDjVtzZZvCSgV/qKSD CmecpyPkb133GfLtbpM+TmtKJB5NjVi9UIq4agoTZ7bNL/UPcyoYXkPBKZWkCmbGoKCd 7C+Q== 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=l3OlZCv3nxEvY4sycZA4bVQ6ZMPQZtmY8m00yOdIAEuFUDrto1m0/ou+sBZESPygX4 qVO1LTNUNwUJNNtU1uAYMB8nT3eLA6FvDzu9n53Qu9gm4mQTIC3f1fl7NRulmWaENYAd 7UrgCO7SxcCMBxxUwuElApsgVjLgj4SMcKSRfVHmCuauOhfnkENJwJOwNtEAGnXne6Bs /XJYKFvIhlQ/nvQtVpX5KtmC9qouHPglDI695/7Uut5XfmO6tAw3+pGL2gihAo5AJEPO nh81PV5r44pbtz5Tmtx3kdZpGtsK6+khmRBlXb/IGHvlhvlycxrM8Swc7OcXbAjsmYcu nmXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fR2Jhapz; 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 i39-20020a0564020f2700b00427ce6ebe35si5764728eda.616.2022.05.12.07.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 07:21:00 -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=fR2Jhapz; 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 D44AB83E01; Thu, 12 May 2022 16:20:42 +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="fR2Jhapz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F70783CF3; Thu, 12 May 2022 16:20: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-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 39C6C80885 for ; Thu, 12 May 2022 16:20:31 +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-x433.google.com with SMTP id u3so7513768wrg.3 for ; Thu, 12 May 2022 07:20:31 -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=fR2JhapzHwPjMN3WjC0L2lYX78weLgOeFcF5MAk71fO+uEhtcnt665Yx04UW8Y1asu lGnrMYi9KMt+EVXoUlgkX5SSusqozGSy/6Uo6ivO7ArHAQ1ao1K9Y09dZjLvS6eudHOZ DsA3+4qt7MnPhMW2+FNz7qcqQr2yNXWRZDIbc851dMaY7Y4y5teZVLi1XA5HRuAzB8d6 3b6Kb6S+v1mLMvp7OlJruzjWBlYrfbPoTgw0Plp9DXQMb2aFghGXqACz9aGJLHOJleiG i0pR8IUbcVGInD6g3/ZsoRM11g1WvA+oLraTsi2zcaBDzF+5jc1xlOuH/s4qOFdLEVoG O16w== 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=itUm2qQTeDKUGs/5LACsmIy50yKmMcstUQ85BXfJ8PcMv5DgFBCdrLNxr2g4AWJKXO UKMzGZmpS1A/TixMtnRzMRxd2lkNXq5e24zf5ZzjrpzT1txkKtdU/lS0gu2dcKapYOJD SI3T41FDOOc7MSWrBCvXHlNM6fYvI4ycYWME01eKuyV37BJGCE0YyubnVwAYosFi4z4w iDPPzfDpqqVQdSuLABurDepy4dRAFnOkWfQXpfeH1Y/7zv78xM6mfUXoO/pPC0yUPRfH UUrq//bJANhML6U6VGh6SuUH+icVMteJ14cGrtz50T/S/hb/My8kfVXWKfG9oolULy3h xIRg== X-Gm-Message-State: AOAM5310ADcFVV2eUB7LYG//Q82wuPTWSRGFvDBIVxiwlJb76EXLbu4+ UOy08kMwXthLhplXV1lsdDkur63xUxZjYA== X-Received: by 2002:adf:cc82:0:b0:20a:cf3b:4624 with SMTP id p2-20020adfcc82000000b0020acf3b4624mr27153550wrj.573.1652365230567; Thu, 12 May 2022 07:20:30 -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 y14-20020a1c4b0e000000b003942a244ecesm2767999wma.19.2022.05.12.07.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 07:20:30 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Rui Miguel Silva Subject: [PATCH 3/3] corstone1000: enable isp1763 usb controller and mmc Date: Thu, 12 May 2022 15:20:16 +0100 Message-Id: <20220512142016.2025129-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220512142016.2025129-1-rui.silva@linaro.org> References: <20220512142016.2025129-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" \