diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2015-04-20 22:11:20 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-04-27 08:09:35 +0200 |
commit | 1be8c67faa3881a540018512a6c61585bb041a6a (patch) | |
tree | 42adaff794fe0ab1b8cde8becfaab78e24800ea3 /arch | |
parent | 60f947b494e53e5e85d73895ed0ff79428bdca6b (diff) | |
download | barebox-1be8c67faa3881a540018512a6c61585bb041a6a.tar.gz barebox-1be8c67faa3881a540018512a6c61585bb041a6a.tar.xz |
ARM: mvebu: Move PCIe register defines to socid.h
To prepare PCIe device id fixups, move PCIe register defines
to a common location.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mvebu/common.c | 5 | ||||
-rw-r--r-- | 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 309f7a6aaa..7d28d9c45a 100644 --- a/arch/arm/mach-mvebu/common.c +++ b/arch/arm/mach-mvebu/common.c @@ -22,6 +22,7 @@ #include <of_address.h> #include <linux/clk.h> #include <mach/common.h> +#include <mach/socid.h> /* * 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 36d681a9dc..7a29c82b30 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; |