brcm63xx: add preliminary support for 3.13
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 415-MIPS-BCM63XX-export-the-attached-flash-type.patch
1 From 066f1e37742ee434496d32a41a9284458de96742 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Mon, 13 Jan 2014 12:12:30 +0100
4 Subject: [PATCH] MIPS: BCM63XX: export the attached flash type
5
6 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
7 ---
8  arch/mips/bcm63xx/dev-flash.c                          | 5 +++++
9  arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h | 2 ++
10  2 files changed, 7 insertions(+)
11
12 --- a/arch/mips/bcm63xx/dev-flash.c
13 +++ b/arch/mips/bcm63xx/dev-flash.c
14 @@ -222,3 +222,8 @@ int __init bcm63xx_flash_register(void)
15                 return -ENODEV;
16         }
17  }
18 +
19 +int bcm63xx_flash_get_type(void)
20 +{
21 +       return flash_type;
22 +}
23 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h
24 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h
25 @@ -11,4 +11,6 @@ void bcm63xx_flash_detect(void);
26  
27  int __init bcm63xx_flash_register(void);
28  
29 +int bcm63xx_flash_get_type(void);
30 +
31  #endif /* __BCM63XX_FLASH_H */