From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 371226D0D for ; Sun, 13 Jun 2021 15:56:28 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id v206-20020a1cded70000b02901a586d3fa23so11329336wmg.4 for ; Sun, 13 Jun 2021 08:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WcWXY1H/tcjwWXrjK7sGg/H6izhQyfGF6Ma3AVimpBU=; b=HEbM5nM8IHDEzMdD3sztOA9THxULFR4v8Z3E2Fvii9hlMDTtptfpVaiPLdLYnSvk+0 NTVwVp7GOcNpM8gtJafnfqtSo2gRkzUbCOCXnt1Hyh7joulJKdVs0TBy0NDzVRha3+oH ytSQ0/gvM1ltmbnXirtLVlCkTqxYlHK58VDN79RPpE1rtCeRE2nNBmIFp89xpMw4k2Ej xEeeSONozXVj/bm8pCu0jqEASSM1HsSG5cvz+jmpKiY59koi1j//UB+fE3a3OsUdNQhS DjXE2hwHJFaqvad1GEFWivXu2sIRYVfTq1zj/zfTDUZVS+fixR2x09HT4qJkZDkA3izK 2OYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WcWXY1H/tcjwWXrjK7sGg/H6izhQyfGF6Ma3AVimpBU=; b=DV1d5359zOUQFP0DVhLHST2RXmatgV0cI0QUFTVn1QrbsvDuoXrFO/RAtZVvsNPLbO SvQH5dYAblIzMe68fReIe8d4ij/EyVCrydk7/CgbnyMQNTPRA6/xEzTH/SebT8Ob0Veg ESis+ZL8WP7PYrzs1jSosTFYOC5Q5yrC3Ryrzt/vah6NBsjLMO3HAEewjLvgOw5ToDc1 WAiX8PQwUX6CIbHljCW4wLtqUyqOuXjNbarUyy9BvdY2DwR/fGVU/v97Tzx1PqTb/zRW WS0AgNwkkqib3qkH0ZOerbqKfyCANTb4N4X85PibkjP4HVjv1HBvd/gwFSeTYoKpfnJc 0pHg== X-Gm-Message-State: AOAM532+ATdLjCd68PCJK3bLCGsYW2ypIiTdrj5M7ANSkFyZxP0j0wlY phobNMxPc3JYlroFAMzHoejp6xkbZMc= X-Google-Smtp-Source: ABdhPJzC7esJXQAJvVqwSLn+AHewwNmrMQCmETANKdSzUN9Gdtf2/VJaUyahh1RjHJVC4574vp7ZRw== X-Received: by 2002:a1c:453:: with SMTP id 80mr12034421wme.171.1623599786485; Sun, 13 Jun 2021 08:56:26 -0700 (PDT) Received: from localhost.localdomain (98.red-81-38-58.dynamicip.rima-tde.net. [81.38.58.98]) by smtp.gmail.com with ESMTPSA id g17sm17539746wrh.72.2021.06.13.08.56.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Jun 2021 08:56:26 -0700 (PDT) From: Sergio Paracuellos To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, neil@brown.name, linux-mips@vger.kernel.org, tsbogend@alpha.franken.de, ilya.lipnitskiy@gmail.com, john@phrozen.org Subject: [PATCH 1/3] MIPS: ralink: Define PCI_IOBASE Date: Sun, 13 Jun 2021 17:56:21 +0200 Message-Id: <20210613155623.17233-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210613155623.17233-1-sergio.paracuellos@gmail.com> References: <20210613155623.17233-1-sergio.paracuellos@gmail.com> X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit PCI_IOBASE is used to create VM maps for PCI I/O ports, it is required by generic PCI drivers to make memory mapped I/O range work. Hence define it for ralink architectures to be able to avoid parsing manually IO ranges in PCI generic driver code. Function 'plat_mem_setup' for ralink is using 'set_io_port_base' call using '0xa0000000' as address, so use the same address in the definition to align things. Signed-off-by: Sergio Paracuellos --- arch/mips/include/asm/mach-ralink/spaces.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/mips/include/asm/mach-ralink/spaces.h diff --git a/arch/mips/include/asm/mach-ralink/spaces.h b/arch/mips/include/asm/mach-ralink/spaces.h new file mode 100644 index 000000000000..ec58d4a9ed05 --- /dev/null +++ b/arch/mips/include/asm/mach-ralink/spaces.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_MACH_RALINK_SPACES_H_ +#define __ASM_MACH_RALINK_SPACES_H_ + +#define PCI_IOBASE _AC(0xa0000000, UL) +#define PCI_IOSIZE SZ_16M +#define IO_SPACE_LIMIT (PCI_IOSIZE - 1) + +#include +#endif -- 2.25.1