|
|
@@ -1,7 +1,7 @@
|
|
|
-From db18357719613cc40234300b10e28e4dfa075375 Mon Sep 17 00:00:00 2001
|
|
|
+From 09cf6ee6d21cd9ef2eb857ccb24305cf51166792 Mon Sep 17 00:00:00 2001
|
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
|
|
|
-Date: Fri, 15 Jan 2021 16:23:01 +0100
|
|
|
-Subject: [PATCH 3/3] mtd: parsers: ofpart: support BCM4908 fixed partitions
|
|
|
+Date: Thu, 11 Feb 2021 23:04:27 +0100
|
|
|
+Subject: [PATCH] mtd: parsers: ofpart: support BCM4908 fixed partitions
|
|
|
MIME-Version: 1.0
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
@@ -18,20 +18,21 @@ partition from the DT. Bootloader specifies it using the "brcm_blparms"
|
|
|
property.
|
|
|
|
|
|
Signed-off-by: Rafał Miłecki <[email protected]>
|
|
|
+Signed-off-by: Richard Weinberger <[email protected]>
|
|
|
---
|
|
|
drivers/mtd/parsers/Makefile | 1 +
|
|
|
- drivers/mtd/parsers/bcm4908-partitions.c | 62 ++++++++++++++++++++++++
|
|
|
+ drivers/mtd/parsers/bcm4908-partitions.c | 64 ++++++++++++++++++++++++
|
|
|
drivers/mtd/parsers/bcm4908-partitions.h | 7 +++
|
|
|
drivers/mtd/parsers/ofpart.c | 28 ++++++++++-
|
|
|
- 4 files changed, 96 insertions(+), 2 deletions(-)
|
|
|
+ 4 files changed, 98 insertions(+), 2 deletions(-)
|
|
|
create mode 100644 drivers/mtd/parsers/bcm4908-partitions.c
|
|
|
create mode 100644 drivers/mtd/parsers/bcm4908-partitions.h
|
|
|
|
|
|
--- a/drivers/mtd/parsers/Makefile
|
|
|
+++ b/drivers/mtd/parsers/Makefile
|
|
|
-@@ -5,6 +5,7 @@ obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm6
|
|
|
+@@ -4,6 +4,7 @@ obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm4
|
|
|
+ obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
|
|
|
obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
|
|
|
- obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
|
|
|
obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
|
|
|
+obj-$(CONFIG_MTD_OF_PARTS) += bcm4908-partitions.o
|
|
|
obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o
|
|
|
@@ -39,7 +40,7 @@ Signed-off-by: Rafał Miłecki <[email protected]>
|
|
|
obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o
|
|
|
--- /dev/null
|
|
|
+++ b/drivers/mtd/parsers/bcm4908-partitions.c
|
|
|
-@@ -0,0 +1,62 @@
|
|
|
+@@ -0,0 +1,64 @@
|
|
|
+// SPDX-License-Identifier: GPL-2.0
|
|
|
+/*
|
|
|
+ * Copyright (C) 2021 Rafał Miłecki <[email protected]>
|
|
|
@@ -52,6 +53,8 @@ Signed-off-by: Rafał Miłecki <[email protected]>
|
|
|
+#include <linux/slab.h>
|
|
|
+#include <linux/mtd/partitions.h>
|
|
|
+
|
|
|
++#include "bcm4908-partitions.h"
|
|
|
++
|
|
|
+#define BLPARAMS_FW_OFFSET "NAND_RFS_OFS"
|
|
|
+
|
|
|
+static long long bcm4908_partitions_fw_offset(void)
|