mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* migrate u-boot and kernel to mainline * Add patches for 6.17 * fix compile for patches addes * Orderer patches, switch kernel config to sunxi64, recreate some patches for fix build * Update linux-sunxi64-edge.config after pm-domain & sun55i-gmac200 activate * enable wifi and bluetooth * revert linux-sunxi64-edge.config - Revert linux-sunxi64-edge.config - Add modules: CONFIG_IOMMUFD, CONFIG_SUN50I_IOMMU, CONFIG_SUN55I_PCK600. * drop sunxi-dev-6.14 and cleanup involved patches * Update radxa-cubie-a5e.csc make change proposed by igorpecovnik
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From: Chen-Yu Tsai <wens@csie.org>
|
|
|
|
Until now, if the system controller had a ethernet controller glue layer
|
|
control register, a limited access regmap would be registered and tied
|
|
to the system controller struct device for the ethernet driver to use.
|
|
|
|
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
|
|
---
|
|
drivers/soc/sunxi/sunxi_sram.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
|
|
index 4f8d510b7e1e..63c23bdffa78 100644
|
|
--- a/drivers/soc/sunxi/sunxi_sram.c
|
|
+++ b/drivers/soc/sunxi/sunxi_sram.c
|
|
@@ -12,6 +12,7 @@
|
|
|
|
#include <linux/debugfs.h>
|
|
#include <linux/io.h>
|
|
+#include <linux/mfd/syscon.h>
|
|
#include <linux/module.h>
|
|
#include <linux/of.h>
|
|
#include <linux/of_address.h>
|
|
@@ -377,6 +378,7 @@ static int __init sunxi_sram_probe(struct platform_device *pdev)
|
|
const struct sunxi_sramc_variant *variant;
|
|
struct device *dev = &pdev->dev;
|
|
struct regmap *regmap;
|
|
+ int ret;
|
|
|
|
sram_dev = &pdev->dev;
|
|
|
|
@@ -394,6 +396,10 @@ static int __init sunxi_sram_probe(struct platform_device *pdev)
|
|
regmap = devm_regmap_init_mmio(dev, base, &sunxi_sram_regmap_config);
|
|
if (IS_ERR(regmap))
|
|
return PTR_ERR(regmap);
|
|
+
|
|
+ ret = of_syscon_register_regmap(dev->of_node, regmap);
|
|
+ if (IS_ERR(ret))
|
|
+ return ret;
|
|
}
|
|
|
|
of_platform_populate(dev->of_node, NULL, NULL, dev);
|
|
--
|
|
2.39.5
|