From patchwork Wed May 18 10:54:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1632745 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=dlMqJxBs; dkim-atps=neutral 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=) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L38xb4xb9z9sGH for ; Wed, 18 May 2022 20:54:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE11984285; Wed, 18 May 2022 12:54:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu 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=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="dlMqJxBs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4BA084286; Wed, 18 May 2022 12:54:05 +0200 (CEST) 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,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 ED22C84284 for ; Wed, 18 May 2022 12:54:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x636.google.com with SMTP id dk23so2996020ejb.8 for ; Wed, 18 May 2022 03:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZZu5leIfqonAn17bhc3tnUIVPT4sSv4WSn3bPrnqEuI=; b=dlMqJxBsiYSihPcJkrnMB4MB492LuG4t5TehiScU6P0I3ACa0A6YehvoTssKIg+WPn 8/7OnHmwlZSQ7XDc2Hk5qW/SMp3auG1UHPzrIRpM0Ws4OXqSWwOmesUqkMxz1H4WO4St 1s2l0T4rwNQkUkgYltM8Blnr0e/+Sr2809UgW78sKqO0sr5IhmI7jsX+z4wmwq3kIPD9 kDT3U+MDyZGhE5ahGYE2VzeEyW5sreeXDu+YEPOwU3D7YPzhKrDShFsJwmb6w1OWUEOk zW348zzmomatFvv2t2ff5TqCxbmE0BpT+f1Kdg1ri03npzIiDPflkjiB/9akeYtIqm/+ E1nA== 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=ZZu5leIfqonAn17bhc3tnUIVPT4sSv4WSn3bPrnqEuI=; b=mRBraKFkofwKFrc8ptRK74vaxDV/7hPaG5ERPIfs6PxSKVA+/FOCZV3oQb9QXAboEL /O7JT0LxA5ZtAYJSwRfA5O8oahPeWR1rnAABkRqf/QrNxy4jGtV5TpCcBZiwkbkiCHRq CiDcR+1t+gxOQqQ6+13Ng3qzuRYhx/bqoy8Rtx1Ef0FVKkz5t+RFFc8MwEgodyVQ1U3F ORmh8f6MIXJfJcEOAG+d3iRcOSOVUUv6B3neBRN6UCaQ7zEvK6yckSl0O/zD8xMkmGSI tQ14tXVJ0gdepQWqhFKkXcp5kmeNLxivZc5fPuEPDDfpF4R9JJyVh+cKMBYRfswV1HIn eDew== X-Gm-Message-State: AOAM530ROPxqTfzBD1M4crhGhx18KqcyFItt6Ly4vlrFlAQFHC8AdrfR +d34aVf2Q1YnN58AGcgJlPXcGXdfQ32guw== X-Google-Smtp-Source: ABdhPJze+8aQM/su8cGLTkNLSUW03uHK7zFEcFr2xs4PTzsVXhfWsSJcu5l7wLZ+u3/fsqi3bVB2Og== X-Received: by 2002:a17:906:7313:b0:6f4:9079:2b2a with SMTP id di19-20020a170906731300b006f490792b2amr23159688ejc.377.1652871242440; Wed, 18 May 2022 03:54:02 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id n17-20020aa7c791000000b0042ab02e3485sm1134329eds.44.2022.05.18.03.54.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 May 2022 03:54:02 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Bin Meng , Leo , Nick Hu , Rick Chen , Wei Fu Subject: [PATCH] riscv: remove CONFIG_ARCH_MAP_SYSMEM from io.h Date: Wed, 18 May 2022 12:54:01 +0200 Message-Id: <7811e3536a38a6baf186c9925f010c565aad6cdc.1652871239.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 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 Commit ba1ed5b022c6 ("Convert CONFIG_ARCH_MAP_SYSMEM to Kconfig") clearly defined that this option is available for SANDBOX (was also for already removed NDS32). That's why there is no way how this code can be enabled with current Kconfig layout for riscv. Based on this removing this code. Signed-off-by: Michal Simek Reviewed-by: Bin Meng --- arch/riscv/include/asm/io.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h index fc39bb2c701e..431cf1389d1d 100644 --- a/arch/riscv/include/asm/io.h +++ b/arch/riscv/include/asm/io.h @@ -17,28 +17,6 @@ static inline void sync(void) { } -#ifdef CONFIG_ARCH_MAP_SYSMEM -static inline void *map_sysmem(phys_addr_t paddr, unsigned long len) -{ - if (paddr < PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE) - paddr = paddr | 0x40000000; - return (void *)(uintptr_t)paddr; -} - -static inline void *unmap_sysmem(const void *vaddr) -{ - phys_addr_t paddr = (phys_addr_t)vaddr; - - paddr = paddr & ~0x40000000; - return (void *)(uintptr_t)paddr; -} - -static inline phys_addr_t map_to_sysmem(const void *ptr) -{ - return (phys_addr_t)(uintptr_t)ptr; -} -#endif - /* * Generic virtual read/write. Note that we don't support half-word * read/writes. We define __arch_*[bl] here, and leave __arch_*w