[PATCH 1/5] regmap-mmio: Add missing pieces for 64bit support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The 64bit accessor functions are present, but unused. Hook them up when
needed.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 drivers/base/regmap/regmap-mmio.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index f8d2cda843..ef6a7db6fd 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -197,6 +197,12 @@ static struct regmap_mmio_context *regmap_mmio_gen_context(void __iomem *regs,
 		ctx->reg_read = regmap_mmio_read32le;
 		ctx->reg_write = regmap_mmio_write32le;
 		break;
+#ifdef CONFIG_64BIT
+	case 64:
+		ctx->reg_read = regmap_mmio_read64le;
+		ctx->reg_write = regmap_mmio_write64le;
+		break;
+#endif
 	default:
 		ret = -EINVAL;
 		goto err_free;
-- 
2.26.0.rc2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux