mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-11 09:24:50 +00:00
a50d121d8e
Export bcm963xx_tag.h so mtd can use it without using kernel includes. Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> [jonas.gorski@gmail.com: fixup bcm63xx patches, completely remove header from original location, refresh patches, use a more matching patch number, port to 3.6] Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> SVN-Revision: 34103
30 lines
907 B
Diff
30 lines
907 B
Diff
From 658afad639a9456e1bb6fe5bba0032f3c0c3f699 Mon Sep 17 00:00:00 2001
|
|
From: Jonas Gorski <jonas.gorski@gmail.com>
|
|
Date: Tue, 1 May 2012 14:10:39 +0200
|
|
Subject: [PATCH 62/79] MTD: bcm63xxpart: use nvram for PSI size
|
|
|
|
---
|
|
drivers/mtd/bcm63xxpart.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/mtd/bcm63xxpart.c
|
|
+++ b/drivers/mtd/bcm63xxpart.c
|
|
@@ -32,6 +32,7 @@
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
+#include <asm/mach-bcm63xx/bcm63xx_nvram.h>
|
|
#include <linux/bcm963xx_tag.h>
|
|
#include <asm/mach-bcm63xx/board_bcm963xx.h>
|
|
|
|
@@ -90,7 +91,8 @@ static int bcm63xx_parse_cfe_partitions(
|
|
BCM63XX_CFE_BLOCK_SIZE);
|
|
|
|
cfelen = cfe_erasesize;
|
|
- nvramlen = cfe_erasesize;
|
|
+ nvramlen = bcm63xx_nvram_get_psi_size() * 1024;
|
|
+ nvramlen = roundup(nvramlen, cfe_erasesize);
|
|
|
|
/* Allocate memory for buffer */
|
|
buf = vmalloc(sizeof(struct bcm_tag));
|