From patchwork Fri Sep 17 07:37:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1529234 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=4QPgh1Nk; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H9m5j4z66z9s5R for ; Fri, 17 Sep 2021 17:38:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92A4E83252; Fri, 17 Sep 2021 09:37:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com 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=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="4QPgh1Nk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E39783202; Fri, 17 Sep 2021 09:37:23 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 E42E083208 for ; Fri, 17 Sep 2021 09:37:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wr1-x435.google.com with SMTP id i23so13620803wrb.2 for ; Fri, 17 Sep 2021 00:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C8E2qbaf7N0jIDuLpNYyFY9uxgua9aYGDxUzGtqDqMQ=; b=4QPgh1NkXAQJ0H/xdyOrjQUfZRZNHUi2+/RN3g+rhrE7tn+vmkc6MSaBMDu/rhum6Y HYbAeeW/5JALXP/d4FttKh+ChQCBX8ECzX5IDYGjqpTLed9RLQ2loST9P04ASibi/V4V ZGlV5jSepiyx14xkvSNAS6DbUJkhDyvGbHrO/uTkVjdAE91OfzPiZwOszVOP/Scyuyxk JJm2w5Pi5aycJdvSUfJ6MBRlY4I/fQyppbDpDCSMDGBMdRHLIG6MAGdnlnrSZekUUQye fxVO+OrLghi2ZOeQHbUr8xHlWKsqdxQUlf7kCzKH9FLiSHGuDaHYy9FLjsS4L/GoJ8nM PekA== 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=C8E2qbaf7N0jIDuLpNYyFY9uxgua9aYGDxUzGtqDqMQ=; b=LBSZzd72j8kHF+mLffJSQap8n2hUKaHhdhUii4pR8okl4u2gX6h8N90a4Qr6dmVWLX fve/lBcg2/hJiLihuw1FvCR1P9u/zJfyVKDC3np4gvM7SclSkqAxrcz+hMxk2GdKTAP6 X/TVtTsWFA1vE8CDmH6pTnEOsEcvEvjdHZ7PYgkhjRTymyq2G71gBnEYr4VWzf17f+nW L5x1EX8zO79hDI3yBDECEQ5/Zc6fGvdl5mWo9Q+MQBg7g1ARiEltOJHem4ZOXbZRL0Yq +D5JHDtpfMCJQA3zkQ0ICKrsWhh8x3rduuzARyPll7yXnCDZ+CDkg9hpDkd/zNwVfOxJ FYtw== X-Gm-Message-State: AOAM531HXDLHlUXQ4rAltcuQKknEUvki+yQhALi8RboRq5fZ1h15ROH/ qYyBW06H3Qs66a3KyrAea3x682H3671c26Vj X-Google-Smtp-Source: ABdhPJxUDyEwWNPa37Vi3AiCMclO1GtnISwdGF6DCYMb1PYO7QT9GwfHkK4mlvC1Oi/Dl1sTaLYelA== X-Received: by 2002:adf:80e2:: with SMTP id 89mr10337950wrl.43.1631864235092; Fri, 17 Sep 2021 00:37:15 -0700 (PDT) Received: from localhost.localdomain ([2001:861:44c0:66c0:7c8c:5a9b:1b6e:1623]) by smtp.gmail.com with ESMTPSA id w14sm5969763wro.8.2021.09.17.00.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 00:37:14 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Cc: u-boot-amlogic@groups.io, Neil Armstrong , Mark Kettenis Subject: [PATCH v3 05/10] configs: meson64: add SCSI boot target Date: Fri, 17 Sep 2021 09:37:04 +0200 Message-Id: <20210917073709.1052133-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210917073709.1052133-1-narmstrong@baylibre.com> References: <20210917073709.1052133-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 Add SCSI target to be able to boot from the SATA disks on the Odroid HC4 using an on-board AHCI PCIe controller. Signed-off-by: Neil Armstrong Signed-off-by: Mark Kettenis --- include/configs/meson64.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index f9bb0240d2..08816fff1f 100644 --- a/include/configs/meson64.h +++ b/include/configs/meson64.h @@ -66,6 +66,12 @@ #define BOOT_TARGET_NVME(func) #endif +#ifdef CONFIG_CMD_SCSI + #define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0) +#else + #define BOOT_TARGET_SCSI(func) +#endif + #ifndef BOOT_TARGET_DEVICES #define BOOT_TARGET_DEVICES(func) \ func(ROMUSB, romusb, na) \ @@ -74,6 +80,7 @@ func(MMC, mmc, 2) \ BOOT_TARGET_DEVICES_USB(func) \ BOOT_TARGET_NVME(func) \ + BOOT_TARGET_SCSI(func) \ func(PXE, pxe, na) \ func(DHCP, dhcp, na) #endif