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 2D822C4332F for ; Fri, 2 Dec 2022 21:49:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3F42685453; Fri, 2 Dec 2022 22:44:21 +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="SRVuj9fs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 28BAA8528D; Fri, 2 Dec 2022 22:43:37 +0100 (CET) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 29190851FC for ; Fri, 2 Dec 2022 22:43:31 +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-ej1-x636.google.com with SMTP id td2so14427232ejc.5 for ; Fri, 02 Dec 2022 13:43:31 -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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AY297opp6IqAPGUlYZTKZpRUz3nmSHObgg7vMMcas/4=; b=SRVuj9fs90z1AsMm4s+FcqiR7vP5yQ+nmCYJBsBIyE8Fz6HdbF5po4poLbeXyQLkhH m4+ULIZzXKSSLp6v8BP9oOCMRpVTMFcg6QTN/a5gNHEL6GMjtguwQ5aGRkJxM5QsOUns 3HEk3u6YichHYnruEcMY4zdBzjK/WT3cDCjrw= 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AY297opp6IqAPGUlYZTKZpRUz3nmSHObgg7vMMcas/4=; b=fhwMhiW8/Q1XX3b+xGVmMxfhtv2tvJyU7Hit9gMQem5b/k1NGvanExi92aeEEWO+rl o5peRZj8tebV8MavkGIE/6AqtCY17KGrHPX5IsjIDn3qWN35Xcal3j7Aiwe076KEz0TG KXg1aHEwtzaMM1sOxw4n/d/rwp3F5IyoD4Ut4SbQw7FzErJgEyIq57Jgm3Upy7pWofb5 71ZbprB7XF1r/XbzD9ZwIcHqupW5GQrWS5DqGuZFnNND1Bmz4I7NeOluzn9WEaE4XdR3 Nk/rnbdPlhJB+wqtlJiFd9Oe65Q2xNv1cL/HYeCzHWWlffcgSDivMjaHxi7gMtzCBf/a e0hw== X-Gm-Message-State: ANoB5pkAShnJPYFoFm2g+CvNveeD8r8jyk5Q5D2w9ov8IH7Foou+SOPK DP7NZnyAxf99dYpHXgTsBqWfBBVzxVbfkAAd X-Google-Smtp-Source: AA0mqf4pgp0gAKPcynmQY81WhGYxurTf5KUdKfbukiY00d+jL9P80WcH3ecWKEB6ydvqNkrqvMSrSg== X-Received: by 2002:a17:906:1b4a:b0:7c0:a9de:18dc with SMTP id p10-20020a1709061b4a00b007c0a9de18dcmr9509561ejg.15.1670017410535; Fri, 02 Dec 2022 13:43:30 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-f99b-6f1a-2cc1-7368.res6.spectrum.com. [2603:6081:7b00:6400:f99b:6f1a:2cc1:7368]) by smtp.gmail.com with ESMTPSA id b23-20020a1709062b5700b007c0991735c0sm3434248ejg.79.2022.12.02.13.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 13:43:30 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Simon Glass Subject: [PATCH 33/41] sandbox: Finish migration to Kconfig Date: Fri, 2 Dec 2022 16:42:43 -0500 Message-Id: <20221202214251.3027264-33-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221202214251.3027264-1-trini@konsulko.com> References: <20221127152536.1556469-41-trini@konsulko.com> <20221202214251.3027264-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 Stop using CONFIG_SANDBOX_ARCH and use CONFIG_SANDBOX instead. For the SPI related defines, set them directly in Kconfig. This now empties arch/sandbox/include/asm/config.h. Cc: Simon Glass Signed-off-by: Tom Rini --- arch/sandbox/include/asm/config.h | 10 ---------- drivers/adc/adc-uclass.c | 2 +- drivers/spi/Kconfig | 10 ++++++++++ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/sandbox/include/asm/config.h b/arch/sandbox/include/asm/config.h index 50215b35d777..87b9d23b37d2 100644 --- a/arch/sandbox/include/asm/config.h +++ b/arch/sandbox/include/asm/config.h @@ -6,14 +6,4 @@ #ifndef _ASM_CONFIG_H_ #define _ASM_CONFIG_H_ -#define CONFIG_SANDBOX_ARCH - -/* Used by drivers/spi/sandbox_spi.c and arch/sandbox/include/asm/state.h */ -#ifndef CONFIG_SANDBOX_SPI_MAX_BUS -#define CONFIG_SANDBOX_SPI_MAX_BUS 1 -#endif -#ifndef CONFIG_SANDBOX_SPI_MAX_CS -#define CONFIG_SANDBOX_SPI_MAX_CS 10 -#endif - #endif diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c index 67137ffb3414..9646e4d70627 100644 --- a/drivers/adc/adc-uclass.c +++ b/drivers/adc/adc-uclass.c @@ -22,7 +22,7 @@ #define CHECK_MASK (!CHECK_NUMBER) /* TODO: add support for timer uclass (for early calls) */ -#ifdef CONFIG_SANDBOX_ARCH +#ifdef CONFIG_SANDBOX #define sdelay(x) udelay(x) #else extern void sdelay(unsigned long loops); diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index c6900f449d5f..64ceed12ce48 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -429,6 +429,16 @@ config SANDBOX_SPI }; }; +config SANDBOX_SPI_MAX_BUS + int + depends on SANDBOX + default 1 + +config SANDBOX_SPI_MAX_CS + int + depends on SANDBOX + default 10 + config SPI_ASPEED_SMC bool "ASPEED SPI flash controller driver" depends on DM_SPI && SPI_MEM -- 2.25.1