2022-03-30 21:21:32 +00:00
|
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
|
|
Date: Thu, 11 Mar 2021 08:26:14 +0100
|
|
|
|
Subject: [PATCH] nvmem: brcm_nvram: provide NVMEM content to the NVRAM driver
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
|
|
---
|
|
|
|
drivers/nvmem/brcm_nvram.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/nvmem/brcm_nvram.c
|
|
|
|
+++ b/drivers/nvmem/brcm_nvram.c
|
|
|
|
@@ -3,6 +3,7 @@
|
|
|
|
* Copyright (C) 2021 Rafał Miłecki <rafal@milecki.pl>
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <linux/bcm47xx_nvram.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/mod_devicetable.h>
|
|
|
|
#include <linux/module.h>
|
2023-02-23 08:47:39 +00:00
|
|
|
@@ -139,6 +140,8 @@ static int brcm_nvram_probe(struct platf
|
2022-09-14 12:20:38 +00:00
|
|
|
if (err)
|
|
|
|
return err;
|
2022-03-30 21:21:32 +00:00
|
|
|
|
|
|
|
+ bcm47xx_nvram_init_from_iomem(priv->base, resource_size(res));
|
|
|
|
+
|
|
|
|
config.dev = dev;
|
2022-09-14 12:20:38 +00:00
|
|
|
config.cells = priv->cells;
|
|
|
|
config.ncells = priv->ncells;
|