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 B91A5C433EF for ; Mon, 11 Apr 2022 16:27:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F8D183B1B; Mon, 11 Apr 2022 18:26:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="O+eOMYRU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5008983E43; Mon, 11 Apr 2022 18:26:54 +0200 (CEST) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 84D6D83CA8 for ; Mon, 11 Apr 2022 18:26:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ovpanait@gmail.com Received: by mail-ed1-x533.google.com with SMTP id w18so19084048edi.13 for ; Mon, 11 Apr 2022 09:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ke8egytf4mxHemw8AvlEsEiX1pG91I6+7Kne7gRNwv0=; b=O+eOMYRULIfWK23HvuEscscVYf8dklSKgPuMrFWQrpPzGPvOfDehHsv2HoaoXGprbq kTuSjHMNC28qmvLiqGGCeuNtN6Kv3rM5sQ7KnZCrQlbDG3df5JU7aCHa61W0y0G+1jG3 hzHlUkI9ctcU+im7A/PcvZiSKLnzlHfGCYFMwwgIPN1AfK92AmAeFmqdhqwa3k4Tkgx0 FaMdEKugYWm2ygpr9uHSAwMF7/9ogIc3z9UnNuzwpr3J4xNknUdRoALV9g7jboUgz4gD naVT3GMuGgSw0/jcqp4Vl+UK+mVVi/G9kLHBOUEt6pxGgBBFfkJcm4m7c+MmKn7nh3AG JvCg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ke8egytf4mxHemw8AvlEsEiX1pG91I6+7Kne7gRNwv0=; b=KJ3sf0Jt8PYLm9slSPO4/XYQA0ddlOP6NLdoH3uYE7HZ+ezITLjcGw8qoHljgjHT1C irwJ8FdvvyCbsCYLqpDM09CLXxArhBCDaBzQYKJuHzxgCFDYamTzv1d3slxPS2ua2Yrk 7ylaa1phbx1U3eBJaX8g1QUr8QkeIULf9+/WxlalK3aeIHF003CZQYN/R0DZPnQRLzbN xykWxTVnZ/7P7ZmVIEbt4VOfhXwoR7fRX0RD8WbPDB15lPBPnraK2h5RFLrYJUJ59haF 3vjvI/uL70fP/eTgTpabpY5NIhGr07zSOThIhmKSIO7eMcUJZsBaZs9GHrrIo1Hn3e9D fd5Q== X-Gm-Message-State: AOAM530Mhb/NqNoA8cHoiy3rdj0AZZy9qNAGMcd4B1ZF/s+qZbkqw2wn 3bBoqPveW3WhhtIo9tN1F+ABWavBfk5Z0g== X-Google-Smtp-Source: ABdhPJx42ZwNQz3yFWZOAs6hTtrwh7rgCVP1jL/d0oqE1qHCbyFUkiSibj5ldWsfCyHHL+hLAMu6zA== X-Received: by 2002:a50:a6d4:0:b0:41d:77aa:d876 with SMTP id f20-20020a50a6d4000000b0041d77aad876mr8223214edc.48.1649694410125; Mon, 11 Apr 2022 09:26:50 -0700 (PDT) Received: from wsdell.corp.ad.wrs.com ([2a02:2f0e:c41b:f600:4ab1:7aea:1e9:311a]) by smtp.gmail.com with ESMTPSA id y26-20020a1709063a9a00b006e0c272e263sm12111417ejd.71.2022.04.11.09.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 09:26:49 -0700 (PDT) From: Ovidiu Panait To: u-boot@lists.denx.de Cc: Ovidiu Panait , Alexandru Gagniuc , Marek Vasut , Michal Simek , Michal Simek , Simon Glass Subject: [PATCH 02/10] microblaze: cache: replace XILINX_USE_DCACHE -> CONFIG_DCACHE Date: Mon, 11 Apr 2022 19:26:26 +0300 Message-Id: <20220411162634.69647-2-ovpanait@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220411162634.69647-1-ovpanait@gmail.com> References: <20220411162634.69647-1-ovpanait@gmail.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.5 at phobos.denx.de X-Virus-Status: Clean XILINX_USE_DCACHE macro was removed in 7556fa09e0e ("microblaze: Simplify cache handling"), but it was still used in a couple of places. Replace those occurences with CONFIG_DCACHE. Signed-off-by: Ovidiu Panait --- arch/microblaze/cpu/cache.c | 2 +- arch/microblaze/lib/bootm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/cpu/cache.c b/arch/microblaze/cpu/cache.c index aa832d6be6..b6126de194 100644 --- a/arch/microblaze/cpu/cache.c +++ b/arch/microblaze/cpu/cache.c @@ -49,7 +49,7 @@ void dcache_enable(void) void dcache_disable(void) { -#ifdef XILINX_USE_DCACHE +#ifdef CONFIG_DCACHE flush_cache(0, XILINX_DCACHE_BYTE_SIZE); #endif MSRCLR(0x80); diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c index 12ea32488e..b652d2767a 100644 --- a/arch/microblaze/lib/bootm.c +++ b/arch/microblaze/lib/bootm.c @@ -57,7 +57,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag) "(fake run for tracing)" : ""); bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel"); -#ifdef XILINX_USE_DCACHE +#ifdef CONFIG_DCACHE flush_cache(0, XILINX_DCACHE_BYTE_SIZE); #endif -- 2.25.1