diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-01-25 09:50:29 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-05-13 14:01:43 +0200 |
commit | 2ab71a02c56f8244ac611b5c6e6603c6fe83b966 (patch) | |
tree | b741901481c7b40fe0afe0a2dbc36aeedac1e44c /include/linux/bcm47xx_sprom.h | |
parent | b11d022767f78357f08bc3d548e99af1c6cf7808 (diff) | |
download | linux-stable-2ab71a02c56f8244ac611b5c6e6603c6fe83b966.tar.gz linux-stable-2ab71a02c56f8244ac611b5c6e6603c6fe83b966.tar.bz2 linux-stable-2ab71a02c56f8244ac611b5c6e6603c6fe83b966.zip |
MIPS: BCM47xx: Move SPROM driver to drivers/firmware/
Broadcom ARM home routers store SPROM content in NVRAM just like MIPS
ones. To share SPROM code we need to move it out of arch/mips/ to some
common place. We already have bcm47xx_nvram in firmware path and SPROM
should fit there as well.
This driver is responsible for parsing SoC configuration data into a
struct shared between ssb and bcma buses.
This was tested with BCM4706 & BCM5357C0 (BCM47XX) and BCM4708A0
(ARCH_BCM_5301X).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12210/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/linux/bcm47xx_sprom.h')
-rw-r--r-- | include/linux/bcm47xx_sprom.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/bcm47xx_sprom.h b/include/linux/bcm47xx_sprom.h new file mode 100644 index 000000000000..c06b47c84e1a --- /dev/null +++ b/include/linux/bcm47xx_sprom.h @@ -0,0 +1,24 @@ +/* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +#ifndef __BCM47XX_SPROM_H +#define __BCM47XX_SPROM_H + +#include <linux/types.h> +#include <linux/kernel.h> +#include <linux/vmalloc.h> + +#ifdef CONFIG_BCM47XX_SPROM +int bcm47xx_sprom_register_fallbacks(void); +#else +static inline int bcm47xx_sprom_register_fallbacks(void) +{ + return -ENOTSUPP; +}; +#endif + +#endif /* __BCM47XX_SPROM_H */ |