Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48534C433FE for ; Wed, 16 Nov 2022 18:12:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CA402851E6; Wed, 16 Nov 2022 19:11:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="PxbmT08O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 90763851ED; Wed, 16 Nov 2022 19:10:58 +0100 (CET) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 0BE60851E2 for ; Wed, 16 Nov 2022 19:10:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72f.google.com with SMTP id g10so12200227qkl.6 for ; Wed, 16 Nov 2022 10:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xLpiVKe8YI4/o5/704dkHX/lVfQ8oFxWUH2GQFpbLb4=; b=PxbmT08Oz+OJ1zKqhISStuA/zZYtszpL2xwaFRDRYZuvhxUqzMfMOvDlaxCKvROjdH 4lqoY8mH363FgUBKS8DrsTqG/dmmGSwtMjRm7JrJQsMZzLtf9Wun9oLhatdkuTAsbImB uufH6qvGVySX/GvR3+NNn2n97crk1sa55nsBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xLpiVKe8YI4/o5/704dkHX/lVfQ8oFxWUH2GQFpbLb4=; b=Mdt22TOJ3x2+3hTB0BhVLU3HP8CbNtghjifeyKpeBpS7EInDxc8+Y6yEjjt2YUgN4l zaUrUOhFLKkbShgUaOoCUFZBvpBFaRR6I4p3TqSrBuLp7mp98a9dr0baKKO+xzEGpQOM H48uPpypqGHK1yJniMr7pmSEmmpy7GHW5TcFxRpuE8f5FKu/+qEYpub/TbsJWjv21x5W A+ElDrUm9MAjWvCCCJsObrlvJohRHHXRQg2HziFKNPHkXy+5taL5esEAfGr/yG7CBt+k 5jrdx7VFoa1ES7pC3S8Vv3ucRS+e0w9LtIedjpJrbBdjFt7at2nFt4XVy6AHbuSVLaDo CBdA== X-Gm-Message-State: ANoB5plPeSGGRu3N+BKh/ImnPze+8wrtjeP/6SFd6I6Kln/tvs8vJV66 1o/sR+duF7flC99lR+LgkfW9OsGak7e9pg== X-Google-Smtp-Source: AA0mqf62v+l0f1Pi68NW8ivG3EWEyAAk2QLK/T2NmEVHdfaa0TwZ9CT5ujBQyPeec2gvU2lXhsir3A== X-Received: by 2002:a37:397:0:b0:6f4:ed58:b809 with SMTP id 145-20020a370397000000b006f4ed58b809mr19871687qkd.550.1668622247617; Wed, 16 Nov 2022 10:10:47 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0898-f63b-d3a5-7bc4.res6.spectrum.com. [2603:6081:7b00:6400:898:f63b:d3a5:7bc4]) by smtp.gmail.com with ESMTPSA id q6-20020a37f706000000b006ed61f18651sm10285629qkj.16.2022.11.16.10.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 10:10:47 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 11/17] spl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig Date: Wed, 16 Nov 2022 13:10:35 -0500 Message-Id: <20221116181041.3657611-11-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221116181041.3657611-1-trini@konsulko.com> References: <20221116181041.3657611-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean This moves SYS_SATA_FAT_BOOT_PARTITION to Kconfig and enforces the current default via Kconfig rather than C code. Signed-off-by: Tom Rini --- common/spl/Kconfig | 5 +++++ common/spl/spl_sata.c | 4 ---- include/configs/imx6_spl.h | 5 ----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 05181bdba3e1..512c1bc721ac 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1232,6 +1232,11 @@ config SPL_SATA expense and power consumption. This enables loading from SATA using a configured device. +config SYS_SATA_FAT_BOOT_PARTITION + int "Partition on the SATA disk to load U-Boot from" + depends on SPL_SATA && SPL_FS_FAT + default 1 + config SPL_SATA_RAW_U_BOOT_USE_SECTOR bool "SATA raw mode: by sector" depends on SPL_SATA diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index 9ae02730685a..12397f0ae17e 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -17,10 +17,6 @@ #include #include -#ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION -#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1 -#endif - #ifndef CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR /* Dummy value to make the compiler happy */ #define CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR 0x100 diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h index 3afe418b67dc..f34988fdd74c 100644 --- a/include/configs/imx6_spl.h +++ b/include/configs/imx6_spl.h @@ -10,11 +10,6 @@ /* MMC support */ -/* SATA support */ -#if defined(CONFIG_SPL_SATA) -#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1 -#endif - #endif #endif -- 2.25.1