From patchwork Mon Nov 16 15:02:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1400971 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=aOjXyaQJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CZXPk5j9Sz9sTv for ; Tue, 17 Nov 2020 02:03:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2CC1E823A9; Mon, 16 Nov 2020 16:02:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="aOjXyaQJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64669821F7; Mon, 16 Nov 2020 16:02:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (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 16507821A4 for ; Mon, 16 Nov 2020 16:02:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x631.google.com with SMTP id f20so24869810ejz.4 for ; Mon, 16 Nov 2020 07:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/ULlKs0Km91gtXlC6Jts7ulk5TKkgx+O3fywZJj4Dvo=; b=aOjXyaQJ6zTgwMqS5WWJO9uvx0aIzDUn+u8/CRX6cGopZ9H9FAugxuD/t6uajHuj9O Kh3IfY7jP5XUyeTZtf4KkUsk/RgKJAqqn3o9tMfwGHHl3KnAZmFlTUbEX/+MFYkdvs2v Dfov+W+M3hR3+v7a3XV0p6GjgMTLCN10LuliWClpYDcoIWB3/zZskRfpKAgKoGNFfxh8 qNzkOW0mqMydVfaonjuoG3j+hzTHHVNFHuPkpGLhCo9Dew5T9ToShpBL5Kp72bAbzEdL 1+rTvNeXVDhK32xUBfpc5/Ot1Aia+n47Tsnj4UPcn5MM8O05SC4SesMDpg/RJlhwPNAz oTGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/ULlKs0Km91gtXlC6Jts7ulk5TKkgx+O3fywZJj4Dvo=; b=rZ0s/7w2UpRWzYI0mUL+8aXp+xp931d01RxSZIEbSMvnVwp3wp5ZB833YBOfxu9Ybc bxrpA/YB3z+BzdylRuhUe2y9N3psYDAHtsm2OBno4s/Ap3xDCM2YwFwdQGYQYuvLUrub DFziSu0uhxo7IE4g/dgjwudN4njFSBH1SuujYHmaMfPrt0Zdrd75OT/qh0U24H9ecv4T vytZiOQf0g2FjRi6QUh5sQSz4YcjSkjlB6blF+0An1F2Rv5s2D7YIM5HVMdVdJnqho5t cP1L50af5jbcI4xJywJb4X7LJaQ+jBytuQ0QAEYMWXpIBP6Giqj//P8m0xkBL0L9yehV fyXg== X-Gm-Message-State: AOAM532DpLesG57AbdQNC2kFNCgLf4/oBaH+sCYBEvnrwTqvsy6a/eZa lBXT/LJcDILBoPz+7Y6/Z6+sFUCG97iMDmOu X-Google-Smtp-Source: ABdhPJwEYGSQtbNxI/I7X22pMlo5KeiX5v+78K8uz7NzRduyadm4s4RQVjdYj/DAqea9FhLyyp0VCQ== X-Received: by 2002:a17:906:d784:: with SMTP id pj4mr14464108ejb.78.1605538948200; Mon, 16 Nov 2020 07:02:28 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id qt21sm10577970ejb.111.2020.11.16.07.02.27 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Nov 2020 07:02:27 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek Subject: [PATCH v2 2/6] microblaze: Simplify cache handling Date: Mon, 16 Nov 2020 16:02:15 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Enable caches by default. For now just simplify config file but it should be read from DT or PVRs. Signed-off-by: Michal Simek --- (no changes since v1) include/configs/microblaze-generic.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index d5b2bd856608..05ea64b16312 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -69,20 +69,8 @@ # define CONFIG_SYS_MAX_FLASH_SECT 512 #endif /* !FLASH */ -#define XILINX_USE_ICACHE 1 -#define XILINX_USE_DCACHE 1 - -#if defined(XILINX_USE_ICACHE) -# define CONFIG_ICACHE -#else -# undef CONFIG_ICACHE -#endif - -#if defined(XILINX_USE_DCACHE) -# define CONFIG_DCACHE -#else -# undef CONFIG_DCACHE -#endif +#define CONFIG_ICACHE +#define CONFIG_DCACHE #ifndef XILINX_DCACHE_BYTE_SIZE #define XILINX_DCACHE_BYTE_SIZE 32768