From: Alexey Brodkin Date: Mon, 3 Dec 2018 12:56:56 +0000 Subject: [U-Boot] [PATCH v3 5/5] arc: select BOUNCE_BUFFER for CMD_NAND on AXS10x In-Reply-To: <76A1F254-D8E2-4872-BC7A-425097B44813@theobroma-systems.com> References: <1543612409-62772-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1543612409-62772-6-git-send-email-philipp.tomsich@theobroma-systems.com> <364aebf78abc37f332373b2dfc95f6421e3eb134.camel@synopsys.com> <76A1F254-D8E2-4872-BC7A-425097B44813@theobroma-systems.com> Message-ID: <7009735e228b7ad856590ea0fc201ec30a24be55.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Philipp, On Mon, 2018-12-03 at 13:28 +0100, Philipp Tomsich wrote: Alexey, On 03.12.2018, at 12:20, Alexey Brodkin > wrote: Hi Philipp, On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: The NAND driver of AXS10x depends on the availability of the bounce buffer. As the NAND driver is gated by CMD_NAND only, we need to select BOUNCE_BUFFER conditionally (on CMD_NAND) for TARGET_AXS101 and TARGET_AXS103. Signed-off-by: Philipp Tomsich > --- Changes in v3: None Changes in v2: None arch/arc/Kconfig | 2 ++ include/configs/axs10x.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index fa6b344..50369d5 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -146,9 +146,11 @@ config TARGET_NSIM config TARGET_AXS101 bool "Support Synopsys Designware SDP board AXS101" + select BOUNCE_BUFFER if CMD_NAND config TARGET_AXS103 bool "Support Synopsys Designware SDP board AXS103" + select BOUNCE_BUFFER if CMD_NAND I'd say that more appropriate place is "board/synopsys/axs10x/Kconfig". Because: - This is related to the particular board, architecture has nothing to do with this - Only 1 line of change will be required as both boards use the same Kconfig file Happily, if you tell me how I can add a ‘select’ for this config-option in board/synopsys/axs10x/Kconfig w/o unintended side-effects … In other words: I failed when I tried to override CMD_NAND in that file. Ok I see now. We need to have either "bool" or "tristate" Kconfig entry to specify "select". So we'll need to introduce another hidden variable in board/synopsys/axs10x/Kconfig to get it working... in that case I think your initial proposal looks better. Sorry for the noise then. -Alexey