From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YgNMs-0003JI-Vj for barebox@lists.infradead.org; Fri, 10 Apr 2015 01:04:23 +0000 Received: by wizk4 with SMTP id k4so111440218wiz.1 for ; Thu, 09 Apr 2015 18:04:00 -0700 (PDT) From: Sebastian Hesselbarth Date: Fri, 10 Apr 2015 03:03:45 +0200 Message-Id: <1428627830-17281-9-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1428627830-17281-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1428627830-17281-1-git-send-email-sebastian.hesselbarth@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 08/13] ARM: mvebu: Move PCIe register defines to socid.h To: Sebastian Hesselbarth Cc: Thomas Petazzoni , barebox@lists.infradead.org To prepare PCIe device id fixups, move PCIe register defines to a common location. Signed-off-by: Sebastian Hesselbarth --- Cc: barebox@lists.infradead.org Cc: Ezequiel Garcia Cc: Thomas Petazzoni --- arch/arm/mach-mvebu/common.c | 5 +---- arch/arm/mach-mvebu/include/mach/socid.h | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-mvebu/common.c b/arch/arm/mach-mvebu/common.c index 309f7a6aaa52..7d28d9c45aed 100644 --- a/arch/arm/mach-mvebu/common.c +++ b/arch/arm/mach-mvebu/common.c @@ -22,6 +22,7 @@ #include #include #include +#include /* * Marvell MVEBU SoC id and revision can be read from any PCIe @@ -40,10 +41,6 @@ static const struct of_device_id mvebu_pcie_of_ids[] = { { }, }; -#define PCIE_VEN_DEV_ID 0x000 -#define PCIE_REV_ID 0x008 -#define REV_ID_MASK 0xff - static int mvebu_soc_id_init(void) { struct device_node *np, *cnp; diff --git a/arch/arm/mach-mvebu/include/mach/socid.h b/arch/arm/mach-mvebu/include/mach/socid.h index 36d681a9dcc1..7a29c82b30c0 100644 --- a/arch/arm/mach-mvebu/include/mach/socid.h +++ b/arch/arm/mach-mvebu/include/mach/socid.h @@ -16,6 +16,10 @@ #ifndef __MACH_MVEBU_SOCID_H #define __MACH_MVEBU_SOCID_H +#define PCIE_VEN_DEV_ID 0x000 +#define PCIE_REV_ID 0x008 +#define REV_ID_MASK 0xff + extern u16 soc_devid; extern u16 soc_revid; -- 2.1.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox