diff options
| author | Simon Arlott <simon@fire.lp0.eu> | 2015-12-13 17:46:59 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-23 21:48:23 -0500 |
| commit | 8fce60b8d0c62363c29d64efb0cceb98519f0350 (patch) | |
| tree | 8a5cb7240de5a42cdbc3e96724809ba9d3532cf1 | |
| parent | 5a8b0b13b66608650e41994f4b9d3c8b9d258e8f (diff) | |
MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure
Move Broadcom BCM963xx image tag data structure to include/linux/
so that drivers outside of mach-bcm63xx can use it.
Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Jonas Gorski <jogo@openwrt.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: MIPS Mailing List <linux-mips@linux-mips.org>
Cc: MTD Maling List <linux-mtd@lists.infradead.org>
Patchwork: https://patchwork.linux-mips.org/patch/11832/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| -rw-r--r-- | MAINTAINERS | 1 | ||||
| -rw-r--r-- | drivers/mtd/bcm63xxpart.c | 2 | ||||
| -rw-r--r-- | include/linux/bcm963xx_tag.h (renamed from arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h) | 8 |
3 files changed, 7 insertions, 4 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 6cb7b57a0e2f..069406de5b14 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -2377,6 +2377,7 @@ F: arch/mips/boot/dts/brcm/bcm*.dts* | |||
| 2377 | F: drivers/irqchip/irq-bcm7* | 2377 | F: drivers/irqchip/irq-bcm7* |
| 2378 | F: drivers/irqchip/irq-brcmstb* | 2378 | F: drivers/irqchip/irq-brcmstb* |
| 2379 | F: include/linux/bcm963xx_nvram.h | 2379 | F: include/linux/bcm963xx_nvram.h |
| 2380 | F: include/linux/bcm963xx_tag.h | ||
| 2380 | 2381 | ||
| 2381 | BROADCOM TG3 GIGABIT ETHERNET DRIVER | 2382 | BROADCOM TG3 GIGABIT ETHERNET DRIVER |
| 2382 | M: Prashant Sreedharan <prashant@broadcom.com> | 2383 | M: Prashant Sreedharan <prashant@broadcom.com> |
diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index b2443f7031c9..8b86ed69522e 100644 --- a/drivers/mtd/bcm63xxpart.c +++ b/drivers/mtd/bcm63xxpart.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 25 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 26 | 26 | ||
| 27 | #include <linux/bcm963xx_tag.h> | ||
| 27 | #include <linux/crc32.h> | 28 | #include <linux/crc32.h> |
| 28 | #include <linux/module.h> | 29 | #include <linux/module.h> |
| 29 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
| @@ -34,7 +35,6 @@ | |||
| 34 | #include <linux/mtd/partitions.h> | 35 | #include <linux/mtd/partitions.h> |
| 35 | 36 | ||
| 36 | #include <asm/mach-bcm63xx/bcm63xx_nvram.h> | 37 | #include <asm/mach-bcm63xx/bcm63xx_nvram.h> |
| 37 | #include <asm/mach-bcm63xx/bcm963xx_tag.h> | ||
| 38 | #include <asm/mach-bcm63xx/board_bcm963xx.h> | 38 | #include <asm/mach-bcm63xx/board_bcm963xx.h> |
| 39 | 39 | ||
| 40 | #define BCM63XX_EXTENDED_SIZE 0xBFC00000 /* Extended flash address */ | 40 | #define BCM63XX_EXTENDED_SIZE 0xBFC00000 /* Extended flash address */ |
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h b/include/linux/bcm963xx_tag.h index 1e6b587f62c9..f389dace6d95 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h +++ b/include/linux/bcm963xx_tag.h | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #ifndef __BCM963XX_TAG_H | 1 | #ifndef __LINUX_BCM963XX_TAG_H__ |
| 2 | #define __BCM963XX_TAG_H | 2 | #define __LINUX_BCM963XX_TAG_H__ |
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 3 | 5 | ||
| 4 | #define TAGVER_LEN 4 /* Length of Tag Version */ | 6 | #define TAGVER_LEN 4 /* Length of Tag Version */ |
| 5 | #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */ | 7 | #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */ |
| @@ -93,4 +95,4 @@ struct bcm_tag { | |||
| 93 | char reserved2[16]; | 95 | char reserved2[16]; |
| 94 | }; | 96 | }; |
| 95 | 97 | ||
| 96 | #endif /* __BCM63XX_TAG_H */ | 98 | #endif /* __LINUX_BCM63XX_TAG_H__ */ |
