From patchwork Wed Sep 8 14:17:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1525912 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=dZFJUkN3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H4PPj5TWsz9sW4 for ; Thu, 9 Sep 2021 00:18:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F04E833CD; Wed, 8 Sep 2021 16:18:06 +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.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="dZFJUkN3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DFE983379; Wed, 8 Sep 2021 16:17:43 +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-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 8695C8338B for ; Wed, 8 Sep 2021 16:17:37 +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-wm1-x32e.google.com with SMTP id l18-20020a05600c4f1200b002f8cf606262so1759856wmq.1 for ; Wed, 08 Sep 2021 07:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C8E2qbaf7N0jIDuLpNYyFY9uxgua9aYGDxUzGtqDqMQ=; b=dZFJUkN3Mwyw/S350Ny4mJfUVEORuh7e6ewbgpzl3RzTqj0oaOdWzJkIhwFTVwGCYK U2DRPfTElPz39KLAD3F2oYbM1UfGurTddJZpewPw72v1ZWO4J8KKm9EvK5wQaEKVnWvy QrTS24z6FbWNZxebF77SVMUJGRxu36Xn5PNDBvGFf5Rzh32xlD8t0kB3CnKkxnBRn7bM AHNtl158AKGDPpfGMvSi911nbLQ8xIcK8nwg65RDwx2fK6IwXbhPYDHyVup76hwUxxkn hlQLZhlYJTO35r51F+v5Wydattq/yLiHOpbbAE43MgL4BdCLjrb8f9BuOCUG9uvzwbkb h3Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C8E2qbaf7N0jIDuLpNYyFY9uxgua9aYGDxUzGtqDqMQ=; b=thiIOjoyzBm86xQ1a/oTEVVzQ7AEZQc3dFBF8FGUZwbXSmjgokK5dWgHd9MkmfRxK5 xdo3x2Gqq8sWwQWzAO647sFKUXIqFafzjYQgHWSRC6W30gqyibPNcvi6WMHrFBQRQVzG VJAvOaHyvxhOT76zXwd2vFW6Iuavid7VVAyc7A3CMVAwlpqQyXhucSAsqKiLnLI/MNr7 NPfI4SntWZnhtDEIuKxA7nVcLAW8w8kK5W6Wr+iVLN6ZJz/OOUrjYkP/f2yrJlVVqD1D LOcC5S301dcP6WKvxW+tQnGM5tcbHPmW+tReGwFE8cJxd5WSeQb97h5QMwXjfrU1MGZk CgnA== X-Gm-Message-State: AOAM531IkRrWyk1ROl8lkWvw9fBvATCNJxwvpbvTQ3qtvoUNWUo2vb7n S55Sp9IiL2a2/+xgNXR8hbq96oKTq+ilLawJ X-Google-Smtp-Source: ABdhPJwRzlQvTGsb7rOXYEr/p88XQ0xz/NjMwtZs7zEoegT+plep/P9TL3Yx3lMToE1hEZ9zcd3cwg== X-Received: by 2002:a1c:238a:: with SMTP id j132mr3873563wmj.185.1631110656564; Wed, 08 Sep 2021 07:17:36 -0700 (PDT) Received: from localhost.localdomain ([2001:861:44c0:66c0:19d:2e13:ec0a:9d59]) by smtp.gmail.com with ESMTPSA id q13sm2339897wrv.79.2021.09.08.07.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 07:17:35 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Cc: u-boot-amlogic@groups.io, Neil Armstrong , Mark Kettenis Subject: [PATCH v2 4/9] configs: meson64: add SCSI boot target Date: Wed, 8 Sep 2021 16:17:23 +0200 Message-Id: <20210908141728.585797-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210908141728.585797-1-narmstrong@baylibre.com> References: <20210908141728.585797-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