From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87492C433F5 for ; Sat, 25 Sep 2021 16:49:41 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BE4E960F58 for ; Sat, 25 Sep 2021 16:49:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BE4E960F58 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 947DD83560; Sat, 25 Sep 2021 18:49:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="Lpz94dpm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC16182EEC; Sat, 25 Sep 2021 18:49:35 +0200 (CEST) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 D70B983550 for ; Sat, 25 Sep 2021 18:49:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleksandr.suvorov@foundries.io Received: by mail-lf1-x132.google.com with SMTP id g41so54591506lfv.1 for ; Sat, 25 Sep 2021 09:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fGQxmI72yP69IWrIAY1x0vL58Lx6+HzWMaqRN8i0YBY=; b=Lpz94dpmrrsotY9mo7T54IOpaEGomsgFRGL+jxGhs8RGtZPauPTp9b5GOy8ofkx8gY 5kz3SZfLJ5iFeoKBUr4C+O4xCjq2QsNXLMfYxb5p7yUa1LtPTMcFerCMf0oD60RNV9jB UkLmnI1phfw4gqjPMGhF/st7mwQD8ftXQE0V5iX/i5jEfZOARC+HY1rcopL/MzB40AQa uhdO4uqJ2H+6KHDcZ/S5xaqvsHBsurBuu3ix6ErU64styegNETGL3BbTadthnx2Atgqg 7LaBjwvuD3UMt4Lh7ZyubQ2rVrKhKF3lpx/Jp45/LECROFAnslochXv+Wt5IivciIhj/ E8hA== 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:mime-version :content-transfer-encoding; bh=fGQxmI72yP69IWrIAY1x0vL58Lx6+HzWMaqRN8i0YBY=; b=IGQlPwLgyFr0TFRf+xk3zBIejsRLJ+/IDozkXH6Nck6YWnRikpn+CtRDhxYWt++q9S mPjJGJ+ZZeN1VFznfiNnJXFYCa/hPn5KSTPVvUPUgVqLQnd3KjjIMTuJliB5Ci+fM/GX RS4XLAHWz/sNB8zw461lsZip64932J4nUxfHcbUsuATRz6nGBXpzXnQtksVUWagLknHo Lgp4iMtddjdRO1aTeWikrc9WLpknIoWJIHgD2Rx+3BvUPo0adzR+UHAdbzEVU0y73g2X iVT3yjvKAGzfbVO26Zqdy1+bFydC3ZpmaBqiWZgB3ltn/2pj5sLeBIBS2Tx6yaU2fHgc iIKg== X-Gm-Message-State: AOAM531E6y/JEsq39pg4U5vD3V1KaXcW7Hkjf8v3i4dsj0acQUzryn6R Tur8ao6beBYD/DD2auDPN0V1Nd92wr5ovA== X-Google-Smtp-Source: ABdhPJzz/oYXjdepbQZBM3oP4PrWjH4xsxsZgpm3wMVLxNSHPj93RXCi9MBhWcV9tPLwdRnGiP2P2Q== X-Received: by 2002:a2e:7401:: with SMTP id p1mr11250610ljc.531.1632588570918; Sat, 25 Sep 2021 09:49:30 -0700 (PDT) Received: from cryobook.bearlog ([82.193.109.226]) by smtp.gmail.com with ESMTPSA id v23sm1077055lfd.85.2021.09.25.09.49.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 09:49:30 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Michael Scott , Oleksandr Suvorov , Asherah Connor , Bin Meng , Igor Opaniuk , Michal Simek , Simon Glass , Wasim Khan , Ye Li Subject: [PATCH] misc: ocotp: Allow disabling ocotp driver in SPL Date: Sat, 25 Sep 2021 19:49:28 +0300 Message-Id: <20210925164928.70769-1-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Michael Scott This allows removal of the OCOTP driver when SPL is enabled. Disabling OCOTP reduces SPL size efficiently. Signed-off-by: Michael Scott Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- drivers/misc/Kconfig | 9 +++++++++ drivers/misc/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 997b713221..4d6a4384f1 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -233,6 +233,15 @@ config MXC_OCOTP Programmable memory pages that are stored on the some Freescale i.MX processors. +config SPL_MXC_OCOTP + bool "Enable MXC OCOTP driver in SPL" + depends on SPL && (ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610) + default y + help + If you say Y here, you will get support for the One Time + Programmable memory pages, that are stored on some + Freescale i.MX processors, in SPL. + config NUVOTON_NCT6102D bool "Enable Nuvoton NCT6102D Super I/O driver" help diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index b64cd2a4de..3fb367b34a 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -50,7 +50,7 @@ obj-$(CONFIG_IMX8ULP) += imx8ulp/ obj-$(CONFIG_LED_STATUS) += status_led.o obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o -obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o +obj-$(CONFIG_$(SPL_)MXC_OCOTP) += mxc_ocotp.o obj-$(CONFIG_MXS_OCOTP) += mxs_ocotp.o obj-$(CONFIG_NUVOTON_NCT6102D) += nuvoton_nct6102d.o obj-$(CONFIG_P2SB) += p2sb-uclass.o -- 2.31.1